Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm committed Jun 15, 2023
1 parent cbd9aa3 commit 730c7c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 11 additions & 2 deletions code/go/internal/validator/spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,26 @@ func TestFolderSpecInvalid(t *testing.T) {
},
},
{
title: "invalid spec chaining patches- extra file 3.0.0",
title: "invalid spec chaining patches- extra file 2.9.0",
version: *semver.MustParse("2.9.0"),
spec: fspath.DirFS("testdata/fakespec"),
pkgPath: "testdata/packages/folder_spec_patches_chain",
valid: false,
expectedErrors: []string{
"item [other.yml] is not allowed in folder [testdata/packages/folder_spec_patches_chain/patches]",
"expecting to find [manifest.yml] file in folder [testdata/packages/folder_spec_patches_chain/patches/data_stream]",
"expecting to find [other.yml] file in folder [testdata/packages/folder_spec_patches_chain/patches/data_stream]",
},
},
{
title: "invalid spec chaining patches- extra file 3.0.0",
version: *semver.MustParse("3.0.0"),
spec: fspath.DirFS("testdata/fakespec"),
pkgPath: "testdata/packages/folder_spec_patches_chain",
valid: false,
expectedErrors: []string{
"item [other.yml] is not allowed in folder [testdata/packages/folder_spec_patches_chain/patches]",
},
},
}

for _, c := range cases {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
field: foo

0 comments on commit 730c7c1

Please sign in to comment.