-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAB-8749 NodeSDK - allow admin identity
Allow the admin identity to get the config from the orderer. Clean up the create channel test case. Add a test case to demonstrate using only admin identities to perform tasks. Change-Id: Iad5e1fc492630f78faa8693544d1a78080f7a366 Signed-off-by: Bret Harrison <[email protected]>
- Loading branch information
Showing
8 changed files
with
741 additions
and
292 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
Binary file not shown.
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,89 @@ | ||
name: "global-trade-network" | ||
description: "The network to be in if you want to stay in the global trade business" | ||
version: "1.0" | ||
|
||
channels: | ||
adminconfig: | ||
orderers: | ||
- orderer.example.com | ||
peers: | ||
peer0.org1.example.com: | ||
endorsingPeer: true | ||
chaincodeQuery: true | ||
ledgerQuery: true | ||
eventSource: true | ||
peer0.org2.example.com: | ||
endorsingPeer: true | ||
chaincodeQuery: false | ||
ledgerQuery: true | ||
eventSource: true | ||
|
||
organizations: | ||
Org1: | ||
mspid: Org1MSP | ||
|
||
peers: | ||
- peer0.org1.example.com | ||
certificateAuthorities: | ||
- ca-org1 | ||
adminPrivateKey: | ||
path: test/fixtures/channel/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/keystore/9022d671ceedbb24af3ea69b5a8136cc64203df6b9920e26f48123fcfcb1d2e9_sk | ||
signedCert: | ||
path: test/fixtures/channel/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/signcerts/[email protected] | ||
Org2: | ||
mspid: Org2MSP | ||
peers: | ||
- peer0.org2.example.com | ||
certificateAuthorities: | ||
- ca-org2 | ||
adminPrivateKey: | ||
path: test/fixtures/channel/crypto-config/peerOrganizations/org2.example.com/users/[email protected]/keystore/5a983ddcbefe52a7f9b8ee5b85a590c3e3a43c4ccd70c7795bec504e7f74848d_sk | ||
signedCert: | ||
path: test/fixtures/channel/crypto-config/peerOrganizations/org2.example.com/users/[email protected]/signcerts/[email protected] | ||
orderers: | ||
orderer.example.com: | ||
url: grpcs://localhost:7050 | ||
grpcOptions: | ||
ssl-target-name-override: orderer.example.com | ||
grpc-max-send-message-length: 15 | ||
|
||
tlsCACerts: | ||
path: test/fixtures/channel/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tlscacerts/example.com-cert.pem | ||
peers: | ||
peer0.org1.example.com: | ||
url: grpcs://localhost:7051 | ||
grpcOptions: | ||
ssl-target-name-override: peer0.org1.example.com | ||
grpc.http2.keepalive_time: 15 | ||
tlsCACerts: | ||
path: test/fixtures/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tlscacerts/org1.example.com-cert.pem | ||
|
||
peer0.org2.example.com: | ||
url: grpcs://localhost:8051 | ||
grpcOptions: | ||
ssl-target-name-override: peer0.org2.example.com | ||
tlsCACerts: | ||
path: test/fixtures/channel/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tlscacerts/org2.example.com-cert.pem | ||
|
||
certificateAuthorities: | ||
ca-org1: | ||
url: https://localhost:7054 | ||
httpOptions: | ||
verify: false | ||
tlsCACerts: | ||
path: test/fixtures/channel/crypto-config/peerOrganizations/org1.example.com/ca/org1.example.com-cert.pem | ||
registrar: | ||
- enrollId: admin | ||
enrollSecret: adminpw | ||
caName: ca-org1 | ||
|
||
ca-org2: | ||
url: https://localhost:8054 | ||
httpOptions: | ||
verify: false | ||
tlsCACerts: | ||
path: test/fixtures/channel/crypto-config/peerOrganizations/org2.example.com/ca/org2.example.com-cert.pem | ||
registrar: | ||
- enrollId: admin | ||
enrollSecret: adminpw | ||
caName: ca-org2 |
Oops, something went wrong.