Skip to content

Commit dbe4551

Browse files
committed
Display key type and attestation statement format in validExamples test names
1 parent 81137a7 commit dbe4551

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

webauthn-server-core/src/test/scala/com/yubico/webauthn/RegistrationTestData.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,13 @@ case class RegistrationTestData(
10481048
)
10491049
}
10501050

1051+
def attestationStatementFormat: String =
1052+
JacksonCodecs.cbor
1053+
.readTree(attestationObject.getBytes)
1054+
.asInstanceOf[ObjectNode]
1055+
.get("fmt")
1056+
.textValue
1057+
10511058
def setAttestationStatementFormat(value: String): RegistrationTestData =
10521059
editAttestationObject(
10531060
"fmt",

webauthn-server-core/src/test/scala/com/yubico/webauthn/RelyingPartyRegistrationSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4049,7 +4049,7 @@ class RelyingPartyRegistrationSpec
40494049
RegistrationTestData.defaultSettingsValidExamples.zipWithIndex
40504050
.foreach {
40514051
case (testData, i) =>
4052-
it(s"Succeeds for example index ${i}.") {
4052+
it(s"Succeeds for example index ${i} (${testData.alg}, ${testData.attestationStatementFormat}).") {
40534053
val rp = {
40544054
val builder = RelyingParty
40554055
.builder()

0 commit comments

Comments
 (0)