Skip to content

Commit 21650da

Browse files
committed
Fix spec tests to match change
1 parent 90eb360 commit 21650da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/classes/kube_addons_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
it {
4242
expect(subject).to contain_exec('Install cni network provider').with({
43-
command: ['kubectl', 'apply', '-f', 'https://foo.test'],
43+
command: ['kubectl', 'create', '-f', 'https://foo.test'],
4444
onlyif: ['kubectl get nodes']
4545
})
4646
}
@@ -73,7 +73,7 @@
7373
when 'calico-tigera'
7474
it {
7575
expect(subject).to contain_exec('Install cni network (preinstall)').with({
76-
command: ['kubectl', 'apply', '-f', 'https://foo.test/tigera-operator'],
76+
command: ['kubectl', 'create', '-f', 'https://foo.test/tigera-operator'],
7777
onlyif: 'kubectl get nodes'
7878
})
7979
}

0 commit comments

Comments
 (0)