Skip to content
Test suite for FIDO2, U2F, and other security key functions
Python Makefile
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data resident keys Aug 6, 2019
tests test user presence behavior Aug 15, 2019
.envrc Add missing pyscard and cleanup Aug 8, 2019
.gitignore First commit Aug 1, 2019
.pre-commit-config.yaml Add isort to pre-commit Aug 13, 2019
LICENSE
LICENSE-APACHE Add full license files Aug 13, 2019
LICENSE-MIT Add full license files Aug 13, 2019
Makefile Add isort to make check/fix Aug 13, 2019
README.md Update README.md Aug 15, 2019
dev-requirements.txt Include isort make target Aug 13, 2019
requirements.txt Add missing pyscard and cleanup Aug 8, 2019

README.md

fido2-tests

Test suite for FIDO2, U2F, and other security key functions

Setup

Need python 3.6+.

make venv and source venv/bin/activate

Or simply pip3 install --user -r requirements.txt

Running the tests

Run all FIDO2, U2F, and HID tests:

pytest tests/standard -s

Run vendor/model specific tests:

pytest tests/vendor -s

Run subset of tests with -k flag, example:

pytest -k "getinfo or hmac_secret" -s

Note that in most cases when testing a hardware authenticator, -s must be supplied to disable stdin/stdout capturing. This is so the prompts to power cycle the authenticator can be seen and continued.

Running against simulation

To run tests against a "simulation" build of the Solo authenticator, supply the --sim option.

pytest --sim tests/standard

All tests should pass with having to use -s or provide any interaction.

Contributing

We use black and isort to prevent code formatting discussions.

The make venv setup method installs git pre-commit hooks that check conformance automatically.

You can also make check and make fix manually, or use an editor plugins.

License

Apache-2.0 OR MIT

You can’t perform that action at this time.