mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 14:09:21 +00:00
9 lines
353 B
Bash
9 lines
353 B
Bash
#!/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 ]
|
|
}
|