Skip to content

Commit 7d4fa05

Browse files
committed
Merge pull request #276 from hunner/fm_1587
(FM-1587) Fix test issues on solaris 10
2 parents e7b2720 + 197e2d7 commit 7d4fa05

File tree

4 files changed

+11
-21
lines changed

4 files changed

+11
-21
lines changed

spec/acceptance/ensure_packages_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
it 'ensure_packages a package' do
77
apply_manifest('package { "zsh": ensure => absent, }')
88
pp = <<-EOS
9-
$a = "zsh"
10-
ensure_packages($a)
9+
$a = "rake"
10+
ensure_packages($a,{'provider' => 'gem'})
1111
EOS
1212

1313
apply_manifest(pp, :expect_changes => true) do |r|

spec/acceptance/ensure_resource_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
it 'ensure_resource a package' do
77
apply_manifest('package { "zsh": ensure => absent, }')
88
pp = <<-EOS
9-
$a = "zsh"
10-
ensure_resource('package', $a)
9+
$a = "rake"
10+
ensure_resource('package', $a, {'provider' => 'gem'})
1111
EOS
1212

1313
apply_manifest(pp, :expect_changes => true) do |r|

spec/acceptance/get_module_path_spec.rb

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,6 @@
33

44
describe 'get_module_path function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
55
describe 'success' do
6-
it 'get_module_paths stdlib' do
7-
pp = <<-EOS
8-
$a = $::is_pe ? {
9-
'true' => '/opt/puppet/share/puppet/modules/stdlib',
10-
'false' => '/etc/puppet/modules/stdlib',
11-
}
12-
$o = get_module_path('stdlib')
13-
if $o == $a {
14-
notify { 'output correct': }
15-
}
16-
EOS
17-
18-
apply_manifest(pp, :catch_failures => true) do |r|
19-
expect(r.stdout).to match(/Notice: output correct/)
20-
end
21-
end
226
it 'get_module_paths dne' do
237
pp = <<-EOS
248
$a = $::is_pe ? {
@@ -28,6 +12,8 @@
2812
$o = get_module_path('dne')
2913
if $o == $a {
3014
notify { 'output correct': }
15+
} else {
16+
notify { "failed; module path is '$o'": }
3117
}
3218
EOS
3319

spec/acceptance/has_interface_with_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
end
2828
it 'has_interface_with existing interface' do
2929
pp = <<-EOS
30-
$a = 'lo'
30+
if $osfamily == 'Solaris' {
31+
$a = 'lo0'
32+
} else {
33+
$a = 'lo'
34+
}
3135
$o = has_interface_with($a)
3236
notice(inline_template('has_interface_with is <%= @o.inspect %>'))
3337
EOS

0 commit comments

Comments
 (0)