Skip to content

Commit

Permalink
Drop outdated OSes from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jay7x committed Nov 3, 2024
1 parent 90a1965 commit 4d083ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion spec/acceptance/nspwan_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'spec_helper_acceptance'

describe 'systemd with manage_nspawn true' do
machinectl = (fact('os.name') == 'Debian') && %w[10 11].include?(fact('os.release.major')) ? '/bin/machinectl' : '/usr/bin/machinectl'
machinectl = (fact('os.name') == 'Debian') && (fact('os.release.major') == '11') ? '/bin/machinectl' : '/usr/bin/machinectl'

context 'configure nspawn' do
let(:manifest) do
Expand Down
3 changes: 0 additions & 3 deletions spec/defines/daemon_reload_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@
case [facts[:os]['name'], facts[:os]['family'], facts[:os]['release']['major']]
when %w[Debian Debian 11],
['Ubuntu', 'Debian', '20.04'],
%w[VirtuozzoLinux RedHat 7],
%w[AlmaLinux RedHat 8],
%w[CentOS RedHat 7],
%w[CentOS RedHat 8],
%w[RedHat RedHat 7],
%w[RedHat RedHat 8],
%w[Rocky RedHat 8],
%w[OracleLinux RedHat 8]
Expand Down

0 comments on commit 4d083ab

Please sign in to comment.