File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 33
44describe 'getparam function' , :unless => UNSUPPORTED_PLATFORMS . include? ( fact ( 'operatingsystem' ) ) do
55 describe 'success' do
6- it 'getparam a package ' do
6+ it 'getparam a notify ' do
77 pp = <<-EOS
8- user { " rspec" :
9- ensure => present,
10- managehome => true ,
8+ notify { ' rspec' :
9+ ensure => present,
10+ message => 'custom rspec message' ,
1111 }
12- $o = getparam(User ['rspec'], 'managehome ')
12+ $o = getparam(Notify ['rspec'], 'message ')
1313 notice(inline_template('getparam is <%= @o.inspect %>'))
1414 EOS
1515
1616 apply_manifest ( pp , :catch_failures => true ) do |r |
17- expect ( r . stdout ) . to match ( /getparam is true / )
17+ expect ( r . stdout ) . to match ( /getparam is "custom rspec message" / )
1818 end
1919 end
2020 end
Original file line number Diff line number Diff line change 2727 end
2828 it 'has_interface_with existing interface' do
2929 pp = <<-EOS
30- if $osfamily == 'Solaris' {
30+ if $osfamily == 'Solaris' or $osfamily == 'Darwin' {
3131 $a = 'lo0'
3232 } else {
3333 $a = 'lo'
You can’t perform that action at this time.
0 commit comments