Skip to content

Commit

Permalink
cheqd did url tests
Browse files Browse the repository at this point in the history
Signed-off-by: George Mulhearn <[email protected]>
  • Loading branch information
gmulhearn-anonyome committed Nov 26, 2024
1 parent d0bf0af commit 881410e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions did_core/did_parser_nom/tests/did_url/positive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,4 +361,27 @@ test_cases_positive! {
Some("/anoncreds/v0/REV_REG_DEF/56495/npdb/TAG1"),
None,
HashMap::new()
test_case28:
"did:cheqd:testnet:d8ac0372-0d4b-413e-8ef5-8e8f07822b2c/resources/40829caf-b415-4b1d-91a3-b56dfb6374f4",
Some("did:cheqd:testnet:d8ac0372-0d4b-413e-8ef5-8e8f07822b2c"),
Some("cheqd"),
Some("testnet"),
Some("d8ac0372-0d4b-413e-8ef5-8e8f07822b2c"),
Some("/resources/40829caf-b415-4b1d-91a3-b56dfb6374f4"),
None,
HashMap::new()
test_case29:
"did:cheqd:mainnet:zF7rhDBfUt9d1gJPjx7s1J?resourceName=universityDegree&resourceType=anonCredsCredDef",
Some("did:cheqd:mainnet:zF7rhDBfUt9d1gJPjx7s1J"),
Some("cheqd"),
Some("mainnet"),
Some("zF7rhDBfUt9d1gJPjx7s1J"),
None,
None,
{
vec![
("resourceName".to_string(), "universityDegree".to_string()),
("resourceType".to_string(), "anonCredsCredDef".to_string()),
].into_iter().collect()
}
}

0 comments on commit 881410e

Please sign in to comment.