Skip to content

Commit

Permalink
MODULES-1355 - Add acceptance test to verify
Browse files Browse the repository at this point in the history
Use the example rule from the ticket to make sure this is working

Fixes puppetlabs/puppetlabs-firewall#408
  • Loading branch information
Morgan Haskel committed Dec 29, 2014
1 parent 946cf58 commit 0a3dc29
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/acceptance/resource_cmd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,22 @@
end
end
end

# version of iptables that ships with el5 doesn't work with the
# ip6tables provider
if default['platform'] !~ /el-5/
context 'dport/sport with ip6tables' do
before :all do
ip6tables_flush_all_tables
shell('ip6tables -A INPUT -d fe80::/64 -p udp -m udp --dport 546 --sport 547 -j ACCEPT')
end
it do
shell('puppet resource firewall \'000-foobar\' provider=ip6tables') do |r|
r.exit_code.should be_zero
# don't check stdout, testing preexisting rules, output is normal
r.stderr.should be_empty
end
end
end
end
end

0 comments on commit 0a3dc29

Please sign in to comment.