From 6ecee7dd83b51f6a25f98ff1600410a1bb531410 Mon Sep 17 00:00:00 2001 From: crayfishx Date: Tue, 10 Jul 2012 16:41:06 -0700 Subject: Updated rspec tests for new functionality * Removed rspec-tests for inetd * Modified existing tests to work with new evaluation of :osfamily * Added tests for Redhat/CentOS boxes * Added rspec-tests for xinetd service --- spec/defines/tftp_file_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/defines/tftp_file_spec.rb') diff --git a/spec/defines/tftp_file_spec.rb b/spec/defines/tftp_file_spec.rb index 0de1b6f..84c9e33 100644 --- a/spec/defines/tftp_file_spec.rb +++ b/spec/defines/tftp_file_spec.rb @@ -6,6 +6,7 @@ describe 'tftp::file' do describe 'when deploying on debian' do let(:facts) { { :operatingsystem => 'Debian', + :osfamily => 'Debian', :path => '/usr/local/bin:/usr/bin:/bin', } } it { should include_class('tftp') } @@ -20,6 +21,7 @@ describe 'tftp::file' do describe 'when deploying on ubuntu' do let(:facts) { { :operatingsystem => 'ubuntu', + :osfamily => 'Debian', :path => '/usr/local/bin:/usr/bin:/bin', } } it { should include_class('tftp') } @@ -39,6 +41,7 @@ describe 'tftp::file' do :mode => '0755', :recurse => true }} let(:facts) { { :operatingsystem => 'Debian', + :osfamily => 'Debian', :path => '/usr/local/bin:/usr/bin:/bin', } } it { should include_class('tftp') } @@ -53,6 +56,7 @@ describe 'tftp::file' do describe 'when deploying without recurse parameters' do let(:facts) { {:operatingsystem => 'Debian', + :osfamily => 'Debian', :path => '/usr/local/bin:/usr/bin:/bin', } } it { should include_class('tftp') } @@ -73,6 +77,7 @@ describe 'tftp::file' do :purge => true, :replace => false }} let(:facts) { {:operatingsystem => 'Debian', + :osfamily => 'Debian', :path => '/usr/local/bin:/usr/bin:/bin', }} it { should include_class('tftp') } @@ -92,6 +97,7 @@ describe 'tftp::file' do let(:params) { {:ensure => 'directory', :mode => '0755' }} let(:facts) { { :operatingsystem => 'Debian', + :osfamily => 'Debian', :caller_module_name => 'acme', :path => '/usr/local/bin:/usr/bin:/bin', } } @@ -107,6 +113,7 @@ describe 'tftp::file' do let(:params) { {:ensure => 'file', :mode => '0755' }} let(:facts) { { :operatingsystem => 'Debian', + :osfamily => 'Debian', :caller_module_name => 'acme', :path => '/usr/local/bin:/usr/bin:/bin', } } @@ -123,6 +130,7 @@ describe 'tftp::file' do :content => 'hi', :mode => '0755' }} let(:facts) { { :operatingsystem => 'Debian', + :osfamily => 'Debian', :caller_module_name => 'acme', :path => '/usr/local/bin:/usr/bin:/bin', } } -- cgit v1.2.3