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,7 +18,7 @@ steps:
displayName: Vendor DigiBank Dependencies displayName: Vendor DigiBank Dependencies
- script: | - 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/org1.example.com/connection-org1.yaml" "../commercial-paper/organization/digibank/gateway/"
@ -27,7 +27,7 @@ steps:
displayName: Start Fabric displayName: Start Fabric
- script: | - script: |
source <(./magnetocorp.sh) 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 peer lifecycle chaincode install cp.tar.gz
export PACKAGE_ID=$(peer lifecycle chaincode queryinstalled --output json | jq -r '.installed_chaincodes[0].package_id') export PACKAGE_ID=$(peer lifecycle chaincode queryinstalled --output json | jq -r '.installed_chaincodes[0].package_id')
@ -47,7 +47,7 @@ steps:
displayName: Setup Commercial Paper Contract displayName: Setup Commercial Paper Contract
- script: | - script: |
source <(./digibank.sh) 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 peer lifecycle chaincode install cp.tar.gz
export PACKAGE_ID=$(peer lifecycle chaincode queryinstalled --output json | jq -r '.installed_chaincodes[0].package_id') export PACKAGE_ID=$(peer lifecycle chaincode queryinstalled --output json | jq -r '.installed_chaincodes[0].package_id')
@ -80,7 +80,7 @@ steps:
displayName: Install Magnetocorp Application displayName: Install Magnetocorp Application
- script: | - script: |
set -ex set -ex
node addToWallet.js node enrollUser.js
node issue.js node issue.js
workingDirectory: commercial-paper/organization/magnetocorp/application workingDirectory: commercial-paper/organization/magnetocorp/application
displayName: MagnetoCorp Issue Paper displayName: MagnetoCorp Issue Paper
@ -90,7 +90,7 @@ steps:
displayName: Install DigiBank Application displayName: Install DigiBank Application
- script: | - script: |
set -ex set -ex
node addToWallet.js node enrollUser.js
node buy.js node buy.js
node redeem.js node redeem.js
workingDirectory: commercial-paper/organization/digibank/application workingDirectory: commercial-paper/organization/digibank/application

View file

@ -13,7 +13,7 @@ steps:
displayName: Build MagnetoCorp Java Contract displayName: Build MagnetoCorp Java Contract
- script: | - 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/org1.example.com/connection-org1.yaml" "../commercial-paper/organization/digibank/gateway/"
@ -75,7 +75,7 @@ steps:
displayName: Install MagnetoCorp Application displayName: Install MagnetoCorp Application
- script: | - script: |
set -ex set -ex
node addToWallet.js node enrollUser.js
node issue.js node issue.js
workingDirectory: commercial-paper/organization/magnetocorp/application workingDirectory: commercial-paper/organization/magnetocorp/application
displayName: MagnetoCorp Issue Paper displayName: MagnetoCorp Issue Paper
@ -85,7 +85,7 @@ steps:
displayName: Install DigiBank Application displayName: Install DigiBank Application
- script: | - script: |
set -ex set -ex
node addToWallet.js node enrollUser.js
node buy.js node buy.js
node redeem.js node redeem.js
workingDirectory: commercial-paper/organization/digibank/application workingDirectory: commercial-paper/organization/digibank/application

View file

@ -4,7 +4,7 @@
steps: steps:
- script: | - 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/org1.example.com/connection-org1.yaml" "../commercial-paper/organization/digibank/gateway/"
@ -65,7 +65,7 @@ steps:
displayName: Install MagnetoCorp Application displayName: Install MagnetoCorp Application
- script: | - script: |
set -ex set -ex
node addToWallet.js node enrollUser.js
node issue.js node issue.js
workingDirectory: commercial-paper/organization/magnetocorp/application workingDirectory: commercial-paper/organization/magnetocorp/application
displayName: MagnetoCorp Issue Paper displayName: MagnetoCorp Issue Paper
@ -75,7 +75,7 @@ steps:
displayName: Install DigiBank Application displayName: Install DigiBank Application
- script: | - script: |
set -ex set -ex
node addToWallet.js node enrollUser.js
node buy.js node buy.js
node redeem.js node redeem.js
workingDirectory: commercial-paper/organization/digibank/application workingDirectory: commercial-paper/organization/digibank/application