X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a76b52ff503ae14df608904349670151a5b15e47..4e65a41bea4b892ef7232bfe6b9b20ca35380368:/lib/config/load_test.go diff --git a/lib/config/load_test.go b/lib/config/load_test.go index 91bd6a7439..9d3258c195 100644 --- a/lib/config/load_test.go +++ b/lib/config/load_test.go @@ -196,9 +196,10 @@ Clusters: SystemRootToken: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Collections: BlobSigningKey: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - postgresql: {} + PostgreSQL: {} BadKey: {} - Containers: {} + Containers: + RunTimeEngine: abc RemoteClusters: z2222: Host: z2222.arvadosapi.com @@ -206,11 +207,12 @@ Clusters: BadKey: badValue `, &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|BadKey).*`) } - c.Check(logs, check.HasLen, 2) + c.Check(logs, check.HasLen, 3) } func (s *LoadSuite) checkSAMPLEKeys(c *check.C, path string, x interface{}) { @@ -322,7 +324,7 @@ func (s *LoadSuite) TestPostgreSQLKeyConflict(c *check.C) { _, err := testLoader(c, ` Clusters: zzzzz: - postgresql: + PostgreSQL: connection: DBName: dbname Host: host @@ -437,10 +439,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{}) {