mirror of
https://github.com/SigNoz/signoz.git
synced 2026-01-06 05:20:41 -06:00
feat(ingestion): update apiserver config tests
This commit is contained in:
@@ -2,6 +2,7 @@ package apiserver
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/url"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -17,6 +18,7 @@ func TestNewWithEnvProvider(t *testing.T) {
|
||||
t.Setenv("SIGNOZ_APISERVER_TIMEOUT_MAX", "700s")
|
||||
t.Setenv("SIGNOZ_APISERVER_TIMEOUT_EXCLUDED__ROUTES", "/excluded1,/excluded2")
|
||||
t.Setenv("SIGNOZ_APISERVER_LOGGING_EXCLUDED__ROUTES", "/api/v1/health1")
|
||||
t.Setenv("SIGNOZ_APISERVER_WEB_EXTERNAL__URL", "https://test.com")
|
||||
|
||||
conf, err := config.New(
|
||||
context.Background(),
|
||||
@@ -51,6 +53,12 @@ func TestNewWithEnvProvider(t *testing.T) {
|
||||
"/api/v1/health1",
|
||||
},
|
||||
},
|
||||
Web: Web{
|
||||
ExternalURL: &url.URL{
|
||||
Scheme: "https",
|
||||
Host: "test.com",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
assert.Equal(t, expected, actual)
|
||||
|
||||
Reference in New Issue
Block a user