From: Peter Amstutz Date: Mon, 29 Jul 2019 19:35:59 +0000 (-0400) Subject: 15467: Test case where it ends in 'List' but isn't one X-Git-Tag: 2.0.0~241^2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/1e9ae39f812c387d608bb815c5840ea2a99b5777 15467: Test case where it ends in 'List' but isn't one Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- diff --git a/lib/config/load_test.go b/lib/config/load_test.go index eadfa11a66..c7289350ec 100644 --- a/lib/config/load_test.go +++ b/lib/config/load_test.go @@ -435,6 +435,15 @@ func (s *LoadSuite) TestListKeys(c *check.C) { c.Errorf("Should have produced an error") } + v3 := struct { + EndInList string + }{"a"} + var m3 = make(map[string]interface{}) + m3["c"] = &v3 + if err := checkListKeys("", m3); err == nil { + c.Errorf("Should have produced an error") + } + var logbuf bytes.Buffer loader := testLoader(c, string(DefaultYAML), &logbuf) cfg, err := loader.Load()