Skip to content

Commit

Permalink
cleanup acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Oct 28, 2022
1 parent fe8a94e commit 25e4403
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/acceptance/class_spec.rb
Expand Up @@ -27,6 +27,8 @@ class { 'file_capability':
tls_disable => 1,
}
}],
bin_dir => '/usr/local/bin',
install_method => 'archive',
require => Class['file_capability'],
}
PUPPET
Expand All @@ -44,7 +46,7 @@ class { 'file_capability':

describe command('getcap /usr/local/bin/vault') do
its(:exit_status) { is_expected.to eq 0 }
its(:stdout) { is_expected.to include '/usr/local/bin/vault = cap_ipc_lock+ep' }
its(:stdout) { is_expected.to include %r{/usr/local/bin/vault.*cap_ipc_lock.*ep} }
end

describe file('/usr/local/bin/vault') do
Expand Down

0 comments on commit 25e4403

Please sign in to comment.