From 7bf99e8dc57c78444f0d7fbeeaeae8071dc22503 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Wed, 27 Jun 2018 21:03:00 +0200 Subject: [PATCH] Add test for ticket 7604: ipa-client-install --mkhomedir doesn't enable oddjobd Add a test checking that ipa-client-install --mkhomedir is properly enableing/starting oddjobd. Related to: https://pagure.io/freeipa/issue/7604 Reviewed-By: Christian Heimes --- ipatests/test_integration/test_authselect.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ipatests/test_integration/test_authselect.py b/ipatests/test_integration/test_authselect.py index 06e1cafe4..f4af90e93 100644 --- a/ipatests/test_integration/test_authselect.py +++ b/ipatests/test_integration/test_authselect.py @@ -144,6 +144,8 @@ class TestClientInstallation(IntegrationTest): # Configure a profile winbind with feature with-fingerprint apply_authselect_profile( self.client, preconfigured_profile, preconfigured_options) + # Make sure that oddjobd is disabled and stopped + self.client.run_command(["systemctl", "disable", "oddjobd", "--now"]) # Call the installer, must succeed and store the winbind profile # in the statestore, but install sssd profile with-mkhomedir @@ -155,6 +157,13 @@ class TestClientInstallation(IntegrationTest): check_authselect_profile( self.client, default_profile, ('with-mkhomedir', 'with-sudo')) + # Test for ticket 7604: + # ipa-client-install --mkhomedir doesn't enable oddjobd + # Check that oddjobd has been enabled and started + # because --mkhomedir was used + status = self.client.run_command(["systemctl", "status", "oddjobd"]) + assert "active (running)" in status.stdout_text + def test_uninstall_client_preconfigured_profile(self): """ Test client un-installation when a different profile was present