mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 17:45:10 +00:00
Update tests for commercial paper
Signed-off-by: NIKHIL E GUPTA <negupta@us.ibm.com>
This commit is contained in:
parent
a1b7da9b5c
commit
df727853c8
3 changed files with 23 additions and 23 deletions
|
|
@ -18,7 +18,7 @@ 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.
|
||||
cp "./organizations/peerOrganizations/org1.example.com/connection-org1.yaml" "../commercial-paper/organization/digibank/gateway/"
|
||||
|
|
@ -27,7 +27,7 @@ steps:
|
|||
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')
|
||||
|
|
@ -47,7 +47,7 @@ steps:
|
|||
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')
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ 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.
|
||||
cp "./organizations/peerOrganizations/org1.example.com/connection-org1.yaml" "../commercial-paper/organization/digibank/gateway/"
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
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.
|
||||
cp "./organizations/peerOrganizations/org1.example.com/connection-org1.yaml" "../commercial-paper/organization/digibank/gateway/"
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue