Skip to content

Commit

Permalink
Tests: Add passkey test cases for following scenario.
Browse files Browse the repository at this point in the history
  Test cases are as follows:
  4. Check auth deny for incorrect pin for LDAP, IPA, Ad and Samba.
  5. Check auth deny for incorrect passkey mapping for LDAP, IPA, AD and Samba.
  6. Check auth of user when server is not resolvable for IPA, LDAP, AD and Samba.

  First PR is under review, SSSD#6634

Signed-off-by: Madhuri Upadhye <[email protected]>
  • Loading branch information
madhuriupadhye committed Nov 23, 2023
1 parent d307d9b commit 1f6aa3b
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 20 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
27 changes: 7 additions & 20 deletions src/tests/system/tests/test_passkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from sssd_test_framework.roles.client import Client
from sssd_test_framework.roles.generic import GenericProvider
from sssd_test_framework.roles.ipa import IPA
from sssd_test_framework.topology import KnownTopology
from sssd_test_framework.topology import KnownTopology, KnownTopologyGroup


@pytest.mark.importance("high")
Expand Down Expand Up @@ -55,7 +55,7 @@ def test_passkey__register__ipa(ipa: IPA, moduledatadir: str, testdatadir: str):
"""
:title: Register a passkey with the IPA command
:setup:
1. Setup IDM client with FIDO and umockdev setup.
1. Setup IDM client with FIDO and umockdev setup
:steps:
1. Use ipa command to register a FIDO2 key.
2. Check the output that contains the user key mapping data.
Expand All @@ -80,10 +80,7 @@ def test_passkey__register__ipa(ipa: IPA, moduledatadir: str, testdatadir: str):


@pytest.mark.importance("critical")
@pytest.mark.topology(KnownTopology.LDAP)
@pytest.mark.topology(KnownTopology.IPA)
@pytest.mark.topology(KnownTopology.AD)
@pytest.mark.topology(KnownTopology.Samba)
@pytest.mark.topology(KnownTopologyGroup.AnyProvider)
@pytest.mark.builtwith(client="passkey", provider="passkey")
def test_passkey__su(client: Client, provider: GenericProvider, moduledatadir: str, testdatadir: str):
"""
Expand Down Expand Up @@ -117,10 +114,7 @@ def test_passkey__su(client: Client, provider: GenericProvider, moduledatadir: s


@pytest.mark.importance("high")
@pytest.mark.topology(KnownTopology.LDAP)
@pytest.mark.topology(KnownTopology.IPA)
@pytest.mark.topology(KnownTopology.AD)
@pytest.mark.topology(KnownTopology.Samba)
@pytest.mark.topology(KnownTopologyGroup.AnyProvider)
@pytest.mark.builtwith(client="passkey", provider="passkey")
def test_passkey__su_fail_pin(client: Client, provider: GenericProvider, moduledatadir: str, testdatadir: str):
"""
Expand Down Expand Up @@ -152,12 +146,8 @@ def test_passkey__su_fail_pin(client: Client, provider: GenericProvider, moduled
script=f"{testdatadir}/umockdev.script.{suffix}",
)


@pytest.mark.importance("high")
@pytest.mark.topology(KnownTopology.LDAP)
@pytest.mark.topology(KnownTopology.IPA)
@pytest.mark.topology(KnownTopology.AD)
@pytest.mark.topology(KnownTopology.Samba)
@pytest.mark.importance("critical")
@pytest.mark.topology(KnownTopologyGroup.AnyProvider)
@pytest.mark.builtwith(client="passkey", provider="passkey")
def test_passkey__su_fail_mapping(client: Client, provider: GenericProvider, moduledatadir: str, testdatadir: str):
"""
Expand Down Expand Up @@ -191,10 +181,7 @@ def test_passkey__su_fail_mapping(client: Client, provider: GenericProvider, mod


@pytest.mark.importance("high")
@pytest.mark.topology(KnownTopology.LDAP)
@pytest.mark.topology(KnownTopology.IPA)
@pytest.mark.topology(KnownTopology.AD)
@pytest.mark.topology(KnownTopology.Samba)
@pytest.mark.topology(KnownTopologyGroup.AnyProvider)
@pytest.mark.builtwith(client="passkey", provider="passkey")
def test_passkey__su_srv_not_resolvable(
client: Client, provider: GenericProvider, moduledatadir: str, testdatadir: str
Expand Down

0 comments on commit 1f6aa3b

Please sign in to comment.