From 48f491b7d9c50bae6f082f3d3beeb8466fe347b4 Mon Sep 17 00:00:00 2001 From: Madhuri Upadhye Date: Fri, 20 Sep 2024 16:42:29 +0530 Subject: [PATCH] Test: Passkey test cases with diffferent auth_methods Added following test cases 1. Check authentication of user with IPA server when no pin set for the Passkey. 2. Check authentication of user with updated prompting options 3. Check password authentication of user with IPA server when sssd fall back to password authentication Signed-off-by: Madhuri Upadhye --- .../passkey-mapping.ipa | 1 + .../umockdev.script.ipa | 30 ++++ .../passkey-mapping.ipa | 1 + .../umockdev.script.ipa | 29 ++++ .../passkey-mapping.ipa | 1 + .../umockdev.script.ipa | 18 +++ src/tests/system/requirements.txt | 3 +- src/tests/system/tests/test_passkey.py | 146 ++++++++++++++++++ 8 files changed, 228 insertions(+), 1 deletion(-) create mode 100644 src/tests/system/data/test_passkey/test_passkey__prompt_options/passkey-mapping.ipa create mode 100644 src/tests/system/data/test_passkey/test_passkey__prompt_options/umockdev.script.ipa create mode 100644 src/tests/system/data/test_passkey/test_passkey__su_fallback_to_password/passkey-mapping.ipa create mode 100644 src/tests/system/data/test_passkey/test_passkey__su_fallback_to_password/umockdev.script.ipa create mode 100644 src/tests/system/data/test_passkey/test_passkey__su_no_pin_set/passkey-mapping.ipa create mode 100644 src/tests/system/data/test_passkey/test_passkey__su_no_pin_set/umockdev.script.ipa diff --git a/src/tests/system/data/test_passkey/test_passkey__prompt_options/passkey-mapping.ipa b/src/tests/system/data/test_passkey/test_passkey__prompt_options/passkey-mapping.ipa new file mode 100644 index 00000000000..a89bee8a504 --- /dev/null +++ b/src/tests/system/data/test_passkey/test_passkey__prompt_options/passkey-mapping.ipa @@ -0,0 +1 @@ +passkey:bjxRHsB/AXOOfZSeofVLuJZymEVMlNIica/jDaBQ2Ku+tFgaRnmk1q6c0t8OeX4ykiWs0J39SjySi142Kuw8tA==,MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE2dKjseUv7dBMVB1+kGrkuFkMM9pblYf6wyo5V4Ue2HN49oRD9/mDx8WDZP4nl8yRuKVEJMoMRwCy2GPEcW+YjQ== diff --git a/src/tests/system/data/test_passkey/test_passkey__prompt_options/umockdev.script.ipa b/src/tests/system/data/test_passkey/test_passkey__prompt_options/umockdev.script.ipa new file mode 100644 index 00000000000..0e88c0f935e --- /dev/null +++ b/src/tests/system/data/test_passkey/test_passkey__prompt_options/umockdev.script.ipa @@ -0,0 +1,30 @@ +d 0 /dev/hidraw1 + +w 2 ^@^@^H^A^A^A^A^A^A^A^A^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ +r 3 ^@^Q^A^A^A^A^A^A^A^Aˏ-^B^E^D^C^E^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ +w 1 ^@ˏ-^@^A^D^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ +r 2 ˏ-^@^@^AfU2F_V2hFIDO_2_0lFIDO_2_1_PRE^BkcredProtectkhmac-secrˏ-^@et^CP/W^SG^VZ *^DbrkbupdplaticlientPinucredentialMˏ-^AgmtPreview^E^Y^D^F^B^A^G^H^H^X^Icnfccusb^Jcalg&dtypejpublic-keyˏ-^Bcalg'dtypejpublic-key^M^D^N^Z^@^E^D^C^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ +w 2 ^@ˏ-^@^B^Ahipa.test^BX ^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^CbidX@n<^@ˏ-^@Q^^^As}KrEL"q^MPثX^ZFy֮^Ny~2%НJ<^`6*^@ˏ-^AF^A'0΂^@^@^@^@ +w 1 ^@ˏ-^@^B^Ahipa.test^BX ^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^CbidX@n<^@ˏ-^@Q^^^As}KrEL"q^MPثX^ZFy֮^Ny~2%НJ<^`6*^@ˏ-^A