diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-04-21 14:50:02 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-04-21 14:50:02 +0000 |
commit | c0f6af6527ee308dddf6f2b1c91ba635a4b2e2e6 (patch) | |
tree | 4121e69013c0ee322583d5af4af0cf6f858da8c0 /spec/classes/tripleo_firewall_spec.rb | |
parent | 239a12fe56d78ab83fa8dbf87a7022943db947dd (diff) | |
parent | a005e3e052a4e41397e7060ad3bc8f45860e5336 (diff) |
Merge "Add destination parameter to firewall rule"
Diffstat (limited to 'spec/classes/tripleo_firewall_spec.rb')
-rw-r--r-- | spec/classes/tripleo_firewall_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/classes/tripleo_firewall_spec.rb b/spec/classes/tripleo_firewall_spec.rb index 7d1d1ec..aa5d1d7 100644 --- a/spec/classes/tripleo_firewall_spec.rb +++ b/spec/classes/tripleo_firewall_spec.rb @@ -73,7 +73,8 @@ describe 'tripleo::firewall' do :manage_firewall => true, :firewall_rules => { '300 add custom application 1' => {'port' => '999', 'proto' => 'udp', 'action' => 'accept'}, - '301 add custom application 2' => {'port' => '8081', 'proto' => 'tcp', 'action' => 'accept'} + '301 add custom application 2' => {'port' => '8081', 'proto' => 'tcp', 'action' => 'accept'}, + '302 fwd custom cidr 1' => {'chain' => 'FORWARD', 'destination' => '192.0.2.0/24'} } ) end @@ -90,6 +91,10 @@ describe 'tripleo::firewall' do :action => 'accept', :state => ['NEW'], ) + is_expected.to contain_firewall('302 fwd custom cidr 1').with( + :chain => 'FORWARD', + :destination => '192.0.2.0/24', + ) end end |