Skip to content

Commit

Permalink
[FAB-4356]: System Behave Config updates
Browse files Browse the repository at this point in the history
This contains config updates for the system
behave tests.

Change-Id: Ib2dc7a8eab910ab6b898f2d949d93bbd12101de1
Signed-off-by: Latitia M Haskins <latitia.haskins@gmail.com>
  • Loading branch information
lhaskins committed Jun 5, 2017
1 parent 38d3879 commit 27ed41d
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 32 deletions.
96 changes: 67 additions & 29 deletions test/feature/configs/configtx.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#

---
################################################################################
#
# Profiles
#
# - Different configuration profiles may be encoded here to be specified
# as parameters to the configtxgen tool. The profiles which specify consortiums
# as parameters to the configtxgen tool. The profiles which specify consortiums
# are to be used for generating the orderer genesis block. With the correct
# consortium members defined in the orderer genesis block, channel creation
# requests may be generated with only the org member names and a consortium name
Expand All @@ -23,19 +18,32 @@ Profiles:
SampleInsecureSolo:
Orderer:
<<: *OrdererDefaults
Organizations:
- *ExampleCom
Consortiums:
SampleConsortium:
Organizations:
- *Org1ExampleCom
- *Org2ExampleCom

# SampleInsecureKafka defines a configuration that differs from the
# SampleInsecureSolo one only in that is uses the Kafka-based orderer.
SampleInsecureKafka:
Orderer:
<<: *OrdererDefaults
OrdererType: kafka
Organizations:
- *ExampleCom
Application:
<<: *ApplicationDefaults
Organizations:
- *ExampleCom
Consortiums:
SampleConsortium:
Organizations:
- *ExampleCom
- *Org1ExampleCom
- *Org2ExampleCom

# SampleSingleMSPSolo defines a configuration which uses the Solo orderer,
# and contains a single MSP definition (the MSP sampleconfig).
Expand All @@ -44,27 +52,44 @@ Profiles:
Orderer:
<<: *OrdererDefaults
Organizations:
- *SampleOrg
- *ExampleCom
Application:
<<: *ApplicationDefaults
Organizations:
- *ExampleCom
Consortiums:
SampleConsortium:
Organizations:
- *SampleOrg
- *ExampleCom
- *Org1ExampleCom
- *Org2ExampleCom

# SampleEmptyInsecureChannel defines a channel with no members
# and therefore no access control
SampleEmptyInsecureChannel:
Consortium: SampleConsortium
Application:
Organizations:
- *ExampleCom

# SysTestChannel defines a channel for use with the System Test Orgs
SysTestChannel:
Consortium: SampleConsortium
Application:
Organizations:
- *Org1ExampleCom
- *Org2ExampleCom

# SampleSingleMSPChannel defines a channel with only the sample org as a
# member. It is designed to be used in conjunction with SampleSingleMSPSolo
# and SampleSingleMSPKafka orderer profiles
SampleSingleMSPChannel:
Consortium: SampleConsortium
Application:
<<: *ApplicationDefaults
Organizations:
- *SampleOrg
- *Org1ExampleCom
- *Org2ExampleCom

################################################################################
#
Expand All @@ -76,30 +101,43 @@ Profiles:
################################################################################
Organizations:

# SampleOrg defines an MSP using the sampleconfig. It should never be used
# in production but may be used as a template for other definitions.
- &SampleOrg
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment.
Name: SampleOrg
- &Org1
Name: Organization1
ID: Org1
MSPDir: ./peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp
AdminPrincipal: Role.MEMBER
AnchorPeers:
- Host: peer0.org1.example.com
Port: 7051

# ID to load the MSP definition as.
ID: DEFAULT
- &Org2
Name: Organization2
ID: Org2
MSPDir: ./peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp
AdminPrincipal: Role.MEMBER
AnchorPeers:
- Host: peer0.org2.example.com
Port: 7051

# MSPDir is the filesystem path which contains the MSP configuration.
MSPDir: msp
- &ExampleCom
Name: ExampleCom
ID: example.com
MSPDir: ./ordererOrganizations/example.com/msp

# AdminPrincipal dictates the type of principal used for an
# organization's Admins policy. Today, only the values of Role.ADMIN and
# Role.MEMBER are accepted, which indicates a principal of role type
# ADMIN and role type MEMBER respectively.
AdminPrincipal: Role.ADMIN
- &Org1ExampleCom
Name: Org1ExampleCom
ID: org1.example.com
MSPDir: ./peerOrganizations/org1.example.com/msp
AnchorPeers:
- Host: peer0.org1.example.com
Port: 7051

- &Org2ExampleCom
Name: Org2ExampleCom
ID: org2.example.com
MSPDir: ./peerOrganizations/org2.example.com/msp
AnchorPeers:
# AnchorPeers defines the location of peers which can be used for
# cross-org gossip communication. Note, this value is only encoded
# in the genesis block in the Application section context.
- Host: 127.0.0.1
- Host: peer0.org2.example.com
Port: 7051

################################################################################
Expand All @@ -117,7 +155,7 @@ Orderer: &OrdererDefaults
OrdererType: solo

Addresses:
- 127.0.0.1:7050
- orderer.example.com:7050

# Batch Timeout: The amount of time to wait before creating a batch.
BatchTimeout: 2s
Expand Down
6 changes: 3 additions & 3 deletions test/feature/configs/crypto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@
#

OrdererOrgs:
- Name: Orderer
- Name: ExampleCom
Domain: example.com
Specs:
- Hostname: orderer

PeerOrgs:
- Name: Org1
- Name: Org1ExampleCom
Domain: org1.example.com
Template:
Count: 2
Users:
Count: 1

- Name: Org2
- Name: Org2ExampleCom
Domain: org2.example.com
Template:
Count: 2
Expand Down

0 comments on commit 27ed41d

Please sign in to comment.