Skip to content

Commit

Permalink
Merge pull request #1501 from ekohl/fix-tests
Browse files Browse the repository at this point in the history
Fix acceptance tests on Arch and Ubuntu w/ Puppet 6
  • Loading branch information
ekohl committed Mar 15, 2022
2 parents 6e7596a + b029ecc commit 5fc8139
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
end
end

context 'nginx with package_source passenger' do
context 'nginx with package_source passenger', if: pkg_cmd do
it 'runs successfully' do
shell(pkg_remove_cmd)
pp = <<-EOS
Expand Down Expand Up @@ -73,7 +73,7 @@ class { 'nginx':
end
end

context 'reset to default parameters' do
context 'reset to default parameters', if: pkg_cmd do
it 'runs successfully' do
shell(pkg_remove_cmd)
pp = "class { 'nginx': }"
Expand Down
8 changes: 8 additions & 0 deletions spec/setup_acceptance_node.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if $facts['os']['name'] == 'Ubuntu' {
# Facter < 4 needs lsb-release for os.distro.codename
if versioncmp($facts['facterversion'], '4.0.0') <= 0 {
package { 'lsb-release':
ensure => installed,
}
}
}

0 comments on commit 5fc8139

Please sign in to comment.