mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-22 15:13:50 -06:00
ipatests: Replace 'usermod -r' command with 'gpasswd -d' in test_hsm.py
Test 'test_hsm_negative_bad_token_dir_permissions' was failing in RHEL because of the below error. "ipa: ERROR: stderr: usermod: invalid option -- 'r'" Hence replaced the usermod with gpasswd command which does the same and works on both RHEL and Fedora. Ref: https://pagure.io/freeipa/issue/9626 Signed-off-by: Sudhir Menon <sumenon@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
parent
21c6ccc982
commit
ed813fe6f0
@ -898,7 +898,7 @@ class TestHSMNegative(IntegrationTest):
|
|||||||
'--label', token_name]
|
'--label', token_name]
|
||||||
)
|
)
|
||||||
self.master.run_command(
|
self.master.run_command(
|
||||||
['usermod', 'pkiuser', '-r', '-G', 'ods']
|
['gpasswd', '-d', 'pkiuser', 'ods']
|
||||||
)
|
)
|
||||||
result = tasks.install_master(
|
result = tasks.install_master(
|
||||||
self.master, raiseonerr=False,
|
self.master, raiseonerr=False,
|
||||||
|
Loading…
Reference in New Issue
Block a user