From 690cb201c269a37e9e287426e461632b3cc3c70e Mon Sep 17 00:00:00 2001 From: Helen Campbell Date: Wed, 9 Dec 2015 11:29:44 +0000 Subject: [PATCH] Adding bug workaround in tests for Debian 8 --- spec/acceptance/ntp_service_spec.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/spec/acceptance/ntp_service_spec.rb b/spec/acceptance/ntp_service_spec.rb index 73edd656..c5a64c7a 100644 --- a/spec/acceptance/ntp_service_spec.rb +++ b/spec/acceptance/ntp_service_spec.rb @@ -19,7 +19,11 @@ describe service(servicename) do if !(fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '12') it { should be_running } - it { should be_enabled } + if (fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8') + pending 'Should be enabled - Bug 760616 on Debian 8' + else + it { should be_enabled } + end else # hack until we either update SpecInfra or come up with alternative it { @@ -73,7 +77,11 @@ class { 'ntp': describe service(servicename) do if !(fact('operatingsystem') == 'SLES' && fact('operatingsystemmajrelease') == '12') it { should be_running } - it { should be_enabled } + if (fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8') + pending 'Should be enabled - Bug 760616 on Debian 8' + else + it { should be_enabled } + end else # hack until we either update SpecInfra or come up with alternative output = shell('service ntpd status', :acceptable_exit_codes => [0, 3])