Skip to content

Commit 65963d1

Browse files
features: Add umockdev and virtualsmartcard to features
We want tests to be skipped automatically if the dependencies are not met instead of hard-skipping by setting -k "not passkey and not smartcard" as pytest parameters in all unrelated suites across all of the test-plans.
1 parent 3f65596 commit 65963d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sssd_test_framework/hosts/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def features(self) -> dict[str, bool]:
5959
# enumerate (bool) Feature is only supported for domains with id_provider = ldap or id_provider = proxy.
6060
MANWIDTH=10000 man sssd.conf | grep -q "id_provider = ldap or id_provider = proxy" && \
6161
echo "limited_enumeration" || :
62+
[ -f "/usr/bin/vicc" ] && echo "virtualsmartcard" || :
63+
[ -f "/usr/bin/umockdev-run" ] && echo "umockdev" || :
6264
""",
6365
log_level=ProcessLogLevel.Error,
6466
)
@@ -73,6 +75,8 @@ def features(self) -> dict[str, bool]:
7375
"limited_enumeration": False,
7476
"idp-provider": False,
7577
"gdm": False,
78+
"virtualsmartcard": False,
79+
"umockdev": False,
7680
}
7781

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

0 commit comments

Comments
 (0)