tests for GA without pin
This commit is contained in:
parent
893d4131b2
commit
6fa443b0bc
@ -905,22 +905,25 @@ class FIDO2Tests(Tester):
|
|||||||
expectedError=CtapError.ERR.SUCCESS,
|
expectedError=CtapError.ERR.SUCCESS,
|
||||||
)
|
)
|
||||||
|
|
||||||
# self.testGA(
|
|
||||||
# "Send GA request with no pinAuth, expect SUCCESS",
|
|
||||||
# rp["id"],
|
|
||||||
# cdh,
|
|
||||||
# [
|
|
||||||
# {
|
|
||||||
# "type": "public-key",
|
|
||||||
# "id": res_mc.auth_data.credential_data.credential_id,
|
|
||||||
# }
|
|
||||||
# ],
|
|
||||||
# expectedError=CtapError.ERR.SUCCESS,
|
|
||||||
# )
|
|
||||||
|
|
||||||
with Test("Check UV flag is set"):
|
with Test("Check UV flag is set"):
|
||||||
assert res_ga.auth_data.flags & (1 << 2)
|
assert res_ga.auth_data.flags & (1 << 2)
|
||||||
|
|
||||||
|
res_ga = self.testGA(
|
||||||
|
"Send GA request with no pinAuth, expect SUCCESS",
|
||||||
|
rp["id"],
|
||||||
|
cdh,
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "public-key",
|
||||||
|
"id": res_mc.auth_data.credential_data.credential_id,
|
||||||
|
}
|
||||||
|
],
|
||||||
|
expectedError=CtapError.ERR.SUCCESS,
|
||||||
|
)
|
||||||
|
|
||||||
|
with Test("Check UV flag is NOT set"):
|
||||||
|
assert not (res_ga.auth_data.flags & (1 << 2))
|
||||||
|
|
||||||
self.testReset()
|
self.testReset()
|
||||||
|
|
||||||
with Test("Setting pin code, expect SUCCESS"):
|
with Test("Setting pin code, expect SUCCESS"):
|
||||||
@ -973,12 +976,12 @@ class FIDO2Tests(Tester):
|
|||||||
expectedError=CtapError.ERR.PIN_REQUIRED,
|
expectedError=CtapError.ERR.PIN_REQUIRED,
|
||||||
)
|
)
|
||||||
|
|
||||||
# res_mc = self.testGA(
|
res_mc = self.testGA(
|
||||||
# "Send GA request with no pin_auth, expect NO_CREDENTIALS",
|
"Send GA request with no pin_auth, expect NO_CREDENTIALS",
|
||||||
# rp["id"],
|
rp["id"],
|
||||||
# cdh,
|
cdh,
|
||||||
# expectedError=CtapError.ERR.NO_CREDENTIALS,
|
expectedError=CtapError.ERR.NO_CREDENTIALS,
|
||||||
# )
|
)
|
||||||
|
|
||||||
res = self.testCP(
|
res = self.testCP(
|
||||||
"Test getRetries, expect SUCCESS",
|
"Test getRetries, expect SUCCESS",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user