X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0b1d8b20daee92e306ebed05006e6c0ad45a8bc8..df90bb0a37a7e6fc3c18afd3e000a71fb7cc11e2:/lib/config/load_test.go diff --git a/lib/config/load_test.go b/lib/config/load_test.go index 4cdebf62bc..396faca484 100644 --- a/lib/config/load_test.go +++ b/lib/config/load_test.go @@ -196,21 +196,37 @@ Clusters: SystemRootToken: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Collections: BlobSigningKey: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - postgresql: {} - BadKey: {} - Containers: {} + PostgreSQL: {} + BadKey1: {} + Containers: + RunTimeEngine: abc RemoteClusters: z2222: Host: z2222.arvadosapi.com Proxy: true - BadKey: badValue + BadKey2: badValue + Services: + KeepStore: + InternalURLs: + "http://host.example:12345": {} + Keepstore: + InternalURLs: + "http://host.example:12345": + RendezVous: x + ServiceS: + Keepstore: + InternalURLs: + "http://host.example:12345": {} + Volumes: + zzzzz-nyw5e-aaaaaaaaaaaaaaa: {} `, &logbuf).Load() c.Assert(err, check.IsNil) + c.Log(logbuf.String()) logs := strings.Split(strings.TrimSuffix(logbuf.String(), "\n"), "\n") for _, log := range logs { - c.Check(log, check.Matches, `.*deprecated or unknown config entry:.*BadKey.*`) + c.Check(log, check.Matches, `.*deprecated or unknown config entry:.*(RunTimeEngine.*RuntimeEngine|BadKey1|BadKey2|KeepStore|ServiceS|RendezVous).*`) } - c.Check(logs, check.HasLen, 2) + c.Check(logs, check.HasLen, 6) } func (s *LoadSuite) checkSAMPLEKeys(c *check.C, path string, x interface{}) { @@ -322,8 +338,8 @@ func (s *LoadSuite) TestPostgreSQLKeyConflict(c *check.C) { _, err := testLoader(c, ` Clusters: zzzzz: - postgresql: - connection: + PostgreSQL: + Connection: DBName: dbname Host: host `, nil).Load() @@ -351,7 +367,7 @@ Clusters: Proxy: true `, ` Clusters: - abcdef: + abcde: ManagementToken: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa SystemRootToken: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Collections: @@ -437,10 +453,12 @@ Clusters: `) } -func checkEquivalent(c *check.C, goty, expectedy string) { - gotldr := testLoader(c, goty, nil) +func checkEquivalent(c *check.C, goty, expectedy string) string { + var logbuf bytes.Buffer + gotldr := testLoader(c, goty, &logbuf) expectedldr := testLoader(c, expectedy, nil) checkEquivalentLoaders(c, gotldr, expectedldr) + return logbuf.String() } func checkEqualYAML(c *check.C, got, expected interface{}) {