From 79533b0e244eab192e7ae7e3d731b04f80c3932b Mon Sep 17 00:00:00 2001 From: Neal Date: Thu, 25 Jan 2024 13:04:59 -0600 Subject: [PATCH] new test --- .../validate_definition.json | 28 ------------ .../validate_submission.json | 44 +++++++++++++++++++ 2 files changed, 44 insertions(+), 28 deletions(-) diff --git a/test-vectors/presentation_exchange/validate_definition.json b/test-vectors/presentation_exchange/validate_definition.json index be2a7dd..41eb61b 100644 --- a/test-vectors/presentation_exchange/validate_definition.json +++ b/test-vectors/presentation_exchange/validate_definition.json @@ -402,34 +402,6 @@ }, "errors":true }, - { - "description":"field name is empty", - "input":{ - "presentationDefinition":{ - "id":"test-pd-id", - "name":"simple PD", - "purpose":"pd for testing", - "input_descriptors":[ - { - "id":"whatever", - "purpose":"id for testing", - "constraints":{ - "fields":[ - { - "id":"id", - "name": "", - "path":[ - "$.vc.dob" - ] - } - ] - } - } - ] - } - }, - "errors":true - }, { "description":"field name is empty", "input":{ diff --git a/test-vectors/presentation_exchange/validate_submission.json b/test-vectors/presentation_exchange/validate_submission.json index 9ba19ec..f0be9d6 100644 --- a/test-vectors/presentation_exchange/validate_submission.json +++ b/test-vectors/presentation_exchange/validate_submission.json @@ -45,6 +45,28 @@ }, "errors":false }, + { + "description":"valid submission with multiple descriptor map objects", + "input":{ + "presentationSubmission":{ + "id":"test-submission-id", + "definition_id":"test-definition-id", + "descriptor_map":[ + { + "id":"descriptor-map-id", + "format":"jwt_vc", + "path": "$.verifiableCredential[0]" + }, + { + "id":"descriptor-map-id-2", + "format":"jwt_vc", + "path": "$.verifiableCredential[0]" + } + ] + } + }, + "errors":false + }, { "description":"empty pres submission id", "input":{ @@ -194,6 +216,28 @@ } }, "errors":true + }, + { + "description":"multiple descriptor map objects have same duplicate id", + "input":{ + "presentationSubmission":{ + "id":"test-submission-id", + "definition_id":"test-definition-id", + "descriptor_map":[ + { + "id":"descriptor-map-id", + "format":"jwt_vc", + "path": "$.verifiableCredential[0]" + }, + { + "id":"descriptor-map-id", + "format":"jwt_vc", + "path": "$.verifiableCredential[0]" + } + ] + } + }, + "errors":true } ] } \ No newline at end of file