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 7bf9f75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/classes/kube_addons_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

it {

Check failure on line 41 in spec/classes/kube_addons_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

kubernetes::kube_addons with controller => true and schedule_on_controller => true is expected to contain Exec[Install cni network provider] with command => ["kubectl", "create", "-f", "https://foo.test"] and onlyif => ["kubectl get nodes"] Failure/Error: expect(subject).to contain_exec('Install cni network provider').with({ command: ['kubectl', 'create', '-f', 'https://foo.test'], onlyif: ['kubectl get nodes'] }) expected that the catalogue would contain Exec[Install cni network provider] with command set to ["kubectl", "create", "-f", "https://foo.test"] but it is set to ["kubectl", "apply", "-f", "https://foo.test"] Diff: @@ -1,6 +1,6 @@ kubectl -create +apply -f

Check failure on line 41 in spec/classes/kube_addons_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

kubernetes::kube_addons with controller => true and schedule_on_controller => true is expected to contain Exec[Install cni network provider] with command => ["kubectl", "create", "-f", "https://foo.test"] and onlyif => ["kubectl get nodes"] Failure/Error: expect(subject).to contain_exec('Install cni network provider').with({ command: ['kubectl', 'create', '-f', 'https://foo.test'], onlyif: ['kubectl get nodes'] }) expected that the catalogue would contain Exec[Install cni network provider] with command set to ["kubectl", "create", "-f", "https://foo.test"] but it is set to ["kubectl", "apply", "-f", "https://foo.test"] Diff: @@ -1,6 +1,6 @@ kubectl -create +apply -f
expect(subject).to contain_exec('Install cni network provider').with({
command: ['kubectl', 'apply', '-f', 'https://foo.test'],
command: ['kubectl', 'create', '-f', 'https://foo.test'],
onlyif: ['kubectl get nodes']
})
}
Expand Down 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 All @@ -95,7 +95,7 @@
it {

Check failure on line 95 in spec/classes/kube_addons_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

kubernetes::kube_addons CNI network provider with weave is expected to contain Exec[Install cni network provider] with onlyif => ["kubectl get nodes"], command => ["kubectl", "create", "-f", "https://weave.test"] and unless => ["kubectl -n kube-system get daemonset | egrep \"(flannel|weave|calico-node|cilium)\""] Failure/Error: expect(subject).to contain_exec('Install cni network provider').with({ onlyif: ['kubectl get nodes'], command: ['kubectl', 'create', '-f', "https://#{provider}.test"], unless: ['kubectl -n kube-system get daemonset | egrep "(flannel|weave|calico-node|cilium)"'] }) expected that the catalogue would contain Exec[Install cni network provider] with command set to ["kubectl", "create", "-f", "https://weave.test"] but it is set to ["kubectl", "apply", "-f", "https://weave.test"] Diff: @@ -1,6 +1,6 @@ kubectl -create +apply -f

Check failure on line 95 in spec/classes/kube_addons_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

kubernetes::kube_addons CNI network provider with calico is expected to contain Exec[Install cni network provider] with onlyif => ["kubectl get nodes"], command => ["kubectl", "create", "-f", "https://calico.test"] and unless => ["kubectl -n kube-system get daemonset | egrep \"(flannel|weave|calico-node|cilium)\""] Failure/Error: expect(subject).to contain_exec('Install cni network provider').with({ onlyif: ['kubectl get nodes'], command: ['kubectl', 'create', '-f', "https://#{provider}.test"], unless: ['kubectl -n kube-system get daemonset | egrep "(flannel|weave|calico-node|cilium)"'] }) expected that the catalogue would contain Exec[Install cni network provider] with command set to ["kubectl", "create", "-f", "https://calico.test"] but it is set to ["kubectl", "apply", "-f", "https://calico.test"] Diff: @@ -1,6 +1,6 @@ kubectl -create +apply -f

Check failure on line 95 in spec/classes/kube_addons_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

kubernetes::kube_addons CNI network provider with cilium is expected to contain Exec[Install cni network provider] with onlyif => ["kubectl get nodes"], command => ["kubectl", "create", "-f", "https://cilium.test"] and unless => ["kubectl -n kube-system get daemonset | egrep \"(flannel|weave|calico-node|cilium)\""] Failure/Error: expect(subject).to contain_exec('Install cni network provider').with({ onlyif: ['kubectl get nodes'], command: ['kubectl', 'create', '-f', "https://#{provider}.test"], unless: ['kubectl -n kube-system get daemonset | egrep "(flannel|weave|calico-node|cilium)"'] }) expected that the catalogue would contain Exec[Install cni network provider] with command set to ["kubectl", "create", "-f", "https://cilium.test"] but it is set to ["kubectl", "apply", "-f", "https://cilium.test"] Diff: @@ -1,6 +1,6 @@ kubectl -create +apply -f

Check failure on line 95 in spec/classes/kube_addons_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

kubernetes::kube_addons CNI network provider with weave is expected to contain Exec[Install cni network provider] with onlyif => ["kubectl get nodes"], command => ["kubectl", "create", "-f", "https://weave.test"] and unless => ["kubectl -n kube-system get daemonset | egrep \"(flannel|weave|calico-node|cilium)\""] Failure/Error: expect(subject).to contain_exec('Install cni network provider').with({ onlyif: ['kubectl get nodes'], command: ['kubectl', 'create', '-f', "https://#{provider}.test"], unless: ['kubectl -n kube-system get daemonset | egrep "(flannel|weave|calico-node|cilium)"'] }) expected that the catalogue would contain Exec[Install cni network provider] with command set to ["kubectl", "create", "-f", "https://weave.test"] but it is set to ["kubectl", "apply", "-f", "https://weave.test"] Diff: @@ -1,6 +1,6 @@ kubectl -create +apply -f

Check failure on line 95 in spec/classes/kube_addons_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

kubernetes::kube_addons CNI network provider with calico is expected to contain Exec[Install cni network provider] with onlyif => ["kubectl get nodes"], command => ["kubectl", "create", "-f", "https://calico.test"] and unless => ["kubectl -n kube-system get daemonset | egrep \"(flannel|weave|calico-node|cilium)\""] Failure/Error: expect(subject).to contain_exec('Install cni network provider').with({ onlyif: ['kubectl get nodes'], command: ['kubectl', 'create', '-f', "https://#{provider}.test"], unless: ['kubectl -n kube-system get daemonset | egrep "(flannel|weave|calico-node|cilium)"'] }) expected that the catalogue would contain Exec[Install cni network provider] with command set to ["kubectl", "create", "-f", "https://calico.test"] but it is set to ["kubectl", "apply", "-f", "https://calico.test"] Diff: @@ -1,6 +1,6 @@ kubectl -create +apply -f

Check failure on line 95 in spec/classes/kube_addons_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

kubernetes::kube_addons CNI network provider with cilium is expected to contain Exec[Install cni network provider] with onlyif => ["kubectl get nodes"], command => ["kubectl", "create", "-f", "https://cilium.test"] and unless => ["kubectl -n kube-system get daemonset | egrep \"(flannel|weave|calico-node|cilium)\""] Failure/Error: expect(subject).to contain_exec('Install cni network provider').with({ onlyif: ['kubectl get nodes'], command: ['kubectl', 'create', '-f', "https://#{provider}.test"], unless: ['kubectl -n kube-system get daemonset | egrep "(flannel|weave|calico-node|cilium)"'] }) expected that the catalogue would contain Exec[Install cni network provider] with command set to ["kubectl", "create", "-f", "https://cilium.test"] but it is set to ["kubectl", "apply", "-f", "https://cilium.test"] Diff: @@ -1,6 +1,6 @@ kubectl -create +apply -f
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-system get daemonset | egrep "(flannel|weave|calico-node|cilium)"']
})
}
Expand Down

0 comments on commit 7bf9f75

Please sign in to comment.