]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
(maint) modify to account for spaces in iptables-save output
authorEric Putnam <putnam.eric@gmail.com>
Wed, 10 May 2017 17:58:41 +0000 (10:58 -0700)
committerEric Putnam <putnam.eric@gmail.com>
Wed, 10 May 2017 17:58:41 +0000 (10:58 -0700)
for nflog_spec we check iptables-save output and for --nflog-prefix, there can be varying amounts of space, so this accounts for that

spec/acceptance/nflog_spec.rb

index d5f7a70e20e6196b539a43a5a9d1735d734f7c69..6ce203515c4dc930c5abf37862d1e6b514ac799d 100644 (file)
@@ -42,7 +42,7 @@ describe 'nflog' do
 
     it 'contains the rule' do
       shell('iptables-save') do |r|
-        expect(r.stdout).to match(/NFLOG --nflog-prefix  "#{prefix}"/)
+        expect(r.stdout).to match(/NFLOG --nflog-prefix +"#{prefix}"/)
       end
     end
   end