13
0
Fork 0
mirror of https://github.com/yannh/kubeconform.git synced 2026-07-03 01:49:30 +00:00

Add simple regression tests for openapi2jsonschema

This commit is contained in:
Yann Hamon 2021-09-26 13:46:05 +02:00
parent 54e0b8f5bb
commit dfd7a5a102
6 changed files with 11967 additions and 0 deletions

9
scripts/acceptance.bats Normal file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bats
@test "Should generate expected prometheus resource" {
run ./openapi2jsonschema.py fixtures/prometheus-operator-0prometheusCustomResourceDefinition.yaml
[ "$status" -eq 0 ]
[ "$output" = "JSON schema written to prometheus_v1.json" ]
run diff prometheus_v1.json ./fixtures/prometheus_v1-expected.json
[ "$status" -eq 0 ]
}