From de3c9fb8404cc6f64d8d197b4e8f2a91173c754c Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 24 May 2024 16:52:46 +1000 Subject: [PATCH] commit changes --- spec/acceptance/observium_install_spec.rb | 6 +++--- spec/spec_helper_acceptance_local.rb | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 spec/spec_helper_acceptance_local.rb diff --git a/spec/acceptance/observium_install_spec.rb b/spec/acceptance/observium_install_spec.rb index 4b2bcd3..7db822a 100644 --- a/spec/acceptance/observium_install_spec.rb +++ b/spec/acceptance/observium_install_spec.rb @@ -3,9 +3,9 @@ require 'spec_helper_acceptance' describe 'Installation', if: ['centos', 'redhat', 'ubuntu'].include?(os[:family]) do - # before(:all) do - # system('yum -y install crontabs') - # end + before(:all) do + install_packge('crontabs') + end let(:pp) do <<-MANIFEST diff --git a/spec/spec_helper_acceptance_local.rb b/spec/spec_helper_acceptance_local.rb new file mode 100644 index 0000000..6cb462a --- /dev/null +++ b/spec/spec_helper_acceptance_local.rb @@ -0,0 +1,5 @@ +include PuppetLitmus + +def install_packge(package) + run_shell("yum -y install #{package}") +end \ No newline at end of file