Skip to content

Commit

Permalink
Merge pull request #6238 from johnduarte/maint/4.10.x/stop-sssd
Browse files Browse the repository at this point in the history
(maint) Disable sssd service on SUTs
  • Loading branch information
Branan Riley committed Sep 29, 2017
2 parents fac92d9 + bc364b4 commit b8a9089
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions acceptance/setup/common/pre-suite/030_StopSssd.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
test_name "Stop sssd" do
# The sssd service causes local users/groups to be cached,
# which can cause unexpected results when tests are trying
# to restore state. We ensure that it is not running to
# prevent such caching from occurring.
hosts.each do |host|
on(host, puppet('resource', 'service', 'sssd', 'ensure=stopped'), :accept_all_exit_codes => true)
end
end
2 changes: 1 addition & 1 deletion acceptance/tests/resource/file/symbolic_modes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def assert_modifies(symbolic_mode, start_mode, file_mode, dir_mode)
on(agent, puppet("resource group symgroup ensure=present"))

teardown do
on(agent, puppet("resource user symuser ensure=absent")) unless agent['platform'] =~ /fedora-2[6-9]/
on(agent, puppet("resource user symuser ensure=absent"))
on(agent, puppet("resource group symgroup ensure=absent"))
end

Expand Down

0 comments on commit b8a9089

Please sign in to comment.