Yubico / yubikit-android

Yubico Mobile Android SDK - YubiKit
Apache License 2.0
114 stars 42 forks source link

FIDO integration tests #146

Closed AdamVe closed 4 months ago

AdamVe commented 4 months ago

Updates existing FIDO2 integration tests for use with FIPS approved keys.

The use of FidoTestState simplified the way how tests are written - for example, there is no need to pass the PinUvAuthProtocol to the test through the Object... args parameter and neither to call ensurePinSet from within the tests - the test state sets this in the constructor. Conditions for running the tests (for example running Enterprise Attestation tests only on devices supporting enterprise attestation and similar) are now part of the tests itself, which makes this solution scalable for more platforms.

Although there are some tests categorized as ManualOnlyTests the majority of the tests will run as part of the DeviceTests suite (in both Pin U/V Auth protocol variant where applicable) over USB and NFC connections.

Some of the tests need a specific device (MPE, Bio, USB connected etc) - these tests will quietly skip if ran on an incompatible device.