-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Test for ignoring collection config endorsement policy if using legacy chaincode * Test for endorsement failure if semantically wrong but well formed collection config signature policy is used Change-Id: Ic7c64cfa287bd7f58aaf5ce8e7f9b3df683369f6 Signed-off-by: Danny Cao <dcao@us.ibm.com>
- Loading branch information
Showing
2 changed files
with
129 additions
and
52 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
24 changes: 24 additions & 0 deletions
24
integration/pvtdata/testdata/collection_configs/collections_config6.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,24 @@ | ||
[ | ||
{ | ||
"name": "collectionMarbles", | ||
"policy": "OR('Org1MSP.member', 'Org2MSP.member', 'Org3MSP.member')", | ||
"requiredPeerCount": 1, | ||
"maxPeerCount": 2, | ||
"blockToLive":1000000, | ||
"memberOnlyRead": false, | ||
"endorsementPolicy": { | ||
"signaturePolicy": "OR('Org4MSP.member')" | ||
} | ||
}, | ||
{ | ||
"name": "collectionMarblePrivateDetails", | ||
"policy": "OR('Org1MSP.member', 'Org2MSP.member', 'Org3MSP.member')", | ||
"requiredPeerCount": 1, | ||
"maxPeerCount": 2, | ||
"blockToLive":1000000, | ||
"memberOnlyRead": false, | ||
"endorsementPolicy": { | ||
"signaturePolicy": "OR('Org4MSP.member')" | ||
} | ||
} | ||
] |