Comments (12)
Related, I pulled down the latest and the current tests were failing (the did document id was not correct after the create request).
I fixed the test and added travis ci to my fork.
Having CI tests will really help encourage contributions and increate confidence that contributors are not breaking things.
https://travis-ci.org/transmute-industries/sidetree-core/builds/442307014
I'm not a member of this github org yet, but if someone can turn on travis ci for this repo, I'm happy to open a PR with the passing tests and ci changes.
from sidetree.
I'd be interested in adding these tests once some CI system is hooked up.
from sidetree.
@thehenrytsai do we want to have a travis setup or a Visual Studio CI setup for this? Both seems fine to me
from sidetree.
I will have to look into the issue in unit tests further because the same test passes on my end, it would be great if @sylar217 you can see if the unit test passes on your end?
Definitely for having CI setup, just haven't got around to it. Will not grab this issue just yet as I want to close other issues I grabbed first, will come around to this ASAP though, as I agree CI will encourage contribution!
from sidetree.
@thehenrytsai Can I open a pull request that adds Travis CI and runs the current test suite?
from sidetree.
@OR13, yes please! I can setup Travis CI if needed.
from sidetree.
Done.
from sidetree.
I'm not exactly sure what format we want to be using for mocking these clients, but here is one approach:
Happy open a PR or restructure these tests based on feedback.
from sidetree.
Thanks @OR13, I was not able to repro the unit test issue on a separate Windows environment, but just managed to repro on a mac, will debug and provide a fix, then merge in your PR. Then I'll look at the branch for client mocking code.
from sidetree.
Turned out to be test JSON file stored on Windows vs Linux being different which causes the buffer to be different (Windows uses \n\r, Linus uses \n). Will submit a fix.
from sidetree.
Hi @OR13, your pull request on Travis CI is merged, thanks again!
I took a look at your approach for mocking the CAS and blockchain servers and they look fine for the purpose of unit testing. Would be great if you can open a PR.
Regarding the exact response schema, they are already intended to be somewhat chain agnostic, and are defined in the implementation documentation under Blockchain/CAS REST API sections. They are subject to change as we refine the design and implementation, but you can follow that for now.
I've made some comments on your current commits.
from sidetree.
Much more unit tests have been added since then. Also added #212 to boost code coverage to near 100%.
from sidetree.
Related Issues (20)
- Confusing wording for patch "id" properties HOT 2
- Unable to create -and- update a DID until anchoring of each operation? HOT 18
- How to we replace or recover the did if we lost the key or forgot the mnemonic phrase? HOT 6
- Editorial feedback
- Contexts need updated to produce valid JSON-LD DID Documents HOT 5
- API data model should support passing in the "controller" property
- Anchor tags in spec don't work HOT 2
- Run local node with IPFS write error HOT 4
- Update operations commit-reveal chain may lead to an unresolvable DID HOT 5
- Only the Provisional Proof File prunable? HOT 2
- Missing DID READ operation in Sidetree v1.0.0 spec. HOT 1
- Cannot write to IPFS v0.11 HOT 1
- Support ietf-json-patch HOT 3
- Sidetree doesn't allow array for serviceEndpoint property (incompatile with DIDComm) HOT 4
- Spec states "deltaHash" but all test vectors use "delta" HOT 1
- Base64URL needs to be more clearly specified
- Long-Form DID & Short-Form DID Identity ambiguity HOT 6
- Split sidetree implementation into a new repo HOT 1
- Chain-specific guidance (or even parameterization) should be spelled out in a mandatory section of each method's spec
- v1.1 features list HOT 1
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 sidetree.