You've already forked fido2-tests
mirror of
https://github.com/trussed-dev/fido2-tests.git
synced 2026-06-20 04:16:30 -07:00
skip tests that check fullDisplayName
This commit is contained in:
@@ -46,11 +46,12 @@ To run tests against a "simulation" build of the Solo authenticator, supply the
|
||||
pytest --sim tests/standard
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
All tests should pass without having to use `-s` or provide any interaction.
|
||||
|
||||
# Notes
|
||||
|
||||
Initial SoloKeys models truncates the displayName, which causes a couple of the tests to fail.
|
||||
To succeed all tests, pass `--vendor solokeys` as an option.
|
||||
|
||||
# Contributing
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ from tests.utils import *
|
||||
def pytest_addoption(parser):
|
||||
parser.addoption("--sim", action="store_true")
|
||||
parser.addoption("--nfc", action="store_true")
|
||||
parser.addoption("--vendor", default="none")
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
import pytest
|
||||
from fido2.ctap import CtapError
|
||||
|
||||
@@ -81,6 +82,7 @@ class TestResidentKey(object):
|
||||
for x, y in zip(regs, auths):
|
||||
verify(x, y, req.cdh)
|
||||
|
||||
@pytest.mark.skipif('solokeys' in sys.argv, reason="Initial SoloKeys model truncates displayName")
|
||||
def test_rk_maximum_size(self, device, MC_RK_Res):
|
||||
"""
|
||||
Check the lengths of the fields according to the FIDO2 spec
|
||||
@@ -106,6 +108,7 @@ class TestResidentKey(object):
|
||||
for y in ("name", "icon", "displayName", "id"):
|
||||
assert user_max_GA.user[y] == user_max[y]
|
||||
|
||||
@pytest.mark.skipif('solokeys' in sys.argv, reason="Initial SoloKeys model truncates displayName")
|
||||
def test_rk_maximum_list_capacity_per_rp(self, device, MC_RK_Res):
|
||||
"""
|
||||
Test maximum returned capacity of the RK for the given RP
|
||||
|
||||
Reference in New Issue
Block a user