Skip to content

Commit

Permalink
Fix spec tests to match change
Browse files Browse the repository at this point in the history
  • Loading branch information
jorhett committed Dec 3, 2023
1 parent f25c424 commit b3c184a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/classes/kube_addons_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
when 'calico-tigera'
it {
expect(subject).to contain_exec('Install cni network (preinstall)').with({
command: ['kubectl', 'apply', '-f', 'https://foo.test/tigera-operator'],
command: ['kubectl', 'create', '-f', 'https://foo.test/tigera-operator'],
onlyif: 'kubectl get nodes'
})
}
Expand All @@ -86,7 +86,7 @@
expect(subject).to contain_exec('Install cni network provider').with(
{
onlyif: ['kubectl get nodes'],
command: ['kubectl', 'apply', '-f', "https://#{provider}.test"],
command: ['kubectl', 'create', '-f', "https://#{provider}.test"],
unless: ['kubectl -n kube-flannel get daemonset | egrep "^kube-flannel"']
},
)
Expand Down

0 comments on commit b3c184a

Please sign in to comment.