aboutsummaryrefslogtreecommitdiff
path: root/spec/defines/tftp_file_spec.rb
diff options
context:
space:
mode:
authorBranan Purvine-Riley <branan@puppetlabs.com>2012-07-11 16:44:22 -0700
committerBranan Purvine-Riley <branan@puppetlabs.com>2012-07-11 16:44:22 -0700
commit0f70b0bfe7b5f8475ffade5f9e14c0632e42bd47 (patch)
treeec92d13791e0a391e40a755516fc2c4ff989f714 /spec/defines/tftp_file_spec.rb
parent3795cdabd43e909702f433d0be3886626f97e802 (diff)
parente29cbb8be4347a471edae244aef6c26faada38bc (diff)
downloadpuppet-tftp-0f70b0bfe7b5f8475ffade5f9e14c0632e42bd47.tar.gz
puppet-tftp-0f70b0bfe7b5f8475ffade5f9e14c0632e42bd47.tar.bz2
Merge pull request #12 from nanliu/tb/file
Update redhat tftp file owner.
Diffstat (limited to 'spec/defines/tftp_file_spec.rb')
-rw-r--r--spec/defines/tftp_file_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/defines/tftp_file_spec.rb b/spec/defines/tftp_file_spec.rb
index e24f0f3..38f34a6 100644
--- a/spec/defines/tftp_file_spec.rb
+++ b/spec/defines/tftp_file_spec.rb
@@ -38,6 +38,23 @@ describe 'tftp::file' do
}
end
+ describe 'when deploying on redhat' do
+ let(:facts) { { :operatingsystem => 'RedHat',
+ :osfamily => 'redhat',
+ :path => '/usr/local/bin:/usr/bin:/bin', } }
+
+ it {
+ should include_class('tftp')
+ should contain_file('/var/lib/tftpboot/sample').with({
+ 'ensure' => 'file',
+ 'owner' => 'nobody',
+ 'group' => 'nobody',
+ 'mode' => '0644',
+ 'recurse' => false,
+ })
+ }
+ end
+
describe 'when deploying with parameters' do
let(:params) { {:ensure => 'directory',
:owner => 'root',