From d842c9df2c7c5ced691d66008fc697b584e92551 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Pinson?= Date: Wed, 27 Nov 2019 11:33:20 +0100 Subject: [PATCH] Add ctdir to acceptance tests --- spec/acceptance/firewall_attributes_happy_path_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/acceptance/firewall_attributes_happy_path_spec.rb b/spec/acceptance/firewall_attributes_happy_path_spec.rb index cbc0cb3..a7af229 100644 --- a/spec/acceptance/firewall_attributes_happy_path_spec.rb +++ b/spec/acceptance/firewall_attributes_happy_path_spec.rb @@ -17,6 +17,7 @@ describe 'firewall attribute testing, happy path' do chain => 'INPUT', proto => 'all', ctstate => 'INVALID', + ctdir => 'REPLY', jump => 'LOG', log_level => '3', log_prefix => 'IPTABLES dropped invalid: ', @@ -345,7 +346,7 @@ describe 'firewall attribute testing, happy path' do let(:result) { run_shell('iptables-save') } it 'log_level and log_prefix' do - expect(result.stdout).to match(%r{A INPUT -m conntrack --ctstate INVALID -m comment --comment "004 - log_level and log_prefix" -j LOG --log-prefix "IPTABLES dropped invalid: " --log-level 3}) + expect(result.stdout).to match(%r{A INPUT -m conntrack --ctstate INVALID --ctdir REPLY -m comment --comment "004 - log_level and log_prefix" -j LOG --log-prefix "IPTABLES dropped invalid: " --log-level 3}) # rubocop:disable Metrics/LineLength end # it 'contains the connlimit and connlimit_mask rule' do # expect(result.stdout).to match( -- 2.45.2