@@ -26,7 +26,6 @@ import (
2626 docker "github.com/fsouza/go-dockerclient"
2727 "github.com/hyperledger/fabric-lib-go/healthz"
2828 "github.com/hyperledger/fabric-protos-go-apiv2/orderer/etcdraft"
29- "github.com/hyperledger/fabric/integration/channelparticipation"
3029 "github.com/hyperledger/fabric/integration/nwo"
3130 "github.com/hyperledger/fabric/integration/nwo/commands"
3231 "github.com/hyperledger/fabric/integration/nwo/fabricconfig"
@@ -168,13 +167,13 @@ var _ = Describe("EndToEnd", func() {
168167 })
169168 Expect (err ).NotTo (HaveOccurred ())
170169 Eventually (sess ).Should (gexec .Exit (0 ))
171- var channelList channelparticipation .ChannelList
170+ var channelList nwo .ChannelList
172171 err = json .Unmarshal (sess .Out .Contents (), & channelList )
173172 Expect (err ).NotTo (HaveOccurred ())
174- Expect (channelList ).To (Equal (channelparticipation .ChannelList {}))
173+ Expect (channelList ).To (Equal (nwo .ChannelList {}))
175174
176175 By ("setting up the channel" )
177- channelparticipation .JoinOrdererJoinPeersAppChannel (network , "testchannel" , orderer , ordererRunner )
176+ nwo .JoinOrdererJoinPeersAppChannel (network , "testchannel" , orderer , ordererRunner )
178177
179178 By ("listing channels with osnadmin" )
180179 sess , err = network .Osnadmin (commands.ChannelList {
@@ -187,8 +186,8 @@ var _ = Describe("EndToEnd", func() {
187186 Eventually (sess ).Should (gexec .Exit (0 ))
188187 err = json .Unmarshal (sess .Out .Contents (), & channelList )
189188 Expect (err ).NotTo (HaveOccurred ())
190- Expect (channelList ).To (Equal (channelparticipation .ChannelList {
191- Channels : []channelparticipation .ChannelInfoShort {{
189+ Expect (channelList ).To (Equal (nwo .ChannelList {
190+ Channels : []nwo .ChannelInfoShort {{
192191 Name : "testchannel" ,
193192 URL : "/participation/v1/channels/testchannel" ,
194193 }},
@@ -242,7 +241,7 @@ var _ = Describe("EndToEnd", func() {
242241 CheckOrdererStatsdMetrics ("ordererorg_orderer" , metricsReader , 2 * metricsWriteInterval )
243242
244243 By ("setting up another channel from a the same profile" )
245- channelparticipation .JoinOrdererJoinPeersAppChannel (network , "another-testchannel" , orderer , ordererRunner )
244+ nwo .JoinOrdererJoinPeersAppChannel (network , "another-testchannel" , orderer , ordererRunner )
246245
247246 By ("listing channels with osnadmin" )
248247 sess , err = network .Osnadmin (commands.ChannelList {
@@ -258,8 +257,8 @@ var _ = Describe("EndToEnd", func() {
258257 sort .Slice (channelList .Channels , func (i , j int ) bool {
259258 return channelList .Channels [i ].Name < channelList .Channels [j ].Name
260259 })
261- Expect (channelList ).To (Equal (channelparticipation .ChannelList {
262- Channels : []channelparticipation .ChannelInfoShort {
260+ Expect (channelList ).To (Equal (nwo .ChannelList {
261+ Channels : []nwo .ChannelInfoShort {
263262 {
264263 Name : "another-testchannel" ,
265264 URL : "/participation/v1/channels/another-testchannel" ,
@@ -319,10 +318,10 @@ var _ = Describe("EndToEnd", func() {
319318 orderer := network .Orderer ("orderer" )
320319
321320 By ("setting up the channel" )
322- channelparticipation .JoinOrdererJoinPeersAppChannel (network , "testchannel" , orderer , ordererRunner )
321+ nwo .JoinOrdererJoinPeersAppChannel (network , "testchannel" , orderer , ordererRunner )
323322
324- cl := channelparticipation .List (network , orderer )
325- channelparticipation .ChannelListMatcher (cl , []string {"testchannel" })
323+ cl := nwo .List (network , orderer )
324+ nwo .ChannelListMatcher (cl , []string {"testchannel" })
326325
327326 nwo .EnableCapabilities (network , "testchannel" , "Application" , "V2_5" , orderer , network .Peer ("Org1" , "peer0" ), network .Peer ("Org2" , "peer0" ))
328327
@@ -446,18 +445,18 @@ var _ = Describe("EndToEnd", func() {
446445 orderer := network .Orderer ("orderer" )
447446
448447 By ("Create first channel and deploy the chaincode" )
449- channelparticipation .JoinOrdererJoinPeersAppChannel (network , "testchannel" , orderer , ordererRunner )
448+ nwo .JoinOrdererJoinPeersAppChannel (network , "testchannel" , orderer , ordererRunner )
450449
451450 nwo .EnableCapabilities (network , "testchannel" , "Application" , "V2_5" , orderer , network .Peer ("Org1" , "peer0" ), network .Peer ("Org2" , "peer0" ))
452451 nwo .DeployChaincode (network , "testchannel" , orderer , chaincode )
453452 peer := network .Peer ("Org1" , "peer0" )
454453 RunQueryInvokeQuery (network , orderer , peer , "testchannel" )
455454
456455 By ("Create second channel and deploy chaincode" )
457- channelparticipation .JoinOrdererJoinPeersAppChannel (network , "testchannel2" , orderer , ordererRunner )
456+ nwo .JoinOrdererJoinPeersAppChannel (network , "testchannel2" , orderer , ordererRunner )
458457
459- cl := channelparticipation .List (network , orderer )
460- channelparticipation .ChannelListMatcher (cl , []string {"testchannel" , "testchannel2" })
458+ cl := nwo .List (network , orderer )
459+ nwo .ChannelListMatcher (cl , []string {"testchannel" , "testchannel2" })
461460
462461 nwo .EnableCapabilities (network , "testchannel2" , "Application" , "V2_5" , orderer , network .Peer ("Org1" , "peer0" ), network .Peer ("Org2" , "peer0" ))
463462 peers := network .PeersWithChannel ("testchannel2" )
@@ -532,7 +531,7 @@ var _ = Describe("EndToEnd", func() {
532531
533532 It ("creates and updates channel" , func () {
534533 orderer := network .Orderer ("orderer" )
535- channelparticipation .JoinOrdererJoinPeersAppChannel (network , "testchannel" , orderer , ordererRunner )
534+ nwo .JoinOrdererJoinPeersAppChannel (network , "testchannel" , orderer , ordererRunner )
536535
537536 // The below call waits for the config update to commit on the peer, so
538537 // it will fail if the orderer addresses are wrong.
@@ -568,7 +567,7 @@ var _ = Describe("EndToEnd", func() {
568567 orderer := network .Orderer ("orderer" )
569568
570569 By ("creating and joining channels" )
571- channelparticipation .JoinOrdererJoinPeersAppChannel (network , "testchannel" , orderer , ordererRunner )
570+ nwo .JoinOrdererJoinPeersAppChannel (network , "testchannel" , orderer , ordererRunner )
572571
573572 By ("enabling new lifecycle capabilities" )
574573 nwo .EnableCapabilities (network , "testchannel" , "Application" , "V2_5" , orderer , network .Peer ("Org1" , "peer0" ), network .Peer ("Org2" , "peer0" ))
@@ -658,7 +657,7 @@ var _ = Describe("EndToEnd", func() {
658657 orderer := network .Orderer ("orderer" )
659658
660659 By ("creating and joining channels" )
661- channelparticipation .JoinOrdererJoinPeersAppChannel (network , "testchannel" , orderer , ordererRunner )
660+ nwo .JoinOrdererJoinPeersAppChannel (network , "testchannel" , orderer , ordererRunner )
662661
663662 By ("enabling new lifecycle capabilities" )
664663 nwo .EnableCapabilities (network , "testchannel" , "Application" , "V2_5" , orderer , network .Peer ("Org1" , "peer0" ), network .Peer ("Org2" , "peer0" ))
0 commit comments