Skip to content

Commit 7d45d82

Browse files
committed
Test SecurityContextConstraint creation and listing
Similar to Endpoints we force this kind to singular method names. Unlike Endpoint, lacked a workaround to pass original kind when creating.
1 parent 77cae4c commit 7d45d82

3 files changed

+506
-0
lines changed

Diff for: test/json/created_security_context_constraint.json

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"allowHostDirVolumePlugin": false,
3+
"allowHostIPC": false,
4+
"allowHostNetwork": false,
5+
"allowHostPID": false,
6+
"allowHostPorts": false,
7+
"allowPrivilegedContainer": false,
8+
"allowedCapabilities": null,
9+
"allowedFlexVolumes": null,
10+
"apiVersion": "security.openshift.io/v1",
11+
"defaultAddCapabilities": null,
12+
"fsGroup": {
13+
"type": "RunAsAny"
14+
},
15+
"groups": [],
16+
"kind": "SecurityContextConstraints",
17+
"metadata": {
18+
"creationTimestamp": "2018-11-23T10:01:42Z",
19+
"name": "teleportation",
20+
"resourceVersion": "5274",
21+
"selfLink": "/apis/security.openshift.io/v1/securitycontextconstraints/teleportation",
22+
"uid": "c6e8e2ec-ef06-11e8-b4c0-68f728fac3ab"
23+
},
24+
"priority": null,
25+
"readOnlyRootFilesystem": false,
26+
"requiredDropCapabilities": null,
27+
"runAsUser": {
28+
"type": "MustRunAs"
29+
},
30+
"seLinuxContext": {
31+
"type": "MustRunAs"
32+
},
33+
"supplementalGroups": {
34+
"type": "RunAsAny"
35+
},
36+
"users": [],
37+
"volumes": [
38+
"awsElasticBlockStore",
39+
"azureDisk",
40+
"azureFile",
41+
"cephFS",
42+
"cinder",
43+
"configMap",
44+
"downwardAPI",
45+
"emptyDir",
46+
"fc",
47+
"flexVolume",
48+
"flocker",
49+
"gcePersistentDisk",
50+
"gitRepo",
51+
"glusterfs",
52+
"iscsi",
53+
"nfs",
54+
"persistentVolumeClaim",
55+
"photonPersistentDisk",
56+
"portworxVolume",
57+
"projected",
58+
"quobyte",
59+
"rbd",
60+
"scaleIO",
61+
"secret",
62+
"storageOS",
63+
"vsphere"
64+
]
65+
}

0 commit comments

Comments
 (0)