Closed aelsabbahy closed 9 months ago
Closes #800
make test-all
Added syntax checking for when multiple keys are provided. Improved syntax error messages in general.
Example of new errors:
$ cat goss.yaml matching: example: content: ['1.14.1'] matches: and: - have-len: 1 and: matches: - semver-constraint: '<1.14.0' $ goss v F Failures/Skipped: Matching: example: matches: Error Syntax Error: Invalid matcher configuration. At a given nesting level, only one matcher is allowed. Found multiple matchers: ["have-len" "and"] Total Duration: 0.000s Count: 1, Failed: 1, Skipped: 0
$ cat goss.yaml matching: example: content: ['1.14.1'] matches: and: - have-len: 1 - and: matches: - semver-constraint: '<1.14.0' $ goss v F Failures/Skipped: Matching: example: matches: Error Syntax Error: Invalid 'and' argument. Expected array value, but received: map["matches":[map["semver-constraint":"<1.14.0"]]] Total Duration: 0.000s Count: 1, Failed: 1, Skipped: 0
Closes #800
Checklist
make test-all
(UNIX) passes. CI will also test thisDescription of change
Added syntax checking for when multiple keys are provided. Improved syntax error messages in general.
Example of new errors: