Skip to content

Commit

Permalink
Ok tests too
Browse files Browse the repository at this point in the history
  • Loading branch information
daaang committed Nov 8, 2024
1 parent 79c4d47 commit a57717d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions spec/classes/profile/networking/firewall_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@
it do
expect(subject).to contain_firewallchain("#{chain}:filter:IPv4")
.with_ensure('present')
.with_purge(true)
.with_purge(false)
end

it do
expect(subject).to contain_firewallchain("#{chain}:filter:IPv6")
.with_ensure('present')
.with_purge(true)
.with_purge(false)
end
end
end
Expand Down
8 changes: 4 additions & 4 deletions spec/classes/role/kubernetes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@

it { is_expected.to contain_class('Nebula::Profile::Ntp') }

it { is_expected.not_to contain_resources('firewall').with_purge(true) }
it { is_expected.not_to contain_resources('firewall').with_purge(false) }

it do
expect(subject).to contain_firewallchain('INPUT:filter:IPv4').with(
ensure: 'present',
purge: true,
purge: false,
ignore: ['-j cali-INPUT',
'-j KUBE-FIREWALL',
'-j KUBE-SERVICES',
Expand All @@ -69,7 +69,7 @@
it do
expect(subject).to contain_firewallchain('OUTPUT:filter:IPv4').with(
ensure: 'present',
purge: true,
purge: false,
ignore: ['-j cali-OUTPUT',
'-j KUBE-FIREWALL',
'-j KUBE-SERVICES'],
Expand All @@ -79,7 +79,7 @@
it do
expect(subject).to contain_firewallchain('FORWARD:filter:IPv4').with(
ensure: 'present',
purge: true,
purge: false,
ignore: ['-j cali-FORWARD',
'-j KUBE-FORWARD',
'-j KUBE-SERVICES'],
Expand Down

0 comments on commit a57717d

Please sign in to comment.