Skip to content

Commit 27ed41d

Browse files
committed
[FAB-4356]: System Behave Config updates
This contains config updates for the system behave tests. Change-Id: Ib2dc7a8eab910ab6b898f2d949d93bbd12101de1 Signed-off-by: Latitia M Haskins <[email protected]>
1 parent 38d3879 commit 27ed41d

File tree

2 files changed

+70
-32
lines changed

2 files changed

+70
-32
lines changed

test/feature/configs/configtx.yaml

+67-29
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
# Copyright IBM Corp. All Rights Reserved.
2-
#
3-
# SPDX-License-Identifier: Apache-2.0
4-
#
5-
61
---
72
################################################################################
83
#
94
# Profiles
105
#
116
# - Different configuration profiles may be encoded here to be specified
12-
# as parameters to the configtxgen tool. The profiles which specify consortiums
7+
# as parameters to the configtxgen tool. The profiles which specify consortiums
138
# are to be used for generating the orderer genesis block. With the correct
149
# consortium members defined in the orderer genesis block, channel creation
1510
# requests may be generated with only the org member names and a consortium name
@@ -23,19 +18,32 @@ Profiles:
2318
SampleInsecureSolo:
2419
Orderer:
2520
<<: *OrdererDefaults
21+
Organizations:
22+
- *ExampleCom
2623
Consortiums:
2724
SampleConsortium:
2825
Organizations:
26+
- *Org1ExampleCom
27+
- *Org2ExampleCom
2928

3029
# SampleInsecureKafka defines a configuration that differs from the
3130
# SampleInsecureSolo one only in that is uses the Kafka-based orderer.
3231
SampleInsecureKafka:
3332
Orderer:
3433
<<: *OrdererDefaults
3534
OrdererType: kafka
35+
Organizations:
36+
- *ExampleCom
37+
Application:
38+
<<: *ApplicationDefaults
39+
Organizations:
40+
- *ExampleCom
3641
Consortiums:
3742
SampleConsortium:
3843
Organizations:
44+
- *ExampleCom
45+
- *Org1ExampleCom
46+
- *Org2ExampleCom
3947

4048
# SampleSingleMSPSolo defines a configuration which uses the Solo orderer,
4149
# and contains a single MSP definition (the MSP sampleconfig).
@@ -44,27 +52,44 @@ Profiles:
4452
Orderer:
4553
<<: *OrdererDefaults
4654
Organizations:
47-
- *SampleOrg
55+
- *ExampleCom
56+
Application:
57+
<<: *ApplicationDefaults
58+
Organizations:
59+
- *ExampleCom
4860
Consortiums:
4961
SampleConsortium:
5062
Organizations:
51-
- *SampleOrg
63+
- *ExampleCom
64+
- *Org1ExampleCom
65+
- *Org2ExampleCom
5266

5367
# SampleEmptyInsecureChannel defines a channel with no members
5468
# and therefore no access control
5569
SampleEmptyInsecureChannel:
5670
Consortium: SampleConsortium
5771
Application:
5872
Organizations:
73+
- *ExampleCom
74+
75+
# SysTestChannel defines a channel for use with the System Test Orgs
76+
SysTestChannel:
77+
Consortium: SampleConsortium
78+
Application:
79+
Organizations:
80+
- *Org1ExampleCom
81+
- *Org2ExampleCom
5982

6083
# SampleSingleMSPChannel defines a channel with only the sample org as a
6184
# member. It is designed to be used in conjunction with SampleSingleMSPSolo
6285
# and SampleSingleMSPKafka orderer profiles
6386
SampleSingleMSPChannel:
6487
Consortium: SampleConsortium
6588
Application:
89+
<<: *ApplicationDefaults
6690
Organizations:
67-
- *SampleOrg
91+
- *Org1ExampleCom
92+
- *Org2ExampleCom
6893

6994
################################################################################
7095
#
@@ -76,30 +101,43 @@ Profiles:
76101
################################################################################
77102
Organizations:
78103

79-
# SampleOrg defines an MSP using the sampleconfig. It should never be used
80-
# in production but may be used as a template for other definitions.
81-
- &SampleOrg
82-
# DefaultOrg defines the organization which is used in the sampleconfig
83-
# of the fabric.git development environment.
84-
Name: SampleOrg
104+
- &Org1
105+
Name: Organization1
106+
ID: Org1
107+
MSPDir: ./peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp
108+
AdminPrincipal: Role.MEMBER
109+
AnchorPeers:
110+
- Host: peer0.org1.example.com
111+
Port: 7051
85112

86-
# ID to load the MSP definition as.
87-
ID: DEFAULT
113+
- &Org2
114+
Name: Organization2
115+
ID: Org2
116+
MSPDir: ./peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp
117+
AdminPrincipal: Role.MEMBER
118+
AnchorPeers:
119+
- Host: peer0.org2.example.com
120+
Port: 7051
88121

89-
# MSPDir is the filesystem path which contains the MSP configuration.
90-
MSPDir: msp
122+
- &ExampleCom
123+
Name: ExampleCom
124+
ID: example.com
125+
MSPDir: ./ordererOrganizations/example.com/msp
91126

92-
# AdminPrincipal dictates the type of principal used for an
93-
# organization's Admins policy. Today, only the values of Role.ADMIN and
94-
# Role.MEMBER are accepted, which indicates a principal of role type
95-
# ADMIN and role type MEMBER respectively.
96-
AdminPrincipal: Role.ADMIN
127+
- &Org1ExampleCom
128+
Name: Org1ExampleCom
129+
ID: org1.example.com
130+
MSPDir: ./peerOrganizations/org1.example.com/msp
131+
AnchorPeers:
132+
- Host: peer0.org1.example.com
133+
Port: 7051
97134

135+
- &Org2ExampleCom
136+
Name: Org2ExampleCom
137+
ID: org2.example.com
138+
MSPDir: ./peerOrganizations/org2.example.com/msp
98139
AnchorPeers:
99-
# AnchorPeers defines the location of peers which can be used for
100-
# cross-org gossip communication. Note, this value is only encoded
101-
# in the genesis block in the Application section context.
102-
- Host: 127.0.0.1
140+
- Host: peer0.org2.example.com
103141
Port: 7051
104142

105143
################################################################################
@@ -117,7 +155,7 @@ Orderer: &OrdererDefaults
117155
OrdererType: solo
118156

119157
Addresses:
120-
- 127.0.0.1:7050
158+
- orderer.example.com:7050
121159

122160
# Batch Timeout: The amount of time to wait before creating a batch.
123161
BatchTimeout: 2s

test/feature/configs/crypto.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
#
1515

1616
OrdererOrgs:
17-
- Name: Orderer
17+
- Name: ExampleCom
1818
Domain: example.com
1919
Specs:
2020
- Hostname: orderer
2121

2222
PeerOrgs:
23-
- Name: Org1
23+
- Name: Org1ExampleCom
2424
Domain: org1.example.com
2525
Template:
2626
Count: 2
2727
Users:
2828
Count: 1
2929

30-
- Name: Org2
30+
- Name: Org2ExampleCom
3131
Domain: org2.example.com
3232
Template:
3333
Count: 2

0 commit comments

Comments
 (0)