OS X also has lo0 and can't manage user homedirs
This commit is contained in:
parent
3ec3a4b0fa
commit
4b7162896a
2 changed files with 7 additions and 7 deletions
|
@ -3,18 +3,18 @@ require 'spec_helper_acceptance'
|
||||||
|
|
||||||
describe 'getparam function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
describe 'getparam function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
||||||
describe 'success' do
|
describe 'success' do
|
||||||
it 'getparam a package' do
|
it 'getparam a notify' do
|
||||||
pp = <<-EOS
|
pp = <<-EOS
|
||||||
user { "rspec":
|
notify { 'rspec':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
managehome => true,
|
message => 'custom rspec message',
|
||||||
}
|
}
|
||||||
$o = getparam(User['rspec'], 'managehome')
|
$o = getparam(Notify['rspec'], 'message')
|
||||||
notice(inline_template('getparam is <%= @o.inspect %>'))
|
notice(inline_template('getparam is <%= @o.inspect %>'))
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
apply_manifest(pp, :catch_failures => true) do |r|
|
apply_manifest(pp, :catch_failures => true) do |r|
|
||||||
expect(r.stdout).to match(/getparam is true/)
|
expect(r.stdout).to match(/getparam is "custom rspec message"/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -27,7 +27,7 @@ describe 'has_interface_with function', :unless => UNSUPPORTED_PLATFORMS.include
|
||||||
end
|
end
|
||||||
it 'has_interface_with existing interface' do
|
it 'has_interface_with existing interface' do
|
||||||
pp = <<-EOS
|
pp = <<-EOS
|
||||||
if $osfamily == 'Solaris' {
|
if $osfamily == 'Solaris' or $osfamily == 'Darwin' {
|
||||||
$a = 'lo0'
|
$a = 'lo0'
|
||||||
} else {
|
} else {
|
||||||
$a = 'lo'
|
$a = 'lo'
|
||||||
|
|
Loading…
Reference in a new issue