- // Check "splices" value that isn't even the right type
- for _, splices := range []interface{}{
- map[string]int{"foo": 1},
- map[int]string{1: "foo"},
- 12345,
- "foo",
- []string{"foo"},
- } {
- _, err = s.localdb.CollectionUpdate(ctx, arvados.UpdateOptions{
- UUID: dst.UUID,
- Attrs: map[string]interface{}{
- "splices": splices,
- }})
- c.Logf("splices %#v\n... got err: %s", splices, err)
- c.Check(err, check.ErrorMatches, "invalid type .* for splices parameter")
- }
-
- // Check conflicting splices and manifest_text