diff options
Diffstat (limited to 'puppet/modules/ntp/spec/system/ntp_install_spec.rb')
m--------- | puppet/modules/ntp | 9 | ||||
-rw-r--r-- | puppet/modules/ntp/spec/system/ntp_install_spec.rb | 31 |
2 files changed, 31 insertions, 9 deletions
diff --git a/puppet/modules/ntp b/puppet/modules/ntp deleted file mode 160000 -Subproject 27f2bc72110b1001233eb0907aa07e06cdf3319 diff --git a/puppet/modules/ntp/spec/system/ntp_install_spec.rb b/puppet/modules/ntp/spec/system/ntp_install_spec.rb new file mode 100644 index 00000000..39759c5e --- /dev/null +++ b/puppet/modules/ntp/spec/system/ntp_install_spec.rb @@ -0,0 +1,31 @@ +require 'spec_helper_system' + + +describe 'ntp::install class' do + let(:os) { + node.facts['osfamily'] + } + + case node.facts['osfamily'] + when 'FreeBSD' + packagename = 'net/ntp' + when 'Linux' + case node.facts['operatingsystem'] + when 'ArchLinux' + packagename = 'ntp' + when 'Gentoo' + packagename = 'net-misc/ntp' + end + else + packagename = 'ntp' + end + + puppet_apply(%{ + class { 'ntp': } + }) + + describe package(packagename) do + it { should be_installed } + end + +end |