mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-18 01:17:03 +00:00
script acceptance test
This commit is contained in:
parent
f89f5ecf70
commit
5cc65b4dc0
1 changed files with 8 additions and 0 deletions
|
|
@ -79,3 +79,11 @@ setup() {
|
|||
[ "${lines[0]}" == 'Missing FILE parameter.' ]
|
||||
[ "${lines[1]}" == 'Usage: ./openapi2jsonschema.py [FILE]' ]
|
||||
}
|
||||
|
||||
@test "Should generate expected emissary resource" {
|
||||
run ./openapi2jsonschema.py fixtures/emissary-mapping-crd.yaml
|
||||
[ "$status" -eq 0 ]
|
||||
[ "$output" = "JSON schema written to mapping_v2.json" ]
|
||||
run diff mapping_v2.json ./fixtures/mapping_v2-expected.json
|
||||
[ "$status" -eq 0 ]
|
||||
}
|
||||
Loading…
Reference in a new issue