Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement integration tests #61

Merged
merged 27 commits into from
Apr 2, 2020
Merged

Implement integration tests #61

merged 27 commits into from
Apr 2, 2020

Conversation

orkunkl
Copy link
Contributor

@orkunkl orkunkl commented Mar 27, 2020

Related to iov-one/weave#1183
The integration test runs the tests using a live blockchain and compares the results to the saved ones. This test cannot be run on every release or build since the data in the chain will change constantly. We can run a testing chain that contains fairly constant data and test it against that. But I think this PR is done for now. @davepuchyr can you take a look at it tests and tell me if we need more testing on any handler.

This PR is quite big because I fixed code on the way.

@orkunkl orkunkl marked this pull request as ready for review March 27, 2020 15:15
@orkunkl
Copy link
Contributor Author

orkunkl commented Mar 30, 2020

Looks like some handlers need fine-tuning with parameter formats.

Things to discuss:

  • what should be the format of offset (integer, hex)?

Copy link

@fdymylja fdymylja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Code-wise

@orkunkl orkunkl merged commit f5c7a3a into master Apr 2, 2020
orkunkl added a commit that referenced this pull request Apr 3, 2020
* Implement list msgfee API; Implement ABCIPrefixQuery (#50)

* Implement ABCIPrefixQuery

* Implement msgfee api

* Generate swagger docs

* Implement ABCIPrefixQuery

* Implement msgfee api

* Generate swagger docs

* Fix test

* Improve docs

* Apply review recommendations

* Organize readme (#52)

* Add dockerize swagger docs generation (#53)

* Implement nonce api (#51)

* Implement get nonce with address API

* Implement get nonce with pubkey  API

* Apply review recommendations

* Implement ABCIKeyQueryIter (#58)

* Return multiple username on /username/owner (#59)

* Implement integration tests (#61)

* Prepare integration test code

* Add travis script; Edit readme

* Multisig contract it

* Fix multisig/contracts api; add it tests for the api

* Test EscrowEscrows handler

* Move testing tools to bnsapitest

* Fix escrow escrows test and handler

* Add ExtractOffsetFromParam func

* Add todo

* Refactor bns client and fix tests

* Delete hard coded testnet url

* Import dec and enc functions from bnscli

* Add new tests

* Implement ID tests

* Run go mod tidy

* Fix client

* Fix offset logic and queries

* Update docs

* Fix account owner test

* Implement tx submit endpoint (#54)

* Delete sub directories under handlers and move all to root (#62)

* Add username/resolve; delete static tendermint ip

* AccountResolveHandler rename; add endpoints to default handler

* Sync weave 0.21.x with master

* Downgrade tendermint and weave
@orkunkl orkunkl deleted the integration-test branch April 13, 2020 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants