Skip to content

Commit

Permalink
Generate connection profiles
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Hejduk <grzegorz.hejduk@softwaremill.com>
  • Loading branch information
gzhk committed Dec 7, 2021
1 parent 106750f commit 2ddb6f2
Show file tree
Hide file tree
Showing 9 changed files with 2,147 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,234 @@ Profiles:
"
`;
exports[`samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json should create proper e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/connection-profile-orderer.json from samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json 1`] = `
"{
\\"name\\": \\"test-network-org-fablo_network_202112070903\\",
\\"description\\": \\"Connection profile for Orderer in Fablo network fablo_network_202112070903\\",
\\"version\\": \\"1.0.0\\",
\\"client\\": {
\\"organization\\": \\"Orderer\\"
},
\\"organizations\\": {
\\"Orderer\\": {
\\"mspid\\": \\"OrdererMSP\\",
\\"peers\\": [
\\"peer0.org1.com\\",
\\"peer1.org1.com\\",
\\"peer0.org2.com\\"
],
\\"certificateAuthorities\\": [
\\"ca.orderer.com\\"
]
}
},
\\"peers\\": {
\\"peer0.org1.com\\": {
\\"url\\": \\"grpc://localhost:7041\\"
},
\\"peer1.org1.com\\": {
\\"url\\": \\"grpc://localhost:7042\\"
},
\\"peer0.org2.com\\": {
\\"url\\": \\"grpc://localhost:7061\\"
}
},
\\"certificateAuthorities\\": {
\\"ca.orderer.com\\": {
\\"url\\": \\"http://localhost:7020\\",
\\"caName\\": \\"ca.orderer.com\\",
\\"httpOptions\\": {
\\"verify\\": false
}
}
}
}
"
`;
exports[`samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json should create proper e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/connection-profile-orderer.yaml from samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json 1`] = `
"name: test-network-org-fablo_network_202112070903
description: Connection profile for Orderer in Fablo network fablo_network_202112070903
version: 1.0.0
client:
organization: Orderer
organizations:
Orderer:
mspid: OrdererMSP
peers:
- peer0.org1.com
- peer1.org1.com
- peer0.org2.com
certificateAuthorities:
- ca.orderer.com
peers:
peer0.org1.com:
url: grpc://localhost:7041
peer1.org1.com:
url: grpc://localhost:7042
peer0.org2.com:
url: grpc://localhost:7061
certificateAuthorities:
ca.orderer.com:
url: http://localhost:7020
caName: ca.orderer.com
httpOptions:
verify: false
"
`;
exports[`samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json should create proper e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/connection-profile-org1.json from samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json 1`] = `
"{
\\"name\\": \\"test-network-org-fablo_network_202112070903\\",
\\"description\\": \\"Connection profile for Org1 in Fablo network fablo_network_202112070903\\",
\\"version\\": \\"1.0.0\\",
\\"client\\": {
\\"organization\\": \\"Org1\\"
},
\\"organizations\\": {
\\"Org1\\": {
\\"mspid\\": \\"Org1MSP\\",
\\"peers\\": [
\\"peer0.org1.com\\",
\\"peer1.org1.com\\",
\\"peer0.org2.com\\"
],
\\"certificateAuthorities\\": [
\\"ca.org1.com\\"
]
}
},
\\"peers\\": {
\\"peer0.org1.com\\": {
\\"url\\": \\"grpc://localhost:7041\\"
},
\\"peer1.org1.com\\": {
\\"url\\": \\"grpc://localhost:7042\\"
},
\\"peer0.org2.com\\": {
\\"url\\": \\"grpc://localhost:7061\\"
}
},
\\"certificateAuthorities\\": {
\\"ca.org1.com\\": {
\\"url\\": \\"http://localhost:7040\\",
\\"caName\\": \\"ca.org1.com\\",
\\"httpOptions\\": {
\\"verify\\": false
}
}
}
}
"
`;
exports[`samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json should create proper e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/connection-profile-org1.yaml from samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json 1`] = `
"name: test-network-org-fablo_network_202112070903
description: Connection profile for Org1 in Fablo network fablo_network_202112070903
version: 1.0.0
client:
organization: Org1
organizations:
Org1:
mspid: Org1MSP
peers:
- peer0.org1.com
- peer1.org1.com
- peer0.org2.com
certificateAuthorities:
- ca.org1.com
peers:
peer0.org1.com:
url: grpc://localhost:7041
peer1.org1.com:
url: grpc://localhost:7042
peer0.org2.com:
url: grpc://localhost:7061
certificateAuthorities:
ca.org1.com:
url: http://localhost:7040
caName: ca.org1.com
httpOptions:
verify: false
"
`;
exports[`samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json should create proper e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/connection-profile-org2.json from samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json 1`] = `
"{
\\"name\\": \\"test-network-org-fablo_network_202112070903\\",
\\"description\\": \\"Connection profile for Org2 in Fablo network fablo_network_202112070903\\",
\\"version\\": \\"1.0.0\\",
\\"client\\": {
\\"organization\\": \\"Org2\\"
},
\\"organizations\\": {
\\"Org2\\": {
\\"mspid\\": \\"Org2MSP\\",
\\"peers\\": [
\\"peer0.org1.com\\",
\\"peer1.org1.com\\",
\\"peer0.org2.com\\"
],
\\"certificateAuthorities\\": [
\\"ca.org2.com\\"
]
}
},
\\"peers\\": {
\\"peer0.org1.com\\": {
\\"url\\": \\"grpc://localhost:7041\\"
},
\\"peer1.org1.com\\": {
\\"url\\": \\"grpc://localhost:7042\\"
},
\\"peer0.org2.com\\": {
\\"url\\": \\"grpc://localhost:7061\\"
}
},
\\"certificateAuthorities\\": {
\\"ca.org2.com\\": {
\\"url\\": \\"http://localhost:7060\\",
\\"caName\\": \\"ca.org2.com\\",
\\"httpOptions\\": {
\\"verify\\": false
}
}
}
}
"
`;
exports[`samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json should create proper e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/connection-profile-org2.yaml from samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json 1`] = `
"name: test-network-org-fablo_network_202112070903
description: Connection profile for Org2 in Fablo network fablo_network_202112070903
version: 1.0.0
client:
organization: Org2
organizations:
Org2:
mspid: Org2MSP
peers:
- peer0.org1.com
- peer1.org1.com
- peer0.org2.com
certificateAuthorities:
- ca.org2.com
peers:
peer0.org1.com:
url: grpc://localhost:7041
peer1.org1.com:
url: grpc://localhost:7042
peer0.org2.com:
url: grpc://localhost:7061
certificateAuthorities:
ca.org2.com:
url: http://localhost:7060
caName: ca.org2.com
httpOptions:
verify: false
"
`;
exports[`samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json should create proper e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/crypto-config-orderer.yaml from samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json 1`] = `
"PeerOrgs:
- Name: Orderer
Expand Down Expand Up @@ -1839,6 +2067,12 @@ Array [
"e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/.gitignore",
"e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/collections/chaincode1.json",
"e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/configtx.yaml",
"e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/connection-profile-orderer.json",
"e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/connection-profile-orderer.yaml",
"e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/connection-profile-org1.json",
"e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/connection-profile-org1.yaml",
"e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/connection-profile-org2.json",
"e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/connection-profile-org2.yaml",
"e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/crypto-config-orderer.yaml",
"e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/crypto-config-org1.yaml",
"e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-config/crypto-config-org2.yaml",
Expand Down
Loading

0 comments on commit 2ddb6f2

Please sign in to comment.