Skip to content

Commit

Permalink
[FAB-3805] Add printouts to each CLI test stage
Browse files Browse the repository at this point in the history
A minor patch for consistency's sake (we're currently adding printouts
to some stages only) and for helping with debugging.

Change-Id: Id141b5bb9c5e6fad716f9494629f603d78bc888e
Signed-off-by: Kostas Christidis <kostas@christidis.io>
  • Loading branch information
kchristidis committed May 11, 2017
1 parent f3bb8b7 commit 0780f47
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions examples/e2e_cli/scripts/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,34 +184,43 @@ chaincodeInvoke () {
}

## Create channel
echo "Creating channel..."
createChannel

## Join all the peers to the channel
echo "Having all peers join the channel..."
joinChannel

## Set the anchor peers for each org in the channel
echo "Updating anchor peers for org1..."
updateAnchorPeers 0
echo "Updating anchor peers for org2..."
updateAnchorPeers 2

## Install chaincode on Peer0/Org1 and Peer2/Org2
echo "Installing chaincode on org1/peer0..."
installChaincode 0
echo "Install chaincode on org2/peer2..."
installChaincode 2

#Instantiate chaincode on Peer2/Org2
echo "Instantiating chaincode on Peer2/Org2 ..."
echo "Instantiating chaincode on org2/peer2..."
instantiateChaincode 2

#Query on chaincode on Peer0/Org2
#Query on chaincode on Peer0/Org1
echo "Querying chaincode on org1/peer0..."
chaincodeQuery 0 100

#Invoke on chaincode on Peer0/Org2
echo "send Invoke transaction on Peer0/Org2 ..."
echo "Sending invoke transaction on org2/peer2..."
chaincodeInvoke 0

## Install chaincode on Peer3/Org2
echo "Installing chaincode on org2/peer3..."
installChaincode 3

#Query on chaincode on Peer3/Org2, check if the result is 90
echo "Querying chaincode on org2/peer3..."
chaincodeQuery 3 90

echo
Expand Down

0 comments on commit 0780f47

Please sign in to comment.