Skip to content

Commit

Permalink
(CAT-2100) Correct rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamshinde360 committed Oct 14, 2024
1 parent f55529a commit 52bf881
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/acceptance/ntp_user_and_daemon_opts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@
elsif os[:family] == 'sles'
'/etc/sysconfig/ntp'
elsif os[:family] == 'debian' && os[:release].start_with?('12')
'/etc/default/ntpsec'
'/etc/default/ntpsec'
else
'/etc/default/ntp'
end
describe 'ntp class with daemon options:', unless: UNSUPPORTED_PLATFORMS.include?(os[:family]) || (os[:release].start_with?('5') && os[:family] == 'redhat') do
let(:pp) { "class { 'ntp': service_enable => true, service_ensure => running, service_manage => true, service_name => '#{servicename}', user => 'ntp', daemon_extra_opts => '-g -i /var/lib/ntpsec' }" }
let(:pp) do
"class { 'ntp': service_enable => true, service_ensure => running, service_manage => true, service_name => '#{servicename}', user => 'ntp', daemon_extra_opts => '-g -i /var/lib/ntpsec' }"
end

context 'when run' do
it 'is successful' do # rubocop:disable RSpec/NoExpectationExample
Expand Down

0 comments on commit 52bf881

Please sign in to comment.