Datasets:
File size: 884 Bytes
6c082c1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | kind: Suite
apiVersion: test.gatekeeper.sh/v1alpha1
metadata:
name: httpsonly
tests:
- name: tls-required
template: template.yaml
constraint: samples/ingress-https-only/constraint.yaml
cases:
- name: example-allowed
object: samples/ingress-https-only/example_allowed.yaml
assertions:
- violations: no
- name: example-disallowed
object: samples/ingress-https-only/example_disallowed.yaml
assertions:
- violations: yes
- name: tls-optional
template: template.yaml
constraint: samples/ingress-https-only-tls-optional/constraint.yaml
cases:
- name: example-allowed-tls-optional
object: samples/ingress-https-only-tls-optional/example_allowed.yaml
assertions:
- violations: no
- name: example-disallowed-tls-optional
object: samples/ingress-https-only-tls-optional/example_disallowed.yaml
assertions:
- violations: yes
|