Skip to content

Commit

Permalink
Tests: Fix tier1_2 tests for rhel10
Browse files Browse the repository at this point in the history
No of file descriptors should be same or close to same as before and after modifying krb5_child

Reviewed-by: Jakub Vávra <[email protected]>
  • Loading branch information
aborah-sudo authored and jakub-vavra-cz committed Jun 12, 2024
1 parent f37aa46 commit f7c53d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/multihost/alltests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,4 +643,4 @@ def test_0017_filesldap(multihost, backupsssdconf, setup_sssd_krb):
for i in range(10):
client_remove_file(multihost, f"/tmp/after_count{i}")
for n_n in n_log_afr:
assert n_log_bfr == n_n
assert abs(n_log_bfr - n_n) <= 2
5 changes: 5 additions & 0 deletions src/tests/multihost/alltests/test_sssctl_ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ def test_0004_bz1638295(self, multihost,
'user_attributes': '-name, -uidNumber'}
tools.sssd_conf("ifp", domain_params)
multihost.client[0].service_sssd('start')
cmd_id = multihost.client[0].run_command("id user5000", raiseonerr=False)
if cmd_id != 0:
multihost.client[0].run_command("useradd -u 5000 user5000")
multihost.client[0].run_command("passwd --stdin user5000", stdin_text='Secret123')

sssctl_cmd = 'sssctl user-checks user5000'
cmd = multihost.client[0].run_command(sssctl_cmd,
raiseonerr=False)
Expand Down

0 comments on commit f7c53d1

Please sign in to comment.