Skip to content

Commit

Permalink
fix centos and debian
Browse files Browse the repository at this point in the history
  • Loading branch information
bugoff committed Feb 11, 2024
1 parent 731b79a commit 12586c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
strategy:
matrix:
os:
- "amazonlinux-2"
- "centos-7"
- "centos-stream-8"
- "centos-stream-9"
Expand All @@ -34,6 +33,7 @@ jobs:
- "oraclelinux-8"
- "ubuntu-1804"
- "ubuntu-2004"
- "ubuntu-2204"
suite:
- "default"
fail-fast: false
Expand Down
6 changes: 5 additions & 1 deletion test/integration/default/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'ntp'
end

if (os.family == 'redhat' && os.release.to_i >= 8) || (inspec.os.name == 'fedora' && os.release.to_i >= 34)
if (os.family == 'redhat') || (inspec.os.name == 'fedora')
describe file '/etc/ntp.conf' do
it { should_not be_file }
end
Expand All @@ -19,6 +19,10 @@
it { should_not be_enabled }
it { should_not be_running }
end
elsif os.family == 'debian'
describe file '/usr/share/zoneinfo/leap-seconds.list' do
it { should be_file }
end
elsif os.windows?
describe file 'C:\NTP\etc\ntp.conf' do
it { should be_file }
Expand Down

0 comments on commit 12586c4

Please sign in to comment.