Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 78503fe

Browse files
committed
[FAB-7498] Rename fixtures ca to be part of example.com
Change-Id: I4497dc65660d0b791e30f7ee0923f2b7cf17a0f8 Signed-off-by: Troy Ronda <troy@troyronda.com>
1 parent 9a9856d commit 78503fe

File tree

14 files changed

+42
-42
lines changed

14 files changed

+42
-42
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ You need:
118118
#### Enable local hostnames
119119

120120
You will need to set the following hosts to 127.0.0.1 (typically in /etc/hosts):
121-
ca_peerOrg1 ca_peerOrg2 peer0.org1.example.com peer1.org1.example.com peer0.org2.example.com peer1.org2.example.com orderer.example.com
121+
ca.org1.example.com ca.org2.example.com peer0.org1.example.com peer1.org1.example.com peer0.org2.example.com peer1.org2.example.com orderer.example.com
122122

123123
#### Testing with Fabric Images at Docker Hub
124124

def/fabapi/testdata/test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ organizations:
8080
- peer0.org2.example.com
8181

8282
certificateAuthorities:
83-
- ca-org2
83+
- ca.org2.example.com
8484

8585
ordererorg:
8686
mspID: "OrdererOrg"
@@ -110,8 +110,8 @@ peers:
110110
path: ${GOPATH}/src/github.com/hyperledger/fabric-sdk-go/${CRYPTOCONFIG_FIXTURES_PATH}/peerOrganizations/org2.example.com/tlsca/tlsca.org2.example.com-cert.pem
111111

112112
certificateAuthorities:
113-
ca-org2:
114-
url: https://ca_peerOrg2:7054
113+
ca.org2.example.com:
114+
url: https://ca.org2.example.com:7054
115115

116116
httpOptions:
117117
verify: true
@@ -126,4 +126,4 @@ certificateAuthorities:
126126
enrollId: admin
127127
enrollSecret: adminpw
128128

129-
caName: ca-org2
129+
caName: ca.org2.example.com

pkg/config/config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ organizations:
162162
# dynamic certificate management (enroll, revoke, re-enroll). The following section is only for
163163
# Fabric-CA servers.
164164
# certificateAuthorities:
165-
# - ca-org1
165+
# - ca.org1.example.com
166166

167167
# [Optional]. If the application is going to make requests that are reserved to organization
168168
# administrators, including creating/updating channels, installing/instantiating chaincodes, it
@@ -222,8 +222,8 @@ peers:
222222
# Certificate Authority instead of Fabric-CA, in which case this section would not be specified.
223223
#
224224
certificateAuthorities:
225-
# ca-org1:
226-
# url: https://ca_peerOrg1:7054
225+
# ca.org1.example.com:
226+
# url: https://ca.org1.example.com:7054
227227
# the properties specified under this object are passed to the 'http' client verbatim when
228228
# making the request to the Fabric-CA server
229229
# httpOptions:
@@ -242,4 +242,4 @@ certificateAuthorities:
242242
# enrollId: usually-it-is_admin
243243
# enrollSecret: adminpasswd
244244
# [Optional] The optional name of the CA.
245-
# caName: ca-org1
245+
# caName: ca.org1.example.com

pkg/config/testdata/config_test_pem.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ organizations:
183183
# dynamic certificate management (enroll, revoke, re-enroll). The following section is only for
184184
# Fabric-CA servers.
185185
certificateAuthorities:
186-
- ca-org1
186+
- ca.org1.example.com
187187

188188
# [Optional]. If the application is going to make requests that are reserved to organization
189189
# administrators, including creating/updating channels, installing/instantiating chaincodes, it
@@ -212,7 +212,7 @@ organizations:
212212
- peer0.org2.example.com
213213

214214
certificateAuthorities:
215-
- ca-org2
215+
- ca.org2.example.com
216216

217217
# Orderer Org name
218218
ordererorg:
@@ -312,7 +312,7 @@ peers:
312312
# Certificate Authority instead of Fabric-CA, in which case this section would not be specified.
313313
#
314314
certificateAuthorities:
315-
ca-org1:
315+
ca.org1.example.com:
316316
url: https://ca_peerOrg1:7054
317317
# the properties specified under this object are passed to the 'http' client verbatim when
318318
# making the request to the Fabric-CA server
@@ -381,8 +381,8 @@ certificateAuthorities:
381381
enrollId: admin
382382
enrollSecret: adminpw
383383
# [Optional] The optional name of the CA.
384-
caName: ca-org1
385-
ca-org2:
384+
caName: ca.org1.example.com
385+
ca.org2.example.com:
386386
url: https://ca_peerOrg2:7054
387387
# the properties specified under this object are passed to the 'http' client verbatim when
388388
# making the request to the Fabric-CA server
@@ -402,4 +402,4 @@ certificateAuthorities:
402402
enrollId: admin
403403
enrollSecret: adminpw
404404
# [Optional] The optional name of the CA.
405-
caName: ca-org2
405+
caName: ca.org2.example.com

pkg/fabric-client/events/eventmocks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ func (b *MockCCBlockEventBuilder) Build() *pb.Event_Block {
215215
return b.BuildWithTxValidationFlag(true)
216216
}
217217

218-
// Build builds a mock chaincode event block with valid/invalid TxValidation Flag (set in the argument)
218+
// BuildWithTxValidationFlag builds a mock chaincode event block with valid/invalid TxValidation Flag (set in the argument)
219219
func (b *MockCCBlockEventBuilder) BuildWithTxValidationFlag(isValid bool) *pb.Event_Block {
220220
return &pb.Event_Block{
221221
Block: &common.Block{

pkg/fabric-txn/resmgmtclient/testdata/ccproposal_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ organizations:
8383
- peer0.org1.example.com
8484
- peer1.org1.example.com
8585
certificateAuthorities:
86-
- ca-org1
86+
- ca.org1.example.com
8787

8888
# Orderer Org name
8989
ordererorg:

pkg/fabric-txn/resmgmtclient/testdata/event_source_missing_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ organizations:
7676
peers:
7777
- peer0.org1.example.com
7878
certificateAuthorities:
79-
- ca-org1
79+
- ca.org1.example.com
8080

8181
# Orderer Org name
8282
ordererorg:

pkg/fabric-txn/resmgmtclient/testdata/invalidchorderer_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ organizations:
5454
- peer0.org1.example.com
5555

5656
certificateAuthorities:
57-
- ca-org1
57+
- ca.org1.example.com
5858

5959
orderers:
6060
orderer.example.com:

pkg/fabric-txn/resmgmtclient/testdata/invalidorderer_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ organizations:
5353
- peer0.org1.example.com
5454

5555
certificateAuthorities:
56-
- ca-org1
56+
- ca.org1.example.com
5757

5858
orderers:
5959
orderer.example.com:

pkg/fabric-txn/resmgmtclient/testdata/noorderer_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ organizations:
4848
- peer0.org1.example.com
4949

5050
certificateAuthorities:
51-
- ca-org1
51+
- ca.org1.example.com
5252

5353
#
5454
# Empty orderer list (for testing purposes)

0 commit comments

Comments
 (0)