feat(ingestion): update apiserver config tests

This commit is contained in:
vikrantgupta25
2025-12-16 14:15:19 +05:30
parent de4699644d
commit 4b930a3288

View File

@@ -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)