]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
OS X also has lo0 and can't manage user homedirs
authorHunter Haugen <hunter@puppetlabs.com>
Mon, 23 Jun 2014 20:45:06 +0000 (13:45 -0700)
committerHunter Haugen <hunter@puppetlabs.com>
Mon, 23 Jun 2014 20:45:06 +0000 (13:45 -0700)
spec/acceptance/getparam_spec.rb
spec/acceptance/has_interface_with_spec.rb

index 91fc9a00f3474f2a9a35c065d7bdd66357d94a8b..e3e442fb8a74245197d5b12a2ef4c8d8d03c34cf 100755 (executable)
@@ -3,18 +3,18 @@ require 'spec_helper_acceptance'
 
 describe 'getparam function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
   describe 'success' do
-    it 'getparam a package' do
+    it 'getparam a notify' do
       pp = <<-EOS
-      user { "rspec":
-        ensure     => present,
-        managehome => true,
+      notify { 'rspec':
+        ensure  => present,
+        message => 'custom rspec message',
       }
-      $o = getparam(User['rspec'], 'managehome')
+      $o = getparam(Notify['rspec'], 'message')
       notice(inline_template('getparam is <%= @o.inspect %>'))
       EOS
 
       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
index 7b38c95eb883aaae5e3be5c44e633957a59e26ab..99b768113857d3167fdd9cb45f348c5c6520cbd2 100755 (executable)
@@ -27,7 +27,7 @@ describe 'has_interface_with function', :unless => UNSUPPORTED_PLATFORMS.include
     end
     it 'has_interface_with existing interface' do
       pp = <<-EOS
-      if $osfamily == 'Solaris' {
+      if $osfamily == 'Solaris' or $osfamily == 'Darwin' {
         $a = 'lo0'
       } else {
         $a = 'lo'