Skip to content

Commit 314856d

Browse files
committed
[FAB-10076] Peer runner fails to list instantiated cc
The peer runner integration test currently fails to get the instantiated chaincodes. This is due to the new pluggable validation and the "GetInstantiatedChaincodes" policy not existing at the correct scope. This CR adds the default VSCC plugin information to core.yaml for the peer integration runner and properly sets the default policy for "GetInstantiatedChaincodes" to be channel-scoped instead of peer-scoped. Change-Id: I763b3d84ebefc3af6a3c0dc5e841ae9999312969 Signed-off-by: Will Lahti <wtlahti@us.ibm.com>
1 parent ce58047 commit 314856d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

core/aclmgmt/defaultaclprovider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ func (d *defaultACLProvider) initialize() {
5555
//-------------- LSCC --------------
5656
//p resources (implemented by the chaincode currently)
5757
d.pResourcePolicyMap[resources.Lscc_Install] = ""
58-
d.pResourcePolicyMap[resources.Lscc_GetInstantiatedChaincodes] = ""
5958
d.pResourcePolicyMap[resources.Lscc_GetInstalledChaincodes] = ""
6059

6160
//c resources
@@ -64,6 +63,7 @@ func (d *defaultACLProvider) initialize() {
6463
d.cResourcePolicyMap[resources.Lscc_ChaincodeExists] = CHANNELREADERS
6564
d.cResourcePolicyMap[resources.Lscc_GetDeploymentSpec] = CHANNELREADERS
6665
d.cResourcePolicyMap[resources.Lscc_GetChaincodeData] = CHANNELREADERS
66+
d.cResourcePolicyMap[resources.Lscc_GetInstantiatedChaincodes] = CHANNELREADERS
6767

6868
//-------------- QSCC --------------
6969
//p resources (none)

integration/runner/testdata/core.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ peer:
121121
endorsers:
122122
escc:
123123
name: DefaultEndorsement
124+
validators:
125+
vscc:
126+
name: DefaultValidation
124127
validatorPoolSize:
125128

126129
vm:

0 commit comments

Comments
 (0)