Skip to content
convector-test-private-data
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
packages/product-cc
.convector
.gitignore
LICENSE
README.md
collections.json
lerna-debug.log
lerna.json
org1.product.config.json
org2.product.config.json
package-lock.json
package.json
tsconfig.json
update-paths.js

README.md

Private data Convector tests

Example based on fabric's private data marbles

Run the end-2-end test:

npm run env:restart
npm run cc:start -- product
npm run test:e2e

Test it with Hurley:

hurl new
hurl install marp node -P ./chaincode-product --collections-config ./collections.json
export MARBLE=$(echo -n "{\"name\":\"marble1\",\"color\":\"blue\",\"size\":35,\"owner\":\"tom\",\"price\":99}" | base64)
hurl invoke marp product_initMarble -t "{\"marble\":\"$MARBLE\"}"

hurl invoke marp product_readMarble "marble1"
hurl invoke marp product_readMarblePrivateDetails "marble1"
You can’t perform that action at this time.