Skip to content

Commit 3ef17cc

Browse files
author
Dan Lavu
committed
adding sanity test for features
1 parent 4c7a7a2 commit 3ef17cc

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/tests/system/tests/test_sssd.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,3 +325,33 @@ def test_sssd__nsswitch_conf_group_merging(client: Client, provider: GenericProv
325325
assert (
326326
"user" not in client.tools.getent.group("group", service="files").members
327327
), "'user' should not be a member of the group!"
328+
329+
330+
@pytest.mark.importance("high")
331+
@pytest.mark.topology(KnownTopology.IPA)
332+
@pytest.mark.parametrize(
333+
"feature",
334+
[
335+
"with-switchable-auth",
336+
"with-altfiles",
337+
"with-ecryptfs",
338+
"with-gssapi",
339+
"with-libvirt",
340+
"with-pam-gnome-keyring",
341+
"with-subid",
342+
"with-systemd-homed",
343+
"without-nullok",
344+
],
345+
)
346+
def test_sssd__feature_sanity_check(client: Client, feature: str):
347+
"""
348+
:title: Simple parametrized check for feature availability
349+
:setup:
350+
:steps:
351+
1: List sssd authselect features
352+
:expectedresults:
353+
1. Feature is listed
354+
"""
355+
result = client.host.conn.run("authselect list-features sssd").stdout_lines
356+
if result is not None and isinstance(result, list):
357+
assert feature in result, f"Feature {feature} is not listed!"

0 commit comments

Comments
 (0)