-
Notifications
You must be signed in to change notification settings - Fork 0
/
pte-input.yml
153 lines (140 loc) · 3.79 KB
/
pte-input.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
tls: true
ordererSystemChannel: orderersystemchannel
organizations:
- name: org1
# connection profiles can be either in yaml or in json format
connProfilePath: $PWD/connection-profile-org1.yml
- name: org2
connProfilePath: $PWD/connection-profile-org2.json
createChannel:
# Section below is used to input each custom channel name and path to its channel config transaction
- channelName: testorgschannel1
channelTxPath: $PWD/testorgschannel1.tx
organizations: org1
- channelName: testorgschannel2
channelTxPath: $PWD/testorgschannel2.tx
organizations: org1
# Section below is used to loop through channel base name with number of channels and path where all channel config transactions are located
- channelPrefix: mychannel
numChannels: 10
channelTxPath: $PWD/
organizations: org1
anchorPeerUpdate:
- channelName: testorgschannel1
organizations: org1
anchorPeerUpdateTxPath: $PWD/anchorpeer-org1-testorgschannel1.tx
- channelName: testorgschannel1
organizations: org2
anchorPeerUpdateTxPath: $PWD/anchorpeer-org2-testorgschannel1.tx
- channelPrefix: testorgschannel
numChannels: 10
organizations: org2
anchorPeerUpdateTxPath: $PWD/
joinChannel:
# joins all peers in listed organziations to channel listed
- channelName: testorgschannel1
organizations: org1,org2
# joins all peers in listed organziations to all channels based on channelPrefix and numChannels
- channelPrefix: testorgschannel
numChannels: 10
organizations: org1,org2
installChaincode:
# installs chaincode with specified name on all peers in listed organziations
- name: samplecc
version: v1
path: $PWD/samplecc/go
organizations: org1,org2
language: golang
metadataPath: $PWD/txt.json
- name: samplejs
version: v1
path: $PWD/samplejs
organizations: org1,org2
language: node
metadataPath: $PWD/txt.json
instantiateChaincode:
- channelName: testorgschannel1
name: samplecc
version: v1
args: "1,2,3,4"
organizations: org1
endorsementPolicy: 2of(org1,org2)
collectionPath: $PWD/txt.json
- channelName: testorgschannel1
name: samplejs
version: v1
args: "1,2,3,4"
organizations: org1
endorsementPolicy: 2of(org1,org2)
collectionPath: $PWD/txt.json
- channelPrefix: testorgschannel
numChannels: 10
name: samplejs
version: v1
args: "1,2,3,4"
organizations: org1
endorsementPolicy: 2of(org1,org2)
collectionPath: $PWD/txt.json
upgradeChaincode:
- channelName: testorgschannel1
name: samplecc
version: v2
args: "1,2,3,4"
organizations: org1
endorsementPolicy: 2of(org1,org2)
collectionPath: $PWD/txt.json
- channelPrefix: testorgschannel
numChannels: 10
name: samplejs
version: v2
args: "1,2,3,4"
organizations: org1
endorsementPolicy: 2of(org1,org2)
collectionPath: $PWD/txt.json
invokes:
- channelName: testorgschannel1
name: samplecc
targetPeers: OrgAnchor
nProcPerOrg: 2
nRequest: 1000
runDur: 0
organizations: org1,org2
txnOpt:
- mode: constant
options:
constFreq: 0
devFreq: 0
queryCheck: 100
eventOpt:
type: FilteredBlock
listener: Block
timeout: 240000
ccOpt:
ccType: ccchecker
keyStart: 0
payLoadMin: 1024
payLoadMax: 2048
discoveryOpt:
localHost: true
initFreq: 30000
args: "put,a1,1"
queries:
- channelName: testorgschannel1
name: samplecc
targetPeers: OrgAnchor
nProcPerOrg: 2
nRequest: 1000
runDur: 0
organizations: org1,org2
ccOpt:
ccType: ccchecker
keyStart: 0
txnOpt:
- mode: constant
options:
constFreq: 0
devFreq: 0
discoveryOpt:
localHost: true
initFreq: 30000
args: "get,a1"