X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=auth-token-fetch%2Fconfig_test.go;fp=auth-token-fetch%2Fconfig_test.go;h=92a63d891929e0d1d9166504038758c07a508361;hb=f4ad7493dc6bbdca342be69a2b997196f28f5d74;hp=8b441c145ba6590e6f58cf61c47b240df863eb2e;hpb=1b82a8331d9b1f92687dbd25e6d28f2943c9df22;p=nonrtric.git diff --git a/auth-token-fetch/config_test.go b/auth-token-fetch/config_test.go index 8b441c14..92a63d89 100644 --- a/auth-token-fetch/config_test.go +++ b/auth-token-fetch/config_test.go @@ -39,6 +39,7 @@ func TestNew_envVarsSetConfigContainSetValues(t *testing.T) { os.Setenv("OUTPUT_FILE", "OUTPUT_FILE") os.Setenv("AUTH_SERVICE_URL", "AUTH_SERVICE_URL") os.Setenv("REFRESH_MARGIN_SECONDS", "33") + os.Setenv("ROOT_CA_CERTS_PATH", "ROOT_CA_CERTS_PATH") t.Cleanup(func() { os.Clearenv() @@ -52,9 +53,11 @@ func TestNew_envVarsSetConfigContainSetValues(t *testing.T) { ClientSecret: "CREDS_CLIENT_SECRET", ClientId: "CREDS_CLIENT_ID", AuthTokenOutputFileName: "OUTPUT_FILE", + CACertsPath: "ROOT_CA_CERTS_PATH", RefreshMarginSeconds: 33, } got := NewConfig() + assertions.Equal(nil, validateConfiguration(got)) assertions.Equal(&wantConfig, got) }