Skip to content

Commit

Permalink
Updating ad_multihost test
Browse files Browse the repository at this point in the history
* fixing raiseonerr=False to disjoin function
* cleaned up code since the line limit has increased
* added AD from forest1 to resolv.conf and /etc/hosts
* updating test case documentation to clarify the test

Signed-off-by: Dan Lavu <[email protected]>

Reviewed-by: Jakub Vávra <[email protected]>
Reviewed-by: Madhuri Upadhye <[email protected]>
(cherry picked from commit cb72984)
  • Loading branch information
Dan Lavu authored and pbrezina committed Oct 18, 2023
1 parent aa3616b commit c866b53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/multihost/admultidomain/test_multiforest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@pytest.mark.admultiforest
class TestADMultiForest(object):

def test_0001_multiforest(multihost, newhostname, adjoin):
def test_0001_multiforest(self, multihost, newhostname, adjoin):
"""
:title: IDM-SSSD-TC: ad_provider: admultiforest : Authentication against two forests
:id: 900f2467-1aca-430c-bbaa-b22d30a829ad
Expand Down Expand Up @@ -102,7 +102,7 @@ def test_0001_multiforest(multihost, newhostname, adjoin):
id_domain1_user1 = multihost.client[0].run_command(f'id user1@{ad1_domain}', raiseonerr=False)
id_domain1_user2 = multihost.client[0].run_command(f'id user2@{ad1_domain}', raiseonerr=False)

multihost.client[0].put_file_contents('/etc/hosts', hosts)
multihost.client[0].put_file_contents('/etc/hosts.bak', hosts)
multihost.client[0].put_file_contents('/etc/krb5.conf', krb5)
multihost.client[0].run_command(cleanup_krb5)
client.restore_sssd_conf()
Expand Down

0 comments on commit c866b53

Please sign in to comment.