From: Hunter Haugen Date: Fri, 21 Feb 2014 20:55:20 +0000 (-0800) Subject: Fix logic for supported socket platforms X-Git-Tag: 1.0.1~9^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=aea1e52507f17eb4432ee1750eafd73786ca96e3;p=puppet-modules%2Fpuppetlabs-firewall.git Fix logic for supported socket platforms --- diff --git a/spec/acceptance/params_spec.rb b/spec/acceptance/params_spec.rb index 261b477..d2948ee 100644 --- a/spec/acceptance/params_spec.rb +++ b/spec/acceptance/params_spec.rb @@ -20,23 +20,19 @@ firewall { '#{name}': pm end - it 'test various params' do + it 'test various params', :unless => default['platform'].match(/el-5/) do iptables_flush_all_tables - unless (fact('operatingsystem') == 'CentOS') && \ - fact('operatingsystemrelease') =~ /^5\./ then - - ppm = pp({ - 'table' => "'raw'", - 'socket' => 'true', - 'chain' => "'PREROUTING'", - 'jump' => 'LOG', - 'log_level' => 'debug', - }) + ppm = pp({ + 'table' => "'raw'", + 'socket' => 'true', + 'chain' => "'PREROUTING'", + 'jump' => 'LOG', + 'log_level' => 'debug', + }) - expect(apply_manifest(ppm, :catch_failures => true).exit_code).to eq(2) - expect(apply_manifest(ppm, :catch_failures => true).exit_code).to be_zero - end + expect(apply_manifest(ppm, :catch_failures => true).exit_code).to eq(2) + expect(apply_manifest(ppm, :catch_failures => true).exit_code).to be_zero end it 'test log rule' do