Skip to content

Commit

Permalink
fix up CI (#148)
Browse files Browse the repository at this point in the history
adding COMPOSE_PROJECT_NAME equals to docker
adding docker container check after test network up
adding docker network check after test network up

Signed-off-by: SamYuan1990 <[email protected]>
  • Loading branch information
SamYuan1990 authored Feb 6, 2021
1 parent d3933be commit fbc2d5c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions test/config20org1andorg2.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Definition of nodes
peer1: &peer1
addr: localhost:7051
addr: peer0.org1.example.com:7051
tls_ca_cert: /config/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem

peer2: &peer2
addr: localhost:9051
addr: peer0.org2.example.com:9051
tls_ca_cert: /config/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlscacerts/tlsca.org2.example.com-cert.pem

orderer1: &orderer1
addr: localhost:7050
addr: orderer.example.com:7050
tls_ca_cert: /config/organizations/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem

# Nodes to interact with
Expand Down
6 changes: 3 additions & 3 deletions test/config20selectendorser.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Definition of nodes
peer1: &peer1
addr: localhost:7051
addr: peer0.org1.example.com:7051
tls_ca_cert: /config/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem

peer2: &peer2
addr: localhost:9051
addr: peer0.org2.example.com:9051
tls_ca_cert: /config/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlscacerts/tlsca.org2.example.com-cert.pem

orderer1: &orderer1
addr: localhost:7050
addr: orderer.example.com:7050
tls_ca_cert: /config/organizations/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem

# Nodes to interact with
Expand Down
8 changes: 7 additions & 1 deletion test/integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ set -ex

DIR=$PWD
docker build -t tape:latest .
network=docker_test
export COMPOSE_PROJECT_NAME=docker

case $1 in
1_4)
unset COMPOSE_PROJECT_NAME
# sadly, bootstrap.sh from release-1.4 still pulls binaries from Nexus, which is not available anymore
curl -vsS https://raw.githubusercontent.com/hyperledger/fabric/release-2.2/scripts/bootstrap.sh | bash
cd ./fabric-samples/
Expand All @@ -19,6 +22,7 @@ case $1 in
cp -r crypto-config "$DIR"

CONFIG_FILE=/config/test/config14org1andorg2.yaml
network=host
;;
2_2)
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.2 1.4.9
Expand Down Expand Up @@ -77,4 +81,6 @@ case $1 in
esac

cd "$DIR"
docker run -e TAPE_LOGLEVEL=debug --network host -v $PWD:/config tape tape -c $CONFIG_FILE -n 500
docker ps -a
docker network ls
docker run -e TAPE_LOGLEVEL=debug --network $network -v $PWD:/config tape tape -c $CONFIG_FILE -n 500

0 comments on commit fbc2d5c

Please sign in to comment.