Skip to content

Commit

Permalink
Added error cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
andresuribe87 committed Nov 22, 2023
1 parent 8b3f343 commit 9a2d788
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions web5-test-vectors/did-web/resolve.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,42 @@
"id": "did:web:example.com%3A3000:user:alice"
}
}
},
{
"description": "methodNotSupported error returned when did method is not web",
"input": {
"didUri": "did:dht:gb46emk73wkenrut43ii67a3o5qctojcaucebth7r83pst6yeh8o"
},
"output": {
"didResolutionMetadata": {
"error": "methodNotSupported"
}
},
"errors": true
},
{
"description": "notFound error returned when domain does not exist",
"input": {
"didUri": "did:web:doesnotexist.com"
},
"output": {
"didResolutionMetadata": {
"error": "notFound"
}
},
"errors": true
},
{
"description": "invalidDid error returned for domain name with invalid character",
"input": {
"didUri": "did:web:invalidcharø.com"
},
"output": {
"didResolutionMetadata": {
"error": "invalidDid"
}
},
"errors": true
}
]
}

0 comments on commit 9a2d788

Please sign in to comment.