From a57717d239af51845dcd40c6b61134f7c5ce5b3a Mon Sep 17 00:00:00 2001 From: Matthew Alexander LaChance Date: Fri, 8 Nov 2024 10:02:19 -0500 Subject: [PATCH] Ok tests too --- spec/classes/profile/networking/firewall_spec.rb | 4 ++-- spec/classes/role/kubernetes_spec.rb | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/classes/profile/networking/firewall_spec.rb b/spec/classes/profile/networking/firewall_spec.rb index c58761c49..e6fbac4e6 100644 --- a/spec/classes/profile/networking/firewall_spec.rb +++ b/spec/classes/profile/networking/firewall_spec.rb @@ -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 diff --git a/spec/classes/role/kubernetes_spec.rb b/spec/classes/role/kubernetes_spec.rb index 2dba6d6e5..9533056f2 100644 --- a/spec/classes/role/kubernetes_spec.rb +++ b/spec/classes/role/kubernetes_spec.rb @@ -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', @@ -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'], @@ -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'],