forked from hyperledger-archives/composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IdCard API changes (hyperledger-archives#2118)
* IdCard API changes * Remove IdCard.getName function * Add IdCard.getUserName function * Change semantics of IdCard.getEnrollmentCredentials function * Migrate previous format ID card archives on load Signed-off-by: Mark S. Lewis <[email protected]> * Fix mocks to match the code. * Update card definition in docker-composer-playground.yml * Guard against null return from IdCard.getEnrollmentCredentials
- Loading branch information
1 parent
81b8ab1
commit 9d20612
Showing
39 changed files
with
383 additions
and
300 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
4 changes: 0 additions & 4 deletions
4
packages/composer-common/test/data/id-cards/invalid-metadata-image/metadata.json
This file was deleted.
Oops, something went wrong.
3 changes: 2 additions & 1 deletion
3
packages/composer-common/test/data/id-cards/minimal/metadata.json
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,3 +1,4 @@ | ||
{ | ||
"name": "Minimal" | ||
"userName": "minimal", | ||
"version": 1 | ||
} |
3 changes: 2 additions & 1 deletion
3
packages/composer-common/test/data/id-cards/missing-connection-name/metadata.json
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,3 +1,4 @@ | ||
{ | ||
"name": "Minimal" | ||
"userName": "minimal", | ||
"version": 1 | ||
} |
3 changes: 2 additions & 1 deletion
3
packages/composer-common/test/data/id-cards/missing-connection/metadata.json
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,3 +1,4 @@ | ||
{ | ||
"name": "Minimal" | ||
"userName": "minimal", | ||
"version": 1 | ||
} |
2 changes: 0 additions & 2 deletions
2
packages/composer-common/test/data/id-cards/missing-metadata-name/metadata.json
This file was deleted.
Oops, something went wrong.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
packages/composer-common/test/data/id-cards/missing-metadata-username/metadata.json
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"version": 1 | ||
} |
1 change: 1 addition & 0 deletions
1
...ds/invalid-metadata-image/connection.json → ...st/data/id-cards/valid-v0/connection.json
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,4 +1,5 @@ | ||
{ | ||
"name": "hlfv1", | ||
"type": "hlfv1", | ||
"orderers": [ | ||
{ | ||
|
7 changes: 7 additions & 0 deletions
7
packages/composer-common/test/data/id-cards/valid-v0/metadata.json
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "name", | ||
"description": "A valid ID card", | ||
"businessNetwork": "org-acme-biznet", | ||
"enrollmentId": "conga", | ||
"enrollmentSecret": "super-secret-passphrase" | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/composer-common/test/data/id-cards/valid-with-enrollment/metadata.json
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,8 +1,8 @@ | ||
{ | ||
"name": "Conga", | ||
"version": 1, | ||
"userName": "conga", | ||
"description": "A valid ID card", | ||
"businessNetwork": "org-acme-biznet", | ||
"image": "images/conga.png", | ||
"enrollmentId": "conga", | ||
"enrollmentSecret": "super-secret-passphrase" | ||
} |
9 changes: 5 additions & 4 deletions
9
packages/composer-common/test/data/id-cards/valid-with-roles/metadata.json
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,11 +1,12 @@ | ||
{ | ||
"name": "Conga", | ||
"version": 1, | ||
"userName": "conga", | ||
"description": "A valid ID card", | ||
"businessNetwork": "org-acme-biznet", | ||
"image": "images/conga.png", | ||
"roles": [ | ||
"peerAdmin", | ||
"channelAdmin", | ||
"issuer" | ||
"PeerAdmin", | ||
"ChannelAdmin", | ||
"Issuer" | ||
] | ||
} |
3 changes: 2 additions & 1 deletion
3
packages/composer-common/test/data/id-cards/valid/metadata.json
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
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
Oops, something went wrong.