This repo consists of acceptance tests that verify the deployment of new hyperledger fabric based permissioned blockchain. To run these tests do following:
- Clone this repo
mkdir -p $HOME/workspace cd $HOME/workspace git clone [email protected]:predix/fabric-acceptance-tests.git
- Edit the file
specs/config/config.js
to specify the correct parameters to run these tests. Most of the parameters specified in the file will work out-of-box for bosh-lite deployment of fabric-release using itsmanifests/fabric.yml
deployment manifest. But if you have changed the deployment manifest or customized it then change thespecs/config/config.js
file accordingly. - Set the
GOPATH
export GOPATH=$HOME/go
- Run following command to get the chaincode that will be deployed by this acceptance test
or
go get github.com/predix/chaincode_example
cd $GOPATH/src mkdir -p github.com/predix git clone https://github.com/predix/chaincode_example
- Git clone hyperledger fabric v0.6.1
cd $GOPATH/src mkdir -p github.com/hyperledger cd github.com/hyperledger git clone https://github.com/hyperledger/fabric git checkout tags/v0.6.1-preview
- Vendor-in fabric v0.6.1 for chaincodes that will be deployed
cd $GOPATH/src/github.com/predix/chaincode_example/chaincode_example01 mkdir -p vendor/github.com/hyperledger/fabric cd vendor/github.com/hyperledger/fabric cp -r $GOPATH/src/github.com/hyperledger/fabric . cd $GOPATH/src/github.com/predix/chaincode_example/authorizable_counter mkdir -p vendor/github.com/hyperledger/fabric cd vendor/github.com/hyperledger/fabric cp -r $GOPATH/src/github.com/hyperledger/fabric .
- Execute following commands
cd $HOME/workspace/fabric-acceptance-tests npm install npm test