Skip to content

Commit

Permalink
feat: add test for archive with no suites
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienPatte committed Oct 5, 2024
1 parent 0851669 commit dfa9cd6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions internal/setup/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,18 @@ var setupTests = []setupTest{{
},
},
},
}, {
summary: "Archive with suites unset",
input: map[string]string{
"chisel.yaml": `
format: v1
archives:
ubuntu:
version: 22.04
components: [main, other]
`,
},
relerror: `chisel.yaml: archive "ubuntu" missing suites field`,
}, {
summary: "Extra fields in YAML are ignored (necessary for forward compatibility)",
input: map[string]string{
Expand Down

0 comments on commit dfa9cd6

Please sign in to comment.