-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add checks for prism did creation (#1144)
Signed-off-by: Allain Magyar <[email protected]> Signed-off-by: Hyperledger Bot <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Hyperledger Bot <[email protected]> Co-authored-by: Yurii Shynbuiev - IOHK <[email protected]>
- Loading branch information
1 parent
2cc6c4d
commit 022ed81
Showing
5 changed files
with
126 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 29 additions & 22 deletions
51
tests/integration-tests/src/test/resources/features/did/update_did.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,37 @@ | ||
@DLT @did @update | ||
Feature: Update DID | ||
|
||
Background: Published DID is created | ||
Given Issuer has a published DID | ||
Background: Published DID is created | ||
Given Issuer has a published DID | ||
|
||
Scenario: Update PRISM DID by adding new services | ||
When Issuer updates PRISM DID with new services | ||
And He submits PRISM DID update operation | ||
Then He sees PRISM DID was successfully updated with new services | ||
Scenario: Update PRISM DID by adding new services | ||
When Issuer updates PRISM DID with new services | ||
And He submits PRISM DID update operation | ||
Then He sees PRISM DID was successfully updated with new services | ||
|
||
Scenario: Update PRISM DID by removing services | ||
When Issuer updates PRISM DID by removing services | ||
And He submits PRISM DID update operation | ||
Then He sees PRISM DID was successfully updated by removing services | ||
Scenario: Update PRISM DID by removing services | ||
When Issuer updates PRISM DID by removing services | ||
And He submits PRISM DID update operation | ||
Then He sees PRISM DID was successfully updated by removing services | ||
|
||
Scenario: Update PRISM DID by updating services | ||
When Issuer updates PRISM DID by updating services | ||
And He submits PRISM DID update operation | ||
Then He sees PRISM DID was successfully updated by updating services | ||
Scenario: Update PRISM DID by updating services | ||
When Issuer updates PRISM DID by updating services | ||
And He submits PRISM DID update operation | ||
Then He sees PRISM DID was successfully updated by updating services | ||
|
||
Scenario: Update PRISM DID by adding new keys | ||
When Issuer updates PRISM DID by adding new keys | ||
And He submits PRISM DID update operation | ||
Then He sees PRISM DID was successfully updated with new keys | ||
Scenario Outline: Update PRISM DID by adding new keys | ||
When Issuer updates PRISM DID by adding new key with <curve> curve and <purpose> purpose | ||
And He submits PRISM DID update operation | ||
Then He sees PRISM DID was successfully updated with new keys of <purpose> purpose | ||
Examples: | ||
| curve | purpose | | ||
| secp256k1 | authentication | | ||
| secp256k1 | assertionMethod | | ||
| Ed25519 | authentication | | ||
| Ed25519 | assertionMethod | | ||
| X25519 | keyAgreement | | ||
|
||
Scenario: Update PRISM DID by removing keys | ||
When Issuer updates PRISM DID by removing keys | ||
And He submits PRISM DID update operation | ||
Then He sees PRISM DID was successfully updated and keys removed | ||
Scenario: Update PRISM DID by removing keys | ||
When Issuer updates PRISM DID by removing keys | ||
And He submits PRISM DID update operation | ||
Then He sees PRISM DID was successfully updated and keys removed |