|
| 1 | +# |
| 2 | +# Copyright SecureKey Technologies Inc. All Rights Reserved. |
| 3 | +# |
| 4 | +# SPDX-License-Identifier: Apache-2.0 |
| 5 | +# |
| 6 | + |
| 7 | +@wallet_jsonld |
| 8 | +Feature: Support for JSON-LD in universal wallet |
| 9 | + |
| 10 | + Scenario Outline: Issue credentials, add to wallet, query presentation, verify presentation and credentials |
| 11 | + Given credentials crypto algorithm "<crypto>" |
| 12 | + And "Berkley" agent is running on "localhost" port "random" with http-binding did resolver url "${SIDETREE_URL}" which accepts did method "sidetree" |
| 13 | + And "Alice" agent is running on "localhost" port "random" with http-binding did resolver url "${SIDETREE_URL}" which accepts did method "sidetree" |
| 14 | + When "Alice" creates wallet profile |
| 15 | + And "Alice" opens wallet |
| 16 | + And "Berkley" issues credentials at "2022-04-12" regarding "Master Degree" to "Alice" |
| 17 | + Then "Alice" adds credentials to the wallet issued by "Berkley" |
| 18 | + When "Vanna" queries credentials issued by "Berkley" using "QueryByExample" query type |
| 19 | + Then "Alice" resolves query |
| 20 | + And "Alice" adds presentations proof |
| 21 | + And "Alice" closes wallet |
| 22 | + Then "Vanna" receives presentations signed by "Alice" and verifies it |
| 23 | + And "Vanna" receives credentials from presentation signed by "Berkley" and verifies it |
| 24 | + Examples: |
| 25 | + | crypto | |
| 26 | + | "Ed25519" | |
| 27 | + | "ECDSA Secp256r1" | |
| 28 | + | "ECDSA Secp384r1" | |
| 29 | + |
| 30 | + Scenario Outline: Issue credentials using the wallet, add to wallet, query presentation, verify presentation and credentials |
| 31 | + Given credentials crypto algorithm "<crypto>" |
| 32 | + And "Alice" agent is running on "localhost" port "random" with http-binding did resolver url "${SIDETREE_URL}" which accepts did method "sidetree" |
| 33 | + When "Alice" creates wallet profile |
| 34 | + And "Alice" opens wallet |
| 35 | + And "Alice" creates credentials at "2022-04-12" regarding "Master Degree" without proof |
| 36 | + And "Alice" issues credentials using the wallet |
| 37 | + Then "Alice" adds credentials to the wallet issued by "Alice" |
| 38 | + When "Vanna" queries credentials issued by "Alice" using "PresentationExchange" query type |
| 39 | + And "Alice" resolves query |
| 40 | + And "Alice" adds presentations proof |
| 41 | + And "Alice" closes wallet |
| 42 | + Then "Vanna" receives presentations signed by "Alice" and verifies it |
| 43 | + And "Vanna" receives credentials from presentation signed by "Alice" and verifies it |
| 44 | + Examples: |
| 45 | + | crypto | |
| 46 | + | "Ed25519" | |
| 47 | + | "ECDSA Secp256r1" | |
| 48 | + | "ECDSA Secp384r1" | |
| 49 | + |
| 50 | + Scenario Outline: Issue multiple credentials, add to wallet, query all, verify credentials |
| 51 | + Given credentials crypto algorithm "<crypto>" |
| 52 | + And "Berkley" agent is running on "localhost" port "random" with http-binding did resolver url "${SIDETREE_URL}" which accepts did method "sidetree" |
| 53 | + And "MIT" agent is running on "localhost" port "random" with http-binding did resolver url "${SIDETREE_URL}" which accepts did method "sidetree" |
| 54 | + And "Alice" agent is running on "localhost" port "random" with http-binding did resolver url "${SIDETREE_URL}" which accepts did method "sidetree" |
| 55 | + When "Alice" creates wallet profile |
| 56 | + And "Alice" opens wallet |
| 57 | + And "Berkley" issues credentials at "2022-04-12" regarding "Master Degree" to "Alice" |
| 58 | + And "MIT" issues credentials at "2022-04-12" regarding "Bachelor Degree" to "Alice" |
| 59 | + Then "Alice" adds credentials to the wallet issued by "Berkley" |
| 60 | + And "Alice" adds credentials to the wallet issued by "MIT" |
| 61 | + When "Vanna" queries all credentials from "Alice" |
| 62 | + Then "Vanna" receives "2" credentials |
| 63 | + And "Alice" closes wallet |
| 64 | + And "Vanna" verifies credentials issued by "Berkley" |
| 65 | + And "Vanna" verifies credentials issued by "MIT" |
| 66 | + Examples: |
| 67 | + | crypto | |
| 68 | + | "Ed25519" | |
| 69 | + | "ECDSA Secp256r1" | |
| 70 | + | "ECDSA Secp384r1" | |
0 commit comments