Skip to content

Commit

Permalink
fixup! Add test-network sample test
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
  • Loading branch information
mbrandenburger committed Jul 26, 2024
1 parent 713bdd0 commit 4236ad9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
12 changes: 12 additions & 0 deletions samples/deployment/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0

TOP = ../..
include $(TOP)/build.mk

DEPLOYMENT_SAMPLES = test-network

build test clean:
$(foreach DIR, $(DEPLOYMENT_SAMPLES), $(MAKE) -C $(DIR) $@ || exit;)

4 changes: 2 additions & 2 deletions samples/deployment/test-network/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ ercc-ecc-start:
ercc-ecc-stop:
${DOCKER_COMPOSE} down

clobber:
docker compose down
clean:
docker compose down -v
./fabric-samples/test-network/network.sh down || true
rm -rf blockchain-explorer fabric-samples .env
docker system prune --force
Expand Down
6 changes: 4 additions & 2 deletions samples/deployment/test-network/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function cleanup() {
echo "Cleanup"
echo "########################################"

make -C "$FPC_PATH/samples/deployment/test-network" clobber
make -C "$FPC_PATH/samples/deployment/test-network" clean
}

function test_network_setup() {
Expand Down Expand Up @@ -134,7 +134,9 @@ function test_blockchain_explorer() {
cd "$FPC_PATH/samples/deployment/test-network/blockchain-explorer"
docker compose up -d

curl http://localhost:8080/
#curl http://localhost:8080/

docker compose down -v
}

function test_shutdown() {
Expand Down

0 comments on commit 4236ad9

Please sign in to comment.