Skip to content

Commit

Permalink
Update kitchen tests to match refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
bmhughes committed Mar 7, 2021
1 parent e969185 commit 170564f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion test/cookbooks/test/recipes/all-tables.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
include_recipe '::centos-6-helper' if platform?('centos') && node['platform_version'].to_i == 6

iptables_packages 'install iptables'
iptables_service 'configure iptables services'
iptables_service 'configure iptables services' do
action %i(enable start)

subscribes :restart, 'template[/etc/sysconfig/iptables]', :delayed
end

iptables_chain 'filter' do
table :filter
Expand Down
6 changes: 5 additions & 1 deletion test/cookbooks/test/recipes/rule-line-number.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
include_recipe '::centos-6-helper' if platform?('centos') && node['platform_version'].to_i == 6

iptables_packages 'install iptables'
iptables_service 'configure iptables services'
iptables_service 'configure iptables services' do
action %i(enable start)

subscribes :restart, 'template[/etc/sysconfig/iptables]', :delayed
end

iptables_chain 'filter' do
table :filter
Expand Down
6 changes: 5 additions & 1 deletion test/cookbooks/test/recipes/rule-line.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
include_recipe '::centos-6-helper' if platform?('centos') && node['platform_version'].to_i == 6

iptables_packages 'install iptables'
iptables_service 'configure iptables services'
iptables_service 'configure iptables services' do
action %i(enable start)

subscribes :restart, 'template[/etc/sysconfig/iptables]', :delayed
end

iptables_chain 'filter' do
table :filter
Expand Down
6 changes: 5 additions & 1 deletion test/cookbooks/test/recipes/rules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
include_recipe '::centos-6-helper' if platform?('centos') && node['platform_version'].to_i == 6

iptables_packages 'install iptables'
iptables_service 'configure iptables services'
iptables_service 'configure iptables services' do
action %i(enable start)

subscribes :restart, 'template[/etc/sysconfig/iptables]', :delayed
end

iptables_chain 'mangle' do
table :mangle
Expand Down

0 comments on commit 170564f

Please sign in to comment.