Skip to content

Commit

Permalink
Add test for ntp change for ubuntu >= 23.10
Browse files Browse the repository at this point in the history
  • Loading branch information
melease27 committed Sep 3, 2024
1 parent 51855c8 commit d738d0f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/unit/attributes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,18 @@
end
end

describe 'on Ubuntu >= 23.10' do
let(:chef_run) { ChefSpec::SoloRunner.new(platform: 'ubuntu', version: '23.10').converge('ntp::default') }

it 'sets the var_owner to ntpsec' do
expect(ntp['var_owner']).to eq('ntpsec')
end

it 'sets the var_group to ntpsec' do
expect(ntp['var_group']).to eq('ntpsec')
end
end

describe 'on the CentOS 7 platform' do
cached(:chef_run) { ChefSpec::SoloRunner.new(platform: 'centos', version: '7').converge('ntp::default') }

Expand Down

0 comments on commit d738d0f

Please sign in to comment.