Skip to content

Commit 12a7e84

Browse files
authored
feat: add security context test for kind example (#170)
1 parent b98eaca commit 12a7e84

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/security_context_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ func TestSecurityContext(t *testing.T) {
1919
exampleOpenShift, err := ReadValues("../examples/openshift/openshift.values.yaml")
2020
require.NoError(t, err, "failed to load OpenShift example values")
2121

22+
exampleKind, err := ReadValues(("../examples/kind/kind.values.yaml"))
23+
require.NoError(t, err, "failed to load Kind example values")
24+
2225
tests := []struct {
2326
Name string
2427
Values *CoderValues
@@ -50,6 +53,15 @@ func TestSecurityContext(t *testing.T) {
5053
},
5154
},
5255
},
56+
{
57+
Name: "kind",
58+
Values: exampleKind,
59+
PodSecurityContext: &corev1.PodSecurityContext{
60+
SeccompProfile: &corev1.SeccompProfile{
61+
Type: corev1.SeccompProfileTypeRuntimeDefault,
62+
},
63+
},
64+
},
5365
}
5466

5567
for _, test := range tests {

0 commit comments

Comments
 (0)