Skip to content

Commit fce9f6c

Browse files
committed
Create Label
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
1 parent 7478ee3 commit fce9f6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/workload/configuration_spec.cr

+2
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ describe CnfTestSuite do
315315

316316
it "'default_namespace' should fail if a cnf creates resources in the default namespace", tags: ["default_namespace"] do
317317
begin
318+
ShellCmd.run("kubectl label namespace default pod-security.kubernetes.io/enforce=privileged", "Label.namespace")
319+
ShellCmd.cnf_install("cnf-config=./sample-cnfs/sample_coredns_default_namespace")
318320
result = ShellCmd.run_testsuite("default_namespace verbose")
319321
result[:status].success?.should be_true
320322
(/(FAILED).*(Resources are created in the default namespace)/ =~ result[:output]).should_not be_nil

0 commit comments

Comments
 (0)