Skip to content

Commit 5dd6e0f

Browse files
Add IPV6 feature checking
Signed-off-by: Madhuri Upadhye <[email protected]>
1 parent ae7bc47 commit 5dd6e0f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sssd_test_framework/hosts/client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ def features(self) -> dict[str, bool]:
5757
# enumerate (bool) Feature is only supported for domains with id_provider = ldap or id_provider = proxy.
5858
MANWIDTH=10000 man sssd.conf | grep -q "id_provider = ldap or id_provider = proxy" && \
5959
echo "limited_enumeration" || :
60+
# Check if BEAKER_RECIPE_ID environment variable is set
61+
if [ -n "${BEAKER_RECIPE_ID}" ]; then
62+
if ip -6 addr show scope global | grep -q "inet6 "; then
63+
echo "ipv6"
64+
fi
65+
fi
6066
""",
6167
log_level=ProcessLogLevel.Error,
6268
)
@@ -69,6 +75,7 @@ def features(self) -> dict[str, bool]:
6975
"ldap_use_ppolicy": False,
7076
"knownhosts": False,
7177
"limited_enumeration": False,
78+
"ipv6": False,
7279
}
7380

7481
self._features.update({k: True for k in result.stdout_lines})

0 commit comments

Comments
 (0)