Skip to content

Commit a3e5533

Browse files
committed
test
Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>
1 parent cdd7bea commit a3e5533

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

.github/workflows/verify-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ jobs:
8080
steps:
8181
- uses: actions/checkout@v5
8282
name: Checkout Fabric Code
83+
- name: Set up Docker
84+
uses: docker/setup-docker-action@v4
85+
with:
86+
version: '28.1.0'
87+
set-host: true
8388
- uses: actions/setup-go@v6
8489
name: Install Go
8590
with:

integration/e2e/e2e_test.go

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"time"
2424

2525
docker "github.com/fsouza/go-dockerclient"
26+
"github.com/hyperledger/fabric-lib-go/common/flogging"
2627
"github.com/hyperledger/fabric-lib-go/healthz"
2728
cb "github.com/hyperledger/fabric-protos-go-apiv2/common"
2829
ab "github.com/hyperledger/fabric-protos-go-apiv2/orderer"
@@ -41,6 +42,8 @@ import (
4142
"google.golang.org/protobuf/proto"
4243
)
4344

45+
var logger = flogging.MustGetLogger("pfipfi")
46+
4447
var _ = Describe("EndToEnd", func() {
4548
var (
4649
testDir string
@@ -295,14 +298,26 @@ var _ = Describe("EndToEnd", func() {
295298
nwo.InitChaincode(network, "testchannel", orderer, chaincode, testPeers...)
296299

297300
By("listing the containers after committing the chaincode definition")
301+
n1 := chaincodeContainerNameFilter(network, chaincode)
302+
n2 := chaincodeContainerNameFilter(network, gopathChaincode)
298303
initialContainerFilter := map[string][]string{
299304
"name": {
300-
chaincodeContainerNameFilter(network, chaincode),
301-
chaincodeContainerNameFilter(network, gopathChaincode),
305+
n1,
306+
n2,
302307
},
303308
}
309+
logger.Warn("n1", n1)
310+
logger.Warn("n2", n2)
311+
312+
containers, err := client.ListContainers(docker.ListContainersOptions{All: true})
313+
Expect(err).NotTo(HaveOccurred())
314+
for _, c := range containers {
315+
cc, err := json.Marshal(c)
316+
Expect(err).NotTo(HaveOccurred())
317+
logger.Warn("n3", cc)
318+
}
304319

305-
containers, err := client.ListContainers(docker.ListContainersOptions{Filters: initialContainerFilter})
320+
containers, err = client.ListContainers(docker.ListContainersOptions{Filters: initialContainerFilter})
306321
Expect(err).NotTo(HaveOccurred())
307322
Expect(containers).To(HaveLen(2))
308323

0 commit comments

Comments
 (0)