MCPcopy
hub / github.com/vouch/vouch-proxy / TestConfigParsing

Function TestConfigParsing

pkg/cfg/cfg_test.go:28–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func TestConfigParsing(t *testing.T) {
29 InitForTestPurposes()
30 Configure()
31
32 // UnmarshalKey(Branding.LCName, &cfg)
33 log.Debugf("cfgPort %d", Cfg.Port)
34 log.Debugf("cfgDomains %s", Cfg.Domains[0])
35
36 assert.Equal(t, Cfg.Port, 9090)
37
38 assert.NotEmpty(t, Cfg.JWT.MaxAge)
39
40}
41func TestConfigEnvPrecedence(t *testing.T) {
42 t.Cleanup(cleanupEnv)
43

Callers

nothing calls this directly

Calls 2

InitForTestPurposesFunction · 0.85
ConfigureFunction · 0.70

Tested by

no test coverage detected