diff options
author | varac <varacanero@zeromail.org> | 2016-06-09 17:33:06 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-06-14 12:05:18 +0200 |
commit | df16f0bae5f12aae680ea8dcdec0befd27e66e2d (patch) | |
tree | e2b1af75fbb9ba1e7369cf9739a3f48105ffe704 /puppet/modules/ntp/spec/system/ntp_install_spec.rb | |
parent | a86a9bbaa31c0859abf0b7f8c49f58b0a68ad134 (diff) |
git subrepo clone https://leap.se/git/puppet_ntp puppet/modules/ntp
subrepo:
subdir: "puppet/modules/ntp"
merged: "8a554ab"
upstream:
origin: "https://leap.se/git/puppet_ntp"
branch: "master"
commit: "8a554ab"
git-subrepo:
version: "0.3.0"
origin: "https://github.com/ingydotnet/git-subrepo.git"
commit: "cb2995b"
Diffstat (limited to 'puppet/modules/ntp/spec/system/ntp_install_spec.rb')
-rw-r--r-- | puppet/modules/ntp/spec/system/ntp_install_spec.rb | 31 |
1 files changed, 31 insertions, 0 deletions
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 |