Skip to content

Commit a4437de

Browse files
tphoneyflorindragos
tphoney
authored andcommitted
add package lsb_release for puppet fact, and fix grant test
1 parent b332f90 commit a4437de

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

spec/acceptance/types/mysql_grant_spec.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
class { 'mysql::server':
77
root_password => 'password',
88
}
9-
package {'which':
10-
ensure => present,
11-
}
129
MANIFEST
1310

1411
apply_manifest(pp, catch_failures: true)

spec/spec_helper_acceptance_local.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,14 @@ def mysql_version
1414
mysql_version = shell_output.stdout.match(%r{\d+\.\d+\.\d+})[0]
1515
mysql_version
1616
end
17+
18+
RSpec.configure do |c|
19+
c.before :suite do
20+
if os[:family] == 'debian' || os[:family] == 'ubuntu'
21+
# needed for the puppet fact
22+
apply_manifest("package { 'lsb-release': ensure => installed, }", expect_failures: false)
23+
end
24+
# needed for the grant tests, not installed on el7 docker images
25+
apply_manifest("package { 'which': ensure => installed, }", expect_failures: false)
26+
end
27+
end

0 commit comments

Comments
 (0)