Merge branch '18346-container-token'
[arvados.git] / lib / controller / localdb / collection_test.go
index e0de7256a18cd9e3cd862d676a76efd292881b5a..4a44949641da71b70985f2a5ce472e94327b81ec 100644 (file)
@@ -115,8 +115,9 @@ func (s *CollectionSuite) TestSignatures(c *check.C) {
                Filters: []arvados.Filter{{"uuid", "=", arvadostest.FooCollection}},
                Select:  []string{"uuid", "manifest_text"},
        })
-       c.Check(err, check.IsNil)
-       if c.Check(gresp.Items, check.HasLen, 1) {
+       if err != nil {
+               c.Check(err, check.ErrorMatches, `.*Invalid attribute.*manifest_text.*`)
+       } else if c.Check(gresp.Items, check.HasLen, 1) {
                c.Check(gresp.Items[0].(map[string]interface{})["uuid"], check.Equals, arvadostest.FooCollection)
                c.Check(gresp.Items[0].(map[string]interface{})["manifest_text"], check.Equals, nil)
        }