tests for GA without pin

This commit is contained in:
Conor Patrick 2019-03-26 19:00:42 -04:00
parent 893d4131b2
commit 6fa443b0bc

View File

@ -905,22 +905,25 @@ class FIDO2Tests(Tester):
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"):
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()
with Test("Setting pin code, expect SUCCESS"):
@ -973,12 +976,12 @@ class FIDO2Tests(Tester):
expectedError=CtapError.ERR.PIN_REQUIRED,
)
# res_mc = self.testGA(
# "Send GA request with no pin_auth, expect NO_CREDENTIALS",
# rp["id"],
# cdh,
# expectedError=CtapError.ERR.NO_CREDENTIALS,
# )
res_mc = self.testGA(
"Send GA request with no pin_auth, expect NO_CREDENTIALS",
rp["id"],
cdh,
expectedError=CtapError.ERR.NO_CREDENTIALS,
)
res = self.testCP(
"Test getRetries, expect SUCCESS",