From: Bryan Jen Date: Thu, 1 Dec 2016 00:44:11 +0000 (+0000) Subject: Fixes unit tests to pass in puppetversion fact. X-Git-Tag: 1.8.2~16^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=22e514925477372730de18b033805a769231f3e7;p=puppet-modules%2Fpuppetlabs-firewall.git Fixes unit tests to pass in puppetversion fact. --- diff --git a/spec/unit/classes/firewall_linux_redhat_spec.rb b/spec/unit/classes/firewall_linux_redhat_spec.rb index 41b6828..7655417 100644 --- a/spec/unit/classes/firewall_linux_redhat_spec.rb +++ b/spec/unit/classes/firewall_linux_redhat_spec.rb @@ -35,6 +35,7 @@ describe 'firewall::linux::redhat', :type => :class do :operatingsystemrelease => osrel, :osfamily => 'RedHat', :selinux => false, + :puppetversion => Puppet.version, }} it { should_not contain_service('firewalld') } @@ -51,6 +52,7 @@ describe 'firewall::linux::redhat', :type => :class do :operatingsystemrelease => osrel, :osfamily => 'RedHat', :selinux => false, + :puppetversion => Puppet.version, }} it { should contain_service('firewalld').with( diff --git a/spec/unit/classes/firewall_linux_spec.rb b/spec/unit/classes/firewall_linux_spec.rb index 2673c83..b045801 100644 --- a/spec/unit/classes/firewall_linux_spec.rb +++ b/spec/unit/classes/firewall_linux_spec.rb @@ -13,6 +13,7 @@ describe 'firewall::linux', :type => :class do :operatingsystemrelease => osrel, :osfamily => 'RedHat', :selinux => false, + :puppetversion => Puppet.version, }} it { should contain_class('firewall::linux::redhat').with_require('Package[iptables]') } it { should contain_package('iptables').with_ensure('present') } @@ -33,6 +34,7 @@ describe 'firewall::linux', :type => :class do :operatingsystemrelease => osrel, :osfamily => 'Debian', :selinux => false, + :puppetversion => Puppet.version, }} it { should contain_class('firewall::linux::debian').with_require('Package[iptables]') }