From 80d28babbc6e22ae88b85e528dc677acca4adbed Mon Sep 17 00:00:00 2001 From: Jakub Vavra Date: Mon, 13 Mar 2023 11:36:26 +0100 Subject: [PATCH] Tests: Make sure that session_multihost.ad is always available. We need it to be defined at least as an empty list so we do not get an AtributeError when we try to iterate over it. Reviewed-by: Alexey Tikhonov --- src/tests/multihost/sssd/testlib/common/fixtures.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/multihost/sssd/testlib/common/fixtures.py b/src/tests/multihost/sssd/testlib/common/fixtures.py index 6cfce1c6729..0e236e99582 100644 --- a/src/tests/multihost/sssd/testlib/common/fixtures.py +++ b/src/tests/multihost/sssd/testlib/common/fixtures.py @@ -49,6 +49,7 @@ def session_multihost(request): mhost.replica = mhost.domain.hosts_by_role('replica') mhost.client = mhost.domain.hosts_by_role('client') mhost.others = mhost.domain.hosts_by_role('other') + mhost.ad = [] if pytest.num_ad > 0: mhost.ad = []