Skip to content

Commit

Permalink
new test
Browse files Browse the repository at this point in the history
  • Loading branch information
nitro-neal committed Jan 25, 2024
1 parent fd1c079 commit 79533b0
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 28 deletions.
28 changes: 0 additions & 28 deletions test-vectors/presentation_exchange/validate_definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -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":{
Expand Down
44 changes: 44 additions & 0 deletions test-vectors/presentation_exchange/validate_submission.json
Original file line number Diff line number Diff line change
Expand Up @@ -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":{
Expand Down Expand Up @@ -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
}
]
}

0 comments on commit 79533b0

Please sign in to comment.