Add managehome to testuser
authorJohn Duarte <john.duarte@puppetlabs.com>
Tue, 6 May 2014 15:54:48 +0000 (08:54 -0700)
committerJohn Duarte <john.duarte@puppetlabs.com>
Sun, 18 May 2014 18:38:18 +0000 (11:38 -0700)
In order to make sure that the home directory for the test user is
created and destroyed, add managehome to the setup and teardown
manifests for the testuser.

spec/acceptance/git_clone_protocols_spec.rb

index 77a1adb..a3f897a 100644 (file)
@@ -7,7 +7,7 @@ hosts.each do |host|
 
     before(:all) do
       # {{{ setup
-      on(host,apply_manifest("user{'testuser': ensure => present, }"))
+      on(host,apply_manifest("user{'testuser': ensure => present, managehome => true }"))
       on(host,apply_manifest("user{'vagrant': ensure => present, }"))
       # install git
       install_package(host, 'git')
@@ -34,7 +34,7 @@ hosts.each do |host|
 
     after(:all) do
       # {{{ teardown
-      on(host,apply_manifest("user{'testuser': ensure => absent,}"))
+      on(host,apply_manifest("user{'testuser': ensure => absent, managehome => true }"))
       # }}}
     end