You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run ./openapi2jsonschema.py fixtures/prometheus-operator-0prometheusCustomResourceDefinition.yaml
5
9
[ "$status"-eq 0 ]
6
10
[ "$output"="JSON schema written to prometheus_v1.json" ]
7
11
run diff prometheus_v1.json ./fixtures/prometheus_v1-expected.json
8
12
[ "$status"-eq 0 ]
9
13
}
14
+
15
+
@test "Should generate expected prometheus resource from an HTTP resource" {
16
+
run ./openapi2jsonschema.py https://raw.githubusercontent.com/yannh/kubeconform/aebc298047c386116eeeda9b1ada83671a58aedd/scripts/fixtures/prometheus-operator-0prometheusCustomResourceDefinition.yaml
17
+
[ "$status"-eq 0 ]
18
+
[ "$output"="JSON schema written to prometheus_v1.json" ]
19
+
run diff prometheus_v1.json ./fixtures/prometheus_v1-expected.json
0 commit comments