Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add many unit tests for nearly all attestation types #162

Merged
merged 13 commits into from
May 15, 2020
Prev Previous commit
Next Next commit
Update an Android Key test to StartsWith instead of Equal
  • Loading branch information
aseigler committed May 13, 2020
commit 028ca0bcc9eea2116e426a2bcf9a14775375ec80
2 changes: 1 addition & 1 deletion Test/Attestation/AndroidKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void TestAndroidKeyInvalidPublicKey()
var X5c = CBORObject.NewArray().Add(CBORObject.FromObject(attestnCert));
_attestationObject["attStmt"].Set("x5c", X5c);
var ex = Assert.ThrowsAsync<Fido2VerificationException>(() => MakeAttestationResponse());
Assert.Equal("Failed to extract public key from android key: Cannot find the requested object", ex.Result.Message);
Assert.StartsWith("Failed to extract public key from android key: ", ex.Result.Message);
}

[Fact]
Expand Down