summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-08-22 14:50:40 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-08-22 14:50:40 -0700
commita3d44ca91cf66deaa870a1ab18572838aec9e743 (patch)
treebee08c9d62e05d5227d6433f7f90a6cad98252f6
parent74e03fecd1e8458e521b07d2a8e7156ccae6b2da (diff)
downloadchef-a3d44ca91cf66deaa870a1ab18572838aec9e743.tar.gz
try to fix el breaks
the default behavior of the remove action changed to have manage_home set toi true to match the :create action Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--spec/functional/resource/group_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/functional/resource/group_spec.rb b/spec/functional/resource/group_spec.rb
index 06a89a67c5..aa5a29f92c 100644
--- a/spec/functional/resource/group_spec.rb
+++ b/spec/functional/resource/group_spec.rb
@@ -105,7 +105,11 @@ describe Chef::Resource::Group, :requires_root_or_running_windows, :not_supporte
end
def remove_user(username)
- user(username).run_action(:remove) if ! windows_domain_user?(username)
+ if ! windows_domain_user?(username)
+ u = user(username)
+ u.manage_home false # jekins hosts throw mail spool file not owned by user if we use manage_home true
+ u.run_action(:remove)
+ end
# TODO: User shouldn't exist
end