Skip to content

Commit

Permalink
Merge pull request voxpupuli#226 from vinzent/puppet5_compatability
Browse files Browse the repository at this point in the history
Declare Puppet 5 compatability
  • Loading branch information
bastelfreak authored Jul 2, 2017
2 parents 440625e + 138e312 commit 2975911
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ matrix:
- rvm: 2.4.1
bundler_args: --without system_tests development
env: PUPPET_VERSION="~> 4.0" CHECK=test
- rvm: 2.4.1
bundler_args: --without system_tests development
env: PUPPET_VERSION="~> 5.0" CHECK=test
- rvm: 2.4.1
bundler_args: --without system_tests development
env: PUPPET_VERSION="~> 4.0" CHECK=rubocop
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"requirements": [
{
"name": "puppet",
"version_requirement": ">= 4.7.0 < 5.0.0"
"version_requirement": ">= 4.7.0 < 6.0.0"
}
]
}
5 changes: 4 additions & 1 deletion spec/defines/selinux_exec_restorecon_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
let(:title) { '/opt/$HOME/some weird dir/' }

context 'with defaults' do
it { is_expected.to contain_exec('selinux::exec_restorecon /opt/$HOME/some weird dir/').with(command: "restorecon -R '/opt/$HOME/some weird dir/'", refreshonly: true) }
# started to fail with rspec-puppet 2.6.0, worked fine with rspec-puppet 2.5.0
# https://github.com/voxpupuli/puppet-selinux/issues/225
# https://github.com/rodjek/rspec-puppet/issues/536
xit { is_expected.to contain_exec('selinux::exec_restorecon /opt/$HOME/some weird dir/').with(command: "restorecon -R '/opt/$HOME/some weird dir/'", refreshonly: true) }
end
end
context 'with path /weird/\'pa th\'/"quotes"' do
Expand Down

0 comments on commit 2975911

Please sign in to comment.