Skip to content

Commit

Permalink
Merge pull request #596 from bmjen/fix-ci
Browse files Browse the repository at this point in the history
(maint) fixes acceptance tests
  • Loading branch information
mentat committed Dec 17, 2015
2 parents 79eeb80 + b738536 commit 9df7e88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/acceptance/firewall_spec.rb
Expand Up @@ -2346,7 +2346,7 @@ class { '::firewall': }

it 'should contain the rule' do
shell('iptables-save') do |r|
expect(r.stdout).to match(/-A OUTPUT -p tcp -m comment --comment "700 - test log_uid" -j LOG --log_uid "/)
expect(r.stdout).to match(/-A OUTPUT -p tcp -m comment --comment "700 - test log_uid" -j LOG --log-uid/)
end
end

Expand All @@ -2356,17 +2356,17 @@ class { '::firewall': }
firewall { '700 - test log_uid':
chain => 'OUTPUT',
jump => 'LOG',
log_uid => false'
log_uid => false,
ensure => absent,
}
EOS

appy_manifest(pp, :catch_failures => true)
apply_manifest(pp, :catch_failures => true)
end

it 'should not contain the rule' do
shell('iptables-save') do |r|
expect(r.stdout).to_not match('/-A OUTPUT -p tcp -m comment --comment "700 - test log_uid" -j --log-uid "/')
expect(r.stdout).to_not match(/-A OUTPUT -p tcp -m comment --comment "700 - test log_uid" -j --log-uid/)
end
end
end
Expand Down

0 comments on commit 9df7e88

Please sign in to comment.