Comments (5)
Yes, it's because of MockStub: https://github.com/hyperledger/fabric/blob/release-1.4/core/chaincode/shim/mockstub.go#L290
from cckit.
@vadiminshakov Thanks! I'll use a real network then for such tests.
from cckit.
Hi,
After having noticed the limitations of the mock which is in the Fabric source code, I came across CCKit which offers a mock with more possibilities and especially an advanced testing approach with Ginkgo and Gomega.
But I notice that an essential operation like the simulation of CouchDB requests is not supported. Do you plan to add this feature? How else do you test the operations of your chaincodes that execute CouchDB queries?
For information, this other implementation of the chaincode stub in TypesScript provides support for testing CouchDB requests: https://github.com/wearetheledger/fabric-mock-stub.
from cckit.
Hi, at the moment we don't have plans to add a simulation of CouchDB requests, cause we mostly use encrypted protobuf marshaling to bytes and rich queries can't work with encrypted data. But you can try to do it for the case of JSON data modeling and add pull requests.
from cckit.
Hi,
All right, I understand.
For now, I don't plan to implement the simulation of CouchDB requests either, but it would be a pleasure to submit a PR if I happen to implement it.
from cckit.
Related Issues (20)
- Main function of ERC20 example HOT 2
- ERC20 contract allowance check HOT 2
- ERC20 Contract invokeTransferFrom HOT 2
- router handler error: write: key from field *message.Commodity.XXX_NoUnkeyedLiteral: field type not supported for key extraction HOT 1
- invokeTransferFrom() is problem in erc20 example HOT 4
- Encryption extention can no longer depend on the shim/ext/entities
- Problem while running tests
- hlf-sdk-go: remove from deps or always update that to latest version
- ERC20 instructions mention dep
- when to upgrade fabric v2.x? HOT 1
- Can not run tests (Windows 10, go 1.14.2) HOT 1
- NULL characters appearing in CouchDB when using composite keys HOT 2
- cckit unit test returns "not implemented" HOT 2
- Upgrade to fabric-go-chaincode HOT 1
- Initial Commands HOT 3
- Testing with mock data? HOT 1
- Getting a deprecation warning message while deploying a chaincode
- How to install the Chaincode in Example to Fabric Docker?
- chaincode to chaincode invokes dumps data into state on the wrong moment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cckit.