diff options
author | crayfishx <craig@craigdunn.org> | 2012-07-10 16:41:06 -0700 |
---|---|---|
committer | crayfishx <craig@craigdunn.org> | 2012-07-10 16:41:06 -0700 |
commit | 6ecee7dd83b51f6a25f98ff1600410a1bb531410 (patch) | |
tree | d16c327aaa594742a42afe3a95f832a2aa4bc826 /spec/defines | |
parent | 57e69bf36be91ae3e95a2ab5af259029ea54ece7 (diff) | |
download | puppet-tftp-6ecee7dd83b51f6a25f98ff1600410a1bb531410.tar.gz puppet-tftp-6ecee7dd83b51f6a25f98ff1600410a1bb531410.tar.bz2 |
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
Diffstat (limited to 'spec/defines')
-rw-r--r-- | spec/defines/tftp_file_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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', } } |