Skip to content

Commit

Permalink
MODULES-1612 - mask isn't supported on deb7
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Haskel committed Jan 14, 2015
1 parent d1606aa commit afe3359
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions spec/acceptance/firewall_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1487,9 +1487,11 @@ class { '::firewall': }
end
end

describe 'mask' do
it 'applies' do
pp = <<-EOS
# mask isn't supported on deb7
if default['platform'] !~ /debian-7/
describe 'mask' do
it 'applies' do
pp = <<-EOS
class { '::firewall': }
firewall { '613 - test':
recent => 'update',
Expand All @@ -1501,14 +1503,15 @@ class { '::firewall': }
mask => 'ffff::',
provider => 'ip6tables',
}
EOS
EOS

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

it 'should contain the rule' do
shell('ip6tables-save') do |r|
expect(r.stdout).to match(/-A FORWARD -p tcp -m comment --comment "613 - test" -m recent --update --seconds 60 --name test --mask ffff:: --rsource -j DROP/)
it 'should contain the rule' do
shell('ip6tables-save') do |r|
expect(r.stdout).to match(/-A FORWARD -p tcp -m comment --comment "613 - test" -m recent --update --seconds 60 --name test --mask ffff:: --rsource -j DROP/)
end
end
end
end
Expand Down

0 comments on commit afe3359

Please sign in to comment.