Skip to content

Commit 300ba90

Browse files
committed
Test muliple orderer group (v3)
Signed-off-by: Osama Rabea <osrab3@gmail.com>
1 parent 9bf75f4 commit 300ba90

File tree

2 files changed

+34
-8
lines changed

2 files changed

+34
-8
lines changed

e2e-network/docker/test-05-v3.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ trap 'networkDown ; echo "Test failed" ; exit 1' ERR SIGINT
5151
# start the network
5252
networkUp
5353

54-
waitForContainer "orderer0.group1.orderer.example.com" "Starting raft node as part of a new channel channel=my-channel1"
54+
waitForContainer "orderer0.group1.orderer1.example.com" "Starting raft node as part of a new channel channel=my-channel1"
55+
waitForContainer "orderer0.group2.orderer2.example.com" "Starting raft node as part of a new channel channel=my-channel2"
5556
waitForContainer "ca.org1.example.com" "Listening on https://0.0.0.0:7054"
5657
waitForContainer "peer0.org1.example.com" "Joining gossip network of channel my-channel1 with 1 organizations"
57-
waitForContainer "peer1.org1.example.com" "Joining gossip network of channel my-channel1 with 1 organizations"
58+
waitForContainer "peer1.org1.example.com" "Joining gossip network of channel my-channel2 with 1 organizations"
5859
waitForContainer "peer0.org1.example.com" "Learning about the configured anchor peers of Org1MSP for channel my-channel1"
5960
waitForContainer "peer0.org1.example.com" "Anchor peer.*with same endpoint, skipping connecting to myself"
60-
waitForContainer "peer0.org1.example.com" "Membership view has changed. peers went online:.*peer1.org1.example.com:7042"
61-
waitForContainer "peer1.org1.example.com" "Learning about the configured anchor peers of Org1MSP for channel my-channel1"
62-
waitForContainer "peer1.org1.example.com" "Membership view has changed. peers went online:.*peer0.org1.example.com:7041"
61+
waitForContainer "peer1.org1.example.com" "Learning about the configured anchor peers of Org1MSP for channel my-channel2"
62+
waitForContainer "peer1.org1.example.com" "Anchor peer.*with same endpoint, skipping connecting to myself"
6363

6464
# Test simple chaincode
6565
expectInvoke "peer0.org1.example.com" "my-channel1" "chaincode1" \

samples/fablo-config-hlf3-1orgs-1chaincode.json

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,27 @@
1010
"orgs": [
1111
{
1212
"organization": {
13-
"name": "Orderer",
14-
"domain": "orderer.example.com"
13+
"name": "Orderer1",
14+
"domain": "orderer1.example.com"
1515
},
1616
"orderers": [
1717
{
1818
"groupName": "group1",
1919
"type": "raft",
20-
"instances": 4
20+
"instances": 3
21+
}
22+
]
23+
},
24+
{
25+
"organization": {
26+
"name": "Orderer2",
27+
"domain": "orderer2.example.com"
28+
},
29+
"orderers": [
30+
{
31+
"groupName": "group2",
32+
"type": "raft",
33+
"instances": 1
2134
}
2235
]
2336
},
@@ -35,6 +48,7 @@
3548
"channels": [
3649
{
3750
"name": "my-channel1",
51+
"ordererGroup": "group1",
3852
"orgs": [
3953
{
4054
"name": "Org1",
@@ -44,6 +58,18 @@
4458
]
4559
}
4660
]
61+
},
62+
{
63+
"name": "my-channel2",
64+
"ordererGroup": "group2",
65+
"orgs": [
66+
{
67+
"name": "Org1",
68+
"peers": [
69+
"peer1"
70+
]
71+
}
72+
]
4773
}
4874
],
4975
"chaincodes": [

0 commit comments

Comments
 (0)