Update tests for commercial paper

Signed-off-by: NIKHIL E GUPTA <negupta@us.ibm.com>
This commit is contained in:
NIKHIL E GUPTA 2020-07-02 15:50:57 -04:00 committed by denyeart
parent a1b7da9b5c
commit df727853c8
3 changed files with 23 additions and 23 deletions

View file

@ -18,16 +18,16 @@ steps:
displayName: Vendor DigiBank Dependencies
- script: |
./network.sh up createChannel -s couchdb -i ${FABRIC_VERSION} # FABRIC_VERSION is set in ci/azure-pipelines.yml
./network.sh up createChannel -ca -s couchdb -i ${FABRIC_VERSION} # FABRIC_VERSION is set in ci/azure-pipelines.yml
# Copy the connection profiles so they are in the correct organizations.
# Copy the connection profiles so they are in the correct organizations.
cp "./organizations/peerOrganizations/org1.example.com/connection-org1.yaml" "../commercial-paper/organization/digibank/gateway/"
cp "./organizations/peerOrganizations/org2.example.com/connection-org2.yaml" "../commercial-paper/organization/magnetocorp/gateway/"
workingDirectory: test-network
displayName: Start Fabric
- script: |
source <(./magnetocorp.sh)
peer lifecycle chaincode package cp.tar.gz --lang java --path ./contract-java --label cp_0
peer lifecycle chaincode package cp.tar.gz --lang golang --path ./contract-go --label cp_0
peer lifecycle chaincode install cp.tar.gz
export PACKAGE_ID=$(peer lifecycle chaincode queryinstalled --output json | jq -r '.installed_chaincodes[0].package_id')
@ -41,13 +41,13 @@ steps:
--sequence 1 \
--tls \
--cafile $ORDERER_CA
peer lifecycle chaincode checkcommitreadiness --channelID mychannel --name papercontract -v 0 --sequence 1
workingDirectory: commercial-paper/organization/magnetocorp
displayName: Setup Commercial Paper Contract
- script: |
source <(./digibank.sh)
peer lifecycle chaincode package cp.tar.gz --lang java --path ./contract-java --label cp_0
peer lifecycle chaincode package cp.tar.gz --lang golang --path ./contract-go --label cp_0
peer lifecycle chaincode install cp.tar.gz
export PACKAGE_ID=$(peer lifecycle chaincode queryinstalled --output json | jq -r '.installed_chaincodes[0].package_id')
@ -61,7 +61,7 @@ steps:
--sequence 1 \
--tls \
--cafile $ORDERER_CA
peer lifecycle chaincode checkcommitreadiness --channelID mychannel --name papercontract -v 0 --sequence 1
peer lifecycle chaincode commit -o localhost:7050 \
@ -70,7 +70,7 @@ steps:
--ordererTLSHostnameOverride orderer.example.com \
--channelID mychannel --name papercontract -v 0 \
--sequence 1 \
--tls --cafile $ORDERER_CA --waitForEvent
--tls --cafile $ORDERER_CA --waitForEvent
workingDirectory: commercial-paper/organization/digibank
displayName: Setup Commercial Paper Contract
@ -80,7 +80,7 @@ steps:
displayName: Install Magnetocorp Application
- script: |
set -ex
node addToWallet.js
node enrollUser.js
node issue.js
workingDirectory: commercial-paper/organization/magnetocorp/application
displayName: MagnetoCorp Issue Paper
@ -90,7 +90,7 @@ steps:
displayName: Install DigiBank Application
- script: |
set -ex
node addToWallet.js
node enrollUser.js
node buy.js
node redeem.js
workingDirectory: commercial-paper/organization/digibank/application

View file

@ -13,9 +13,9 @@ steps:
displayName: Build MagnetoCorp Java Contract
- script: |
./network.sh up createChannel -s couchdb -i ${FABRIC_VERSION} # FABRIC_VERSION is set in ci/azure-pipelines.yml
./network.sh up createChannel -ca -s couchdb -i ${FABRIC_VERSION} # FABRIC_VERSION is set in ci/azure-pipelines.yml
# Copy the connection profiles so they are in the correct organizations.
# Copy the connection profiles so they are in the correct organizations.
cp "./organizations/peerOrganizations/org1.example.com/connection-org1.yaml" "../commercial-paper/organization/digibank/gateway/"
cp "./organizations/peerOrganizations/org2.example.com/connection-org2.yaml" "../commercial-paper/organization/magnetocorp/gateway/"
workingDirectory: test-network
@ -36,7 +36,7 @@ steps:
--sequence 1 \
--tls \
--cafile $ORDERER_CA
peer lifecycle chaincode checkcommitreadiness --channelID mychannel --name papercontract -v 0 --sequence 1
workingDirectory: commercial-paper/organization/magnetocorp
displayName: Setup Commercial Paper Contract
@ -56,7 +56,7 @@ steps:
--sequence 1 \
--tls \
--cafile $ORDERER_CA
peer lifecycle chaincode checkcommitreadiness --channelID mychannel --name papercontract -v 0 --sequence 1
peer lifecycle chaincode commit -o localhost:7050 \
@ -65,7 +65,7 @@ steps:
--ordererTLSHostnameOverride orderer.example.com \
--channelID mychannel --name papercontract -v 0 \
--sequence 1 \
--tls --cafile $ORDERER_CA --waitForEvent
--tls --cafile $ORDERER_CA --waitForEvent
workingDirectory: commercial-paper/organization/digibank
displayName: Setup Commercial Paper Contract
@ -75,7 +75,7 @@ steps:
displayName: Install MagnetoCorp Application
- script: |
set -ex
node addToWallet.js
node enrollUser.js
node issue.js
workingDirectory: commercial-paper/organization/magnetocorp/application
displayName: MagnetoCorp Issue Paper
@ -85,7 +85,7 @@ steps:
displayName: Install DigiBank Application
- script: |
set -ex
node addToWallet.js
node enrollUser.js
node buy.js
node redeem.js
workingDirectory: commercial-paper/organization/digibank/application

View file

@ -4,9 +4,9 @@
steps:
- script: |
./network.sh up createChannel -s couchdb -i ${FABRIC_VERSION} # FABRIC_VERSION is set in ci/azure-pipelines.yml
./network.sh up createChannel -ca -s couchdb -i ${FABRIC_VERSION} # FABRIC_VERSION is set in ci/azure-pipelines.yml
# Copy the connection profiles so they are in the correct organizations.
# Copy the connection profiles so they are in the correct organizations.
cp "./organizations/peerOrganizations/org1.example.com/connection-org1.yaml" "../commercial-paper/organization/digibank/gateway/"
cp "./organizations/peerOrganizations/org2.example.com/connection-org2.yaml" "../commercial-paper/organization/magnetocorp/gateway/"
workingDirectory: test-network
@ -27,7 +27,7 @@ steps:
--sequence 1 \
--tls \
--cafile $ORDERER_CA
peer lifecycle chaincode checkcommitreadiness --channelID mychannel --name papercontract -v 0 --sequence 1
workingDirectory: commercial-paper/organization/magnetocorp
displayName: Setup Commercial Paper Contract
@ -47,7 +47,7 @@ steps:
--sequence 1 \
--tls \
--cafile $ORDERER_CA
peer lifecycle chaincode checkcommitreadiness --channelID mychannel --name papercontract -v 0 --sequence 1
peer lifecycle chaincode commit -o localhost:7050 \
@ -56,7 +56,7 @@ steps:
--ordererTLSHostnameOverride orderer.example.com \
--channelID mychannel --name papercontract -v 0 \
--sequence 1 \
--tls --cafile $ORDERER_CA --waitForEvent
--tls --cafile $ORDERER_CA --waitForEvent
workingDirectory: commercial-paper/organization/digibank
displayName: Setup Commercial Paper Contract
@ -65,7 +65,7 @@ steps:
displayName: Install MagnetoCorp Application
- script: |
set -ex
node addToWallet.js
node enrollUser.js
node issue.js
workingDirectory: commercial-paper/organization/magnetocorp/application
displayName: MagnetoCorp Issue Paper
@ -75,7 +75,7 @@ steps:
displayName: Install DigiBank Application
- script: |
set -ex
node addToWallet.js
node enrollUser.js
node buy.js
node redeem.js
workingDirectory: commercial-paper/organization/digibank/application