Skip to content

Commit 5f4b99a

Browse files
committed
[FAB-2503] CLI based End-to-End flow test verification
convert README to rst format Added README - end-to-end.md A CLI based End-to-End flow test. * Peer certificates generated from Behave * orderer bootstrap block and channel configuration transaction using configtxgen tool Configuration: Two organizations (Org0 and Org1) * each organization containing two peers PEER0 & PEER1 - Org0 PEER2 & PEER3 - Org1 An anchor peer from each organization PEER0 and PEER2 * Create a channel myc1 * Join all the peers to the channel myc1 * Install chaincode on peer0/Org0 and peer2/Org1 * Instantiate chaincode on peer2/Org1 * Query on peer0 and Invoke on peer0/Org0 * Install chaincode on peer3/Org1 and Query on peer3/Org1 More details can be obtained from end-to-end.md doc For quick reference , here are the commands to run End-to-End flow from CLI ./network_setup.sh up [channelID] (OR) ./generateCfgTrx.sh [channelID] [CHANNEL_NAME=channelID] docker-compose up -d docker logs -f cli ***channelID is optional, defaults to 'mychannel' [ci skip] Change-Id: I083a60870d248b13f6a6a46cac37a0166d978e8a Signed-off-by: ratnakar <asara.ratnakar@gmail.com> Signed-off-by: bmos299 <barry_moz@yahoo.com> Signed-off-by: ratnakar <asara.ratnakar@gmail.com>
1 parent 2dd7a75 commit 5f4b99a

File tree

44 files changed

+1815
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1815
-0
lines changed

examples/e2e_cli/configtx.yaml

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
---
2+
################################################################################
3+
#
4+
# Profile
5+
#
6+
# - Different configuration profiles may be encoded here to be specified
7+
# as parameters to the configtxgen tool
8+
#
9+
################################################################################
10+
Profiles:
11+
12+
TwoOrgs:
13+
Orderer:
14+
<<: *OrdererDefaults
15+
Organizations:
16+
- *OrdererOrg
17+
Application:
18+
<<: *ApplicationDefaults
19+
Organizations:
20+
- *Org0
21+
- *Org1
22+
23+
################################################################################
24+
#
25+
# Section: Organizations
26+
#
27+
# - This section defines the different organizational identities which will
28+
# be referenced later in the configuration.
29+
#
30+
################################################################################
31+
Organizations:
32+
33+
# SampleOrg defines an MSP using the sampleconfig. It should never be used
34+
# in production but may be used as a template for other definitions
35+
- &OrdererOrg
36+
# DefaultOrg defines the organization which is used in the sampleconfig
37+
# of the fabric.git development environment
38+
Name: OrdererOrg
39+
40+
# ID to load the MSP definition as
41+
ID: OrdererMSP
42+
43+
# MSPDir is the filesystem path which contains the MSP configuration
44+
MSPDir: examples/e2e_cli/crypto/orderer/localMspConfig
45+
46+
# BCCSP (Blockchain crypto provider): Select which crypto implementation or
47+
# library to use
48+
BCCSP:
49+
Default: SW
50+
SW:
51+
Hash: SHA2
52+
Security: 256
53+
# Location of Key Store. If this is unset, a location will
54+
# be chosen using 'MSPDir'/keystore
55+
FileKeyStore:
56+
KeyStore:
57+
58+
- &Org0
59+
# DefaultOrg defines the organization which is used in the sampleconfig
60+
# of the fabric.git development environment
61+
Name: Org0MSP
62+
63+
# ID to load the MSP definition as
64+
ID: Org0MSP
65+
66+
MSPDir: examples/e2e_cli/crypto/peer/peer0/localMspConfig
67+
68+
# BCCSP (Blockchain crypto provider): Select which crypto implementation or
69+
# library to use
70+
BCCSP:
71+
Default: SW
72+
SW:
73+
Hash: SHA2
74+
Security: 256
75+
# Location of Key Store. If this is unset, a location will
76+
# be chosen using 'MSPDir'/keystore
77+
FileKeyStore:
78+
KeyStore:
79+
80+
AnchorPeers:
81+
# AnchorPeers defines the location of peers which can be used
82+
# for cross org gossip communication. Note, this value is only
83+
# encoded in the genesis block in the Application section context
84+
- Host: peer0
85+
Port: 7051
86+
87+
- &Org1
88+
# DefaultOrg defines the organization which is used in the sampleconfig
89+
# of the fabric.git development environment
90+
Name: Org1MSP
91+
92+
# ID to load the MSP definition as
93+
ID: Org1MSP
94+
95+
MSPDir: examples/e2e_cli/crypto/peer/peer2/localMspConfig
96+
97+
# BCCSP (Blockchain crypto provider): Select which crypto implementation or
98+
# library to use
99+
BCCSP:
100+
Default: SW
101+
SW:
102+
Hash: SHA2
103+
Security: 256
104+
# Location of Key Store. If this is unset, a location will
105+
# be chosen using 'MSPDir'/keystore
106+
FileKeyStore:
107+
KeyStore:
108+
109+
AnchorPeers:
110+
# AnchorPeers defines the location of peers which can be used
111+
# for cross org gossip communication. Note, this value is only
112+
# encoded in the genesis block in the Application section context
113+
- Host: peer2
114+
Port: 7051
115+
116+
################################################################################
117+
#
118+
# SECTION: Orderer
119+
#
120+
# - This section defines the values to encode into a config transaction or
121+
# genesis block for orderer related parameters
122+
#
123+
################################################################################
124+
Orderer: &OrdererDefaults
125+
126+
# Orderer Type: The orderer implementation to start
127+
# Available types are "solo" and "kafka"
128+
OrdererType: solo
129+
130+
Addresses:
131+
- orderer:7050
132+
133+
# Batch Timeout: The amount of time to wait before creating a batch
134+
BatchTimeout: 10s
135+
136+
# Batch Size: Controls the number of messages batched into a block
137+
BatchSize:
138+
139+
# Max Message Count: The maximum number of messages to permit in a batch
140+
MaxMessageCount: 10
141+
142+
# Absolute Max Bytes: The absolute maximum number of bytes allowed for
143+
# the serialized messages in a batch.
144+
AbsoluteMaxBytes: 99 MB
145+
146+
# Preferred Max Bytes: The preferred maximum number of bytes allowed for
147+
# the serialized messages in a batch. A message larger than the preferred
148+
# max bytes will result in a batch larger than preferred max bytes.
149+
PreferredMaxBytes: 512 KB
150+
151+
Kafka:
152+
# Brokers: A list of Kafka brokers to which the orderer connects
153+
# NOTE: Use IP:port notation
154+
Brokers:
155+
- 127.0.0.1:9092
156+
157+
# Organizations is the list of orgs which are defined as participants on
158+
# the orderer side of the network
159+
Organizations:
160+
161+
################################################################################
162+
#
163+
# SECTION: Application
164+
#
165+
# - This section defines the values to encode into a config transaction or
166+
# genesis block for application related parameters
167+
#
168+
################################################################################
169+
Application: &ApplicationDefaults
170+
171+
# Organizations is the list of orgs which are defined as participants on
172+
# the application side of the network
173+
Organizations:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIBcjCCARigAwIBAwICA+gwCgYIKoZIzj0EAwIwFjEUMBIGA1UEAwwLb3JkZXJl
3+
ck9yZzAwHhcNMTcwMjIwMTkwNjEwWhcNMTgwMjIwMTkwNjEwWjAWMRQwEgYDVQQD
4+
DAtvcmRlcmVyT3JnMDBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABK8Sv0EA9h06
5+
fmBkUCO+D/b/2INZ2huy+W/HCxSF22c7WGoJbRzQcWtQmW1KqZowUk86RcxVfFqv
6+
jEMFVXzV38SjVjBUMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFCVakuvq
7+
xEcK8pYMf/Hw8hsexRMTMB8GA1UdIwQYMBaAFCVakuvqxEcK8pYMf/Hw8hsexRMT
8+
MAoGCCqGSM49BAMCA0gAMEUCIQCmXgDSRTyxpSk+PXg0FNlYZ4ijTVwKgLkYVhod
9+
zZPfngIgO4y0p3Fs/gNsJYrroKaaVDe955KrPp/O55jYDKAD/oY=
10+
-----END CERTIFICATE-----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIBcjCCARigAwIBAwICA+gwCgYIKoZIzj0EAwIwFjEUMBIGA1UEAwwLb3JkZXJl
3+
ck9yZzAwHhcNMTcwMjIwMTkwNjEwWhcNMTgwMjIwMTkwNjEwWjAWMRQwEgYDVQQD
4+
DAtvcmRlcmVyT3JnMDBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABK8Sv0EA9h06
5+
fmBkUCO+D/b/2INZ2huy+W/HCxSF22c7WGoJbRzQcWtQmW1KqZowUk86RcxVfFqv
6+
jEMFVXzV38SjVjBUMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFCVakuvq
7+
xEcK8pYMf/Hw8hsexRMTMB8GA1UdIwQYMBaAFCVakuvqxEcK8pYMf/Hw8hsexRMT
8+
MAoGCCqGSM49BAMCA0gAMEUCIQCmXgDSRTyxpSk+PXg0FNlYZ4ijTVwKgLkYVhod
9+
zZPfngIgO4y0p3Fs/gNsJYrroKaaVDe955KrPp/O55jYDKAD/oY=
10+
-----END CERTIFICATE-----
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-----BEGIN EC PRIVATE KEY-----
2+
MHcCAQEEIJPtBtNKlilpgVZ5FGUBWB2KH3zBtzkBnkrFMmi6W/80oAoGCCqGSM49
3+
AwEHoUQDQgAEfWHpZ4VacEOA83luJdvLOpKEasBn3O067iPTfFyupQh6cFABIn+u
4+
YASuariSKU3JFWfB1nANwZOsDA9B8BeRUA==
5+
-----END EC PRIVATE KEY-----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIBajCCAQ+gAwIBAwICA+gwCgYIKoZIzj0EAwIwFjEUMBIGA1UEAwwLb3JkZXJl
3+
ck9yZzAwHhcNMTcwMjIwMTkwNjEwWhcNMTgwMjIwMTkwNjEwWjATMREwDwYDVQQD
4+
DAhvcmRlcmVyMDBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABH1h6WeFWnBDgPN5
5+
biXbyzqShGrAZ9ztOu4j03xcrqUIenBQASJ/rmAErmq4kilNyRVnwdZwDcGTrAwP
6+
QfAXkVCjUDBOMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFK01/Qm7YoTpXLXjq18D
7+
+X2pExanMB8GA1UdIwQYMBaAFCVakuvqxEcK8pYMf/Hw8hsexRMTMAoGCCqGSM49
8+
BAMCA0kAMEYCIQDXdRYqrZdTAM6F2JBl/eN3nIHoBa7N3gIQDqdUAris8wIhAP6i
9+
f0CgyBN4nWmw2mT+XtxaB0xxWrhYj/j4agiuQzrd
10+
-----END CERTIFICATE-----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIBbDCCARKgAwIBAwICA+gwCgYIKoZIzj0EAwIwEzERMA8GA1UEAwwIcGVlck9y
3+
ZzAwHhcNMTcwMjIwMTkwNjEwWhcNMTgwMjIwMTkwNjEwWjATMREwDwYDVQQDDAhw
4+
ZWVyT3JnMDBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABKJfDc/CcaiHRipTG2AB
5+
K5fA0LO9SOlbtC9bZcjLo/xsL157p+3QB3UVF3gt7nkwgMs/ul3FhSEFTk2EVNlF
6+
1QCjVjBUMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFFQzuQR1RZP/Qn/B
7+
NDtGSa8n4eN/MB8GA1UdIwQYMBaAFFQzuQR1RZP/Qn/BNDtGSa8n4eN/MAoGCCqG
8+
SM49BAMCA0gAMEUCIAuG+/Fy3x9JXAD1/rFsu3ZpCKbXiXZLGF7P6Gma8is5AiEA
9+
pSQpRcdukxe4zvcfRmNBjMbNLWCoWlHSQA2jD678QGE=
10+
-----END CERTIFICATE-----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIBbDCCARKgAwIBAwICA+gwCgYIKoZIzj0EAwIwEzERMA8GA1UEAwwIcGVlck9y
3+
ZzEwHhcNMTcwMjIwMTkwNjEwWhcNMTgwMjIwMTkwNjEwWjATMREwDwYDVQQDDAhw
4+
ZWVyT3JnMTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJ2S+UvyFgFZYL6qcrKo
5+
zy72Nkc/RQVzg1VfwC3X7QcnHEVBuCzba1nxdDVE8XPnhmKBWLKh0adn6GKUZpyf
6+
mbKjVjBUMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFAQlMVsXlKGMEWPf
7+
KMMM6QVASnlPMB8GA1UdIwQYMBaAFAQlMVsXlKGMEWPfKMMM6QVASnlPMAoGCCqG
8+
SM49BAMCA0gAMEUCIHr4AD6Xx3R6zFCsveIMnWao9Us88/0uGHoT4ELmMhA1AiEA
9+
yzfXU5qHp3xBJ1BrKOGi71UmQZVwWfO26INhxcfpCAg=
10+
-----END CERTIFICATE-----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIBbDCCARKgAwIBAwICA+gwCgYIKoZIzj0EAwIwEzERMA8GA1UEAwwIcGVlck9y
3+
ZzIwHhcNMTcwMjIwMTkwNjExWhcNMTgwMjIwMTkwNjExWjATMREwDwYDVQQDDAhw
4+
ZWVyT3JnMjBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABH3IweQK1AJdcV3FF27a
5+
gNKhy13Nz2OguzsmUbW85/7pReenAWzs89rEApHXoJqUtNzdZfaLkcq32E1Ilk3N
6+
oN2jVjBUMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFEhOilIyGA53r9Zo
7+
O5GQP0RSZcQ1MB8GA1UdIwQYMBaAFEhOilIyGA53r9ZoO5GQP0RSZcQ1MAoGCCqG
8+
SM49BAMCA0gAMEUCIQD+/5z68ewJarixMgYrg/MwyTMwX7ikCaCgU5TN2MU1PQIg
9+
Qe+klrq6COxsmrctClV64Wj4zhGTOhaZG1yN24OXukQ=
10+
-----END CERTIFICATE-----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIBbDCCARKgAwIBAwICA+gwCgYIKoZIzj0EAwIwEzERMA8GA1UEAwwIcGVlck9y
3+
ZzAwHhcNMTcwMjIwMTkwNjEwWhcNMTgwMjIwMTkwNjEwWjATMREwDwYDVQQDDAhw
4+
ZWVyT3JnMDBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABKJfDc/CcaiHRipTG2AB
5+
K5fA0LO9SOlbtC9bZcjLo/xsL157p+3QB3UVF3gt7nkwgMs/ul3FhSEFTk2EVNlF
6+
1QCjVjBUMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFFQzuQR1RZP/Qn/B
7+
NDtGSa8n4eN/MB8GA1UdIwQYMBaAFFQzuQR1RZP/Qn/BNDtGSa8n4eN/MAoGCCqG
8+
SM49BAMCA0gAMEUCIAuG+/Fy3x9JXAD1/rFsu3ZpCKbXiXZLGF7P6Gma8is5AiEA
9+
pSQpRcdukxe4zvcfRmNBjMbNLWCoWlHSQA2jD678QGE=
10+
-----END CERTIFICATE-----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIBbDCCARKgAwIBAwICA+gwCgYIKoZIzj0EAwIwEzERMA8GA1UEAwwIcGVlck9y
3+
ZzEwHhcNMTcwMjIwMTkwNjEwWhcNMTgwMjIwMTkwNjEwWjATMREwDwYDVQQDDAhw
4+
ZWVyT3JnMTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJ2S+UvyFgFZYL6qcrKo
5+
zy72Nkc/RQVzg1VfwC3X7QcnHEVBuCzba1nxdDVE8XPnhmKBWLKh0adn6GKUZpyf
6+
mbKjVjBUMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFAQlMVsXlKGMEWPf
7+
KMMM6QVASnlPMB8GA1UdIwQYMBaAFAQlMVsXlKGMEWPfKMMM6QVASnlPMAoGCCqG
8+
SM49BAMCA0gAMEUCIHr4AD6Xx3R6zFCsveIMnWao9Us88/0uGHoT4ELmMhA1AiEA
9+
yzfXU5qHp3xBJ1BrKOGi71UmQZVwWfO26INhxcfpCAg=
10+
-----END CERTIFICATE-----

0 commit comments

Comments
 (0)