Skip to content

Commit

Permalink
Remove hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Aug 22, 2023
1 parent 00f0ee3 commit 493d0af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 47 deletions.
10 changes: 2 additions & 8 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
require 'spec_helper_acceptance'

describe 'munge class:' do
if (fact('os.family') == 'RedHat' && fact('os.release.major').to_i >= 7)
let(:user) { 'root' }
else
let(:user) { 'munge' }
end

case fact('os.family')
when 'RedHat'
dev_package = 'munge-devel'
Expand Down Expand Up @@ -42,8 +36,8 @@ class { 'munge': munge_key_source => 'puppet:///modules/site_munge/munge.key' }
describe file('/etc/munge/munge.key') do
it { is_expected.to be_file }
it { is_expected.to be_mode 400 }
it { is_expected.to be_owned_by user }
it { is_expected.to be_grouped_into user }
it { is_expected.to be_owned_by 'munge' }
it { is_expected.to be_grouped_into 'munge' }
end
end

Expand Down
39 changes: 0 additions & 39 deletions spec/spec_helper_acceptance_setup.rb

This file was deleted.

0 comments on commit 493d0af

Please sign in to comment.