...
1apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this
2name: "[Stable] SecurityContextConstraints"
3crd: 0000_03_security-openshift_01_scc.crd.yaml
4tests:
5 onCreate:
6 - name: Should be able to create a minimal SecurityContextConstraints
7 initial: |
8 apiVersion: security.openshift.io/v1
9 kind: SecurityContextConstraints
10 allowHostDirVolumePlugin: false
11 allowHostIPC: false
12 allowHostNetwork: false
13 allowHostPID: false
14 allowHostPorts: false
15 allowPrivilegedContainer: false
16 allowedCapabilities: []
17 defaultAddCapabilities: []
18 priority: 0
19 readOnlyRootFilesystem: false
20 requiredDropCapabilities: []
21 volumes: []
22 expected: |
23 apiVersion: security.openshift.io/v1
24 kind: SecurityContextConstraints
25 allowHostDirVolumePlugin: false
26 allowHostIPC: false
27 allowHostNetwork: false
28 allowHostPID: false
29 allowHostPorts: false
30 allowPrivilegedContainer: false
31 allowedCapabilities: []
32 defaultAddCapabilities: []
33 priority: 0
34 readOnlyRootFilesystem: false
35 requiredDropCapabilities: []
36 volumes: []
View as plain text