Commit Graph

1423 Commits

Author SHA1 Message Date
Jonathan Gimeno
49597b19ec
module: pass route by value (#6404)
* use instance

* add some comments

* Update types/router.go

* rename Nil to Empty

* run make mocks

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-06-11 15:37:23 +00:00
Jonathan Gimeno
79c308ae4a
Concept PR simplify Module (#6231)
* add test of alternative impl

* simplify query route too

* change name querier

* simplify register routes

* revert change

* add route

* add router

* first step refactor

* refactor

* update documentation

* update

* add format

* simplify appmodule

* update changelog

* rename vars

* remove interface

* Update CHANGELOG.md

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-10 18:48:16 +00:00
Aaron Craelius
4e0a475751
Make client.Context implement gRPC ClientConn (#6342)
* Add QueryConn to client.Context

* Add integration test

* imports

* spelling

* Make client.Context implement grpc ClientConn

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-06-08 13:41:30 +00:00
Aaron Craelius
43947ca2ef
Add RegisterQueryService to AppModule (#6336)
* Add RegisterQueryService to AppModule

* Update CHANGELOG.md

* Update CHANGELOG.md

* Wire up BaseApp, fix tests

* Add mock test

* add missing file

* Update types/module/module.go

* Update CHANGELOG.md

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-06-06 07:59:57 +00:00
Aaron Craelius
fed0c2317d
Change GetQueryCmd to take client.Context (#6326)
* Change GetQueryCmd to take a client.Context

* Update CHANGELOG

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-06-03 20:15:11 +00:00
SaReN
39f53ac22f
client: rename CliContext to Context (#6290)
* Refactor CliContext as Context

* Fix lint issues

* Fix goimports

* Fix gov tests

* Resolved ci-lint issues

* Add changelog

* Rename cliCtx to clientCtx

* Fix mocks and routes

* Add changelog

* Update changelog

* Apply suggestions from code review

Co-authored-by: Alessio Treglia <alessio@tendermint.com>

* merge client/rpc/ro{ot,utes}.go

* Update docs

* client/rpc: remove redundant client/rpc.RegisterRPCRoutes

* regenerate mocks

* Update ADRs

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-06-01 12:46:03 +00:00
Alexander Bezobchuk
f8bad078b7
Bump Tendermint version (#6300) 2020-05-28 14:46:28 +00:00
Aaron Craelius
850419fffd
Tx CLI proto module interface (#5989)
* WIP

* WIP

* WIP on removing x/auth dependency from client/tx

* Revert unneeded changes

* Simplify cli tx UX

* Wire up bank tx REST routes

* Fix assignment issue

* Wire up bank NewSendTxCmd

* fix lint

* revert file

* revert file

* fix simcli

* Refactor AccountRetriever

* Fix build

* Fix build

* Fix build

* Fix integration tests

* Fix tests

* Docs, linting

* Linting

* WIP on all modules

* Implement other module new tx cmd's

* Fix cmd's

* Refactor existing GetTxCmd

* Fix cmd

* Removing deprecated code

* Update ADR 020 & CHANGELOG

* Lint

* Lint

* Lint

* Lint

* Lint

* Lint

* Lint

* Fix client/tx tests

* Fix mocks

* Fix tests

* Lint fixes

* REST tx migration

* Wire up REST

* Linting

* Update CHANGELOG, docs

* Fix tests

* lint

* Address review feedback

* Update CHANGELOG.md

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* Update CHANGELOG.md

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* group vars

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-21 21:29:34 +00:00
Aaron Craelius
70767c87c4
Update x/gov to use Any (#6147)
* Update x/gov to use Any

* Fixes

* Remove MsgSubmitProposalLegacy

* Update CHANGELOG.md

* Add RegisterInterfaces for x/distribution, x/params, & x/upgrade

* Fix query JSON issue

* Fix gov tests

* Revert custom Any Equals

* Re-remove types

* Rename receivers

* Fix imports in gov

* Sort imports

* Make amino JSON signing work with Any

* Run proto-gen

* Create full amino wrapper

* Fix errors

* Fixes

* Fix tests

* Test fixes

* Fix tests

* Linting

* Update ADR 019 and CHANGELOG

* Updated ADR 019

* Extract Marshal/UnmarshalProposal

* fix error

* lint

* linting

* linting

* Update client/keys/parse.go

Co-authored-by: Marko <marbar3778@yahoo.com>

* linting

* Update docs/architecture/adr-019-protobuf-state-encoding.md

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* Update docs/architecture/adr-019-protobuf-state-encoding.md

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* Address review feedback

* Add godocs

* Fix errors

* fix errors

* revert file

* Address review feedback

* Address review feedback

* Stacktrace debug flag

* Fix tests

* Address review feedback

Co-authored-by: sahith-narahari <sahithnarahari@gmail.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-19 20:17:29 +00:00
atheeshp
dd148fcd7a
gov: port integration tests (#6120) 2020-05-10 16:25:27 +02:00
SaReN
c211488b0b
x/auth: cli tests (#6152)
* Add cli tests for auth

* Format imports

* Fix auth tests

* Remove keys in validate sign call

* Eliminate defer in tests

* Format imports

* Test commit
2020-05-05 21:16:37 -04:00
Aaron Craelius
386217209d
Merge PR #6076: Proto Any init + evidence 2020-05-05 10:28:20 -04:00
SaReN
7e72e5b8a6
Add cli test for slashing (#6102)
Reference: #5951
2020-05-05 15:51:35 +02:00
Alessio Treglia
2414e5bdd4
x/auth: turn sign --validate-sigantures into a standalone command (#6108)
--validate-signatures should not be a flag of the sign command
as the operation performed (transaction signatures verification)
is logically distinct.

cli_test is and has always been an horrible name for package
directory as it's very much Go anti-idiomatic - _test is the
suffix used by test packages, not directories. Plus, CLI test
cases can and should live alongside other testcases that don't
require binaries to be built beforehand. Thus:

x/module/client/cli_test/*.go -> x/module/client/cli/

Test files that require sim{cli,d} shall be tagged with // +build cli_test

With regard to cli test auxiliary functions, they should live in:

x/module/client/testutil/

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-04 13:55:16 +00:00
Marko
218ec99508
various linter fixes (#6106)
x/staking: Fix all linter warnings.

Fixed warnings across base packages.

New linters:
- unparam
- nolintlint

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-05-02 21:26:59 +02:00
SaReN
f92f6c9dd1
Add CLI tests for simd, distribution (#6095)
* Added cli integration base setup

* Added cmd to simapp

* Fixed ci-lint issues

* Fixed ci-lint issues

* Addressed changes in Makefile

* Updated simd to latest

* Removed testnet and replay commands

* Modified tx command for simcli

* Did code cleanup

* Removed duplication in Makefile

* Refactored cli_test

* Added build-sim to Makefile

* Added test-cli to circleci

* Added tests for staking txns

* Addressed format issues

* refctored tests code

* Added tests for send, staking

* Removed test_hepers file

* Moved test_cover to contrib

* Added codec in fixtures

* Migrated tests to respective modules

* Exported helper methods

* Moved helpers to bank

* Added codec to fixtures

* Migrated tests to modules

* Removed auth helpers from staking

* Did minor code cleanup

* Added test-cli to Makefile

* Updated github actions

* Did code refactor

* Fixed github actions for cli-test

* Added tests for recover keys and fee deduction

* Did minor code cleanup

* Added build flag to cli_tests

* Moved cli_test to tests

* Modified path in Makefile

* Updated codec std in fixtures

* Added doc for cli tests

* Remove ibc genesis validation

* Fix issue number

* Added missing imports

* Add tests for distribution and simd

* Modified naming for test functions

* Added test for withdraw rewards

* Modified test function names

* Fixed import format

* Migrated helpers to package cli

* Fixed github test actions

* Fixed test coverage in actions

* Added build sim to actions

* Apply Alessio patch for tests

* Removed unused imports

* Added init for go tests

* try fix tests

* goimports what wasn't goimports'd

* try fix ci

* add relevant tags to integration tests

* run integration tests separately

* use go build -o flag and let compiler gemerate the binary with the
right extension for the HOST platform

rename cli-test to test-integration

* update ci

* rename

Co-authored-by: atheesh <atheesh1>
Co-authored-by: kaustubhkapatral <54210167+kaustubhkapatral@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: anilCSE <anil@vitwit.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-05-01 20:16:17 +00:00
Alessio Treglia
2879c0702c
x/ibc: fix missing return statement (#6099)
* enable the wsl linter

Fix various wsl-related warnings.

x/ibc/04-channel/keeper/handshake.go: fix missing return statement in ChanOpenTry().

* goimports -w files

* remove unknown linter references

* run make format

* Revert "run make format"

This reverts commit f810b62b9e4993f08506663d4e5f2ec2228a9863.

* run make format
2020-04-29 22:36:34 -04:00
SaReN
b854c485e4
Add CLI tests for fee deduction (#6088)
* Added cli integration base setup

* Added cmd to simapp

* Fixed ci-lint issues

* Fixed ci-lint issues

* Addressed changes in Makefile

* Updated simd to latest

* Removed testnet and replay commands

* Modified tx command for simcli

* Did code cleanup

* Removed duplication in Makefile

* Refactored cli_test

* Added build-sim to Makefile

* Added test-cli to circleci

* Added tests for staking txns

* Addressed format issues

* refctored tests code

* Added tests for send, staking

* Removed test_hepers file

* Moved test_cover to contrib

* Added codec in fixtures

* Migrated tests to respective modules

* Exported helper methods

* Moved helpers to bank

* Added codec to fixtures

* Migrated tests to modules

* Removed auth helpers from staking

* Did minor code cleanup

* Added test-cli to Makefile

* Updated github actions

* Did code refactor

* Fixed github actions for cli-test

* Added tests for recover keys and fee deduction

* Did minor code cleanup

* Added build flag to cli_tests

* Moved cli_test to tests

* Modified path in Makefile

* Updated codec std in fixtures

* Added doc for cli tests

* Remove ibc genesis validation

* Fix issue number

* Added missing imports

* Modified naming for test functions

Co-authored-by: atheesh <atheesh1>
Co-authored-by: kaustubhkapatral <54210167+kaustubhkapatral@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: anilCSE <anil@vitwit.com>
2020-04-29 20:46:10 +00:00
SaReN
3b71198b25
Merge PR #6033: Add setup for cli_test 2020-04-29 11:52:30 -04:00
Alexander Bezobchuk
72a2dae3db
Bump Tendermint v0.33.4 (#6055)
* Bump go.{mod,sum}

* Update APIs from Tendermint

* Add max clock drift to client state

* Test updates

* Update APIs from Tendermint

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-04-22 19:21:48 +00:00
Alessio Treglia
22f377a858
regenerate mocks, don't format autogenered files on make format (#5848) 2020-03-20 18:14:53 +00:00
Alessio Treglia
1d0967c32a
run go mod tidy && make format (#5847) 2020-03-20 17:14:14 +00:00
Alessio Treglia
3349c971ae
increase types/module coverage up to 80% (#5740)
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-03-03 13:38:46 +00:00
Alessio Treglia
5f14dc2e42
Increase coverage across the store package (#5727) 2020-02-28 23:05:28 +00:00
Alexander Bezobchuk
c1991e31bd Merge PR #5527: Bump Tendermint Version to v0.33.0
* Bump Tendermint version to v0.33.0

* Deprecate old cmn package with new packages

* Update update DB APIs

* More DB updates

* Bump IAVL to v0.13.0

* Handle error returned by iavl.NewMutableTree

* Fix some IAVL stuffs

* Update IAVL

* More updates

* Passing tests

* Fix unit tests

Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com>
2020-01-16 13:46:51 -08:00
Marko
9f3789157e Merge PR #5192: golangcI-lint updates & set static version to 1.19 2019-10-14 11:43:19 -04:00
Marko
01d8a230b2 Merge PR #5068: Add linter Nakedret 2019-09-19 09:21:38 -04:00
Alexander Bezobchuk
4b354a782b
Merge PR #4840: Various Updates for Gaia 2019-08-03 09:56:15 -04:00
Federico Kunze
e85a734a57 update x/genaccounts to match module spec (#4759) 2019-07-22 16:26:42 +01:00
Marko
b5cd01d1a8 Merge PR #4651: Remove debugdb & colors 2019-07-01 09:53:16 -04:00
Marko
b2f8c58ec4 Merge PR #4608: More linters - Gosec, staticcheck 2019-06-26 13:30:36 -07:00
Alessio Treglia
7b5e6cee07
Remove client/input.{Buffer,Override}Stdin() functions (#4602)
Cobra's new release made them redundant.

Thanks: Juan Leni <juan.leni@zondax.ch> for the original patch.
2019-06-22 11:24:59 +02:00
Alessio Treglia
1eb7706c28
Separate account getters from client/context (#4579)
Account getters are removed from client context. x/auth has the
queriers necessary for retrieving account information.
These functions should be removed since they are currently
redundant and don't provide any extra value.

Closes: #4543
2019-06-19 14:24:11 +02:00
frog power 4000
5f9c3fdf88 Merge PR #4451: Client and Module Modularization 2019-06-05 19:26:16 -04:00
Alessio Treglia
71d71f2206
Remove gaia (#4347)
Gaia is removed from cosmos-sdk repository.

Few changes were required to make sure no packages depend on gaia subpackages.

CI config is amended accordingly.

Unnecessary targets are removed from Makefile.

Simulations run through a lightweight version of gaia renamed to simapp.

Closes: #4104
2019-05-18 10:42:24 +02:00
Alessio Treglia
e7e3c32204 Merge PR #3553: Code cleanup, take #1
* add a bunch of tests, add DONTCOVER text tag

- Also fix flaky test (closes: #3559). Don't test values
  returned by queries since there's no way to query a
  specific height via REST.

* GetTempDir -> NewTestCaseDir
2019-02-08 22:45:41 +01:00
Juan Leni
b5fdb83830 Merge PR #3517: Increasing test coverage in keys/client package 2019-02-08 12:45:23 -08:00
Alessio Treglia
b63b6254c8 Merge PR #3522: get rid of double negatives: IsNotNegative -> IsAnyNegative 2019-02-06 14:45:15 -08:00
Jack Zampolin
0043912548 Merge PR #3338: Remove unused code and examples 2019-01-24 11:18:45 +01:00
Jack Zampolin
d1e769391a
CLI Test refactor and coverage increase (#3250) 2019-01-09 07:49:38 -08:00
Jack Zampolin
d8fbae677f R4R: Additional gentx verfication (#2971)
* Add check that account is in genesis and contains enough funds to gentx command

* Fix CLI tests and make them parallel

* Update makefile to take advantage of parallel tests

* Add path seperator back in

* Don
't check error on key delete

* Add debuggin printout for debugging remote test failures

* Update cmd/gaia/init/gentx.go

Co-Authored-By: jackzampolin <jack.zampolin@gmail.com>

* Update cmd/gaia/init/gentx.go

Co-Authored-By: jackzampolin <jack.zampolin@gmail.com>

* Change to bondDenom from the stake section in genesis

* Add PENDING.md

* Push changes

* Fix CI failure

* Address PR comments

* Fix broken gov tests

* Address PR comments

* Address PR comments
2018-12-04 10:57:44 +01:00
Alessio Treglia
593921d04d Merge PR #2524: Replace GenTx with StdTx
Rework the process of loading a genesis.json file to load a starting app state and set of initial transactions to process.

* New function to create genesis account from MsgCreateValidator
* Add arg to PrintUnsignedStdTx() to actually operate in offline mode
* New func processStdTxs()
* Remove gen-tx command
* Cleanup, return validators as they need to be written into genesis.json
* Modify gaiad init to allow auto-create of stdTx
* Remove server/testnet.go
* Don't load node_key.json, which might not be available
* Get the txs through DeliverTx
* Add app.slashingKeeper.AddValidators at the end of genesis
* On InitChain(), Signature's account number must be 0
* Add (tentative?) command to generate {node_key,priv_validator}.json files
* Reintroduce gaiad testnet
* Prompt user for passwords
* Update gaia to work with auth.StdTx
* Remove test_utils, NewTestGaiaAppGenState is now deprecated
* Combine --genesis-format and --generate-only
* Improve sign command's --offline flag documentation
* Moniker must be set
* Call app.slashingKeeper.AddValidators() even if len(txs) == 0
* Refactoring, introduce gaiad init --skip-genesis, code cleanup
* Drop unnecessary workaround to make lcd_tests pass
* Reintroduce gentx
* Simple name changes, GenesisState.Txs -> .GenTxs; OWK -> OverwriteKey; OverwriteKeys -> OverwriteKey
2018-10-19 20:00:27 +02:00
Jeremiah Andrews
2378e3431c Fix linter errors 2018-09-03 07:58:57 -07:00
HaoyangLiu
67857d704b IRISHUB-238: change wait 3 second to wait tendermint new block. use MustUnmarshalBinary instead of UnmarshalBinary 2018-08-31 23:20:06 +08:00
Christopher Goes
3d50567034
Merge PR #1783: Slashing, validator set, and governance simulation 2018-08-16 17:36:15 +02:00
Alexander Bezobchuk
a9805794d7 Merge pull request #1856: gen-tx: Support User Given Key Passwords
* Merge pull request #1856: gen-tx: Support User Given Key Passwords

* Fix broken CLI test(s)
2018-08-01 15:15:37 -04:00
ValarDragon
bf8cde1d3a cli: deprecate --name in favor of --from 2018-07-05 17:24:02 -07:00
Ethan Buchman
d388036454 Merge PR #1520: various fixes for test_cli
* various fixes for test_cli
* linting
2018-07-03 06:33:53 +02:00
Ethan Buchman
f78f30c67a update for tm v0.22.0. tmlibs->tendermint/libs 2018-07-02 16:34:06 -04:00
Ethan Buchman
feb3acdbe9 Merge PR #1491: client/lcd: fix tests
* client/lcd: fix tests
* circle: drop test_unit. store artifacts in test_cover
* hack fix in TestUnrevoke
2018-07-01 01:32:52 +02:00
Dev Ojha
ac3adff1e8 Merge PR #1438: Tools: Add errcheck linter
This linter ensures that all errors are checked.
This is disabled in the client directories, since its not needed on
those writes
2018-06-29 00:52:10 +02:00
Dev Ojha
2755c66545 Merge PR #1424: tools: add unconvert linter
unconvert checks for unnecessary type conversions
2018-06-28 18:08:29 +02:00
Dev Ojha
f2a83a07f9 Merge PR #1366: tests: add method to wait for n blocks to pass
Adds a helper method to tests/util.go for waiting for N blocks to
pass. This is useful for situations when you need to wait for
multiple blocks to pass, but don't know the current block number.
In general, this is safer than using "wait for height", since the
block height could have advanced further than expected while the
test was running.

Resolves remaining point in #1283
2018-06-25 23:53:48 +02:00
Dev Ojha
0292a3b4d9 Merge PR #1291: Delete unused tests
* Tweak retry logic on waitForHeight
* Add HTTP retry logic to LCD tests
* Simplify waitForHeight changes
* Update changelog
* Add 'make test_cli_retry', 'make test_unit_retry'
* Run test_cli_retry in CI
* Delete unused tests
2018-06-20 00:29:54 +02:00
Ethan Buchman
059a1659be add comments 2018-06-13 18:33:09 -07:00
Ethan Buchman
ff34cbc8bc gaia/cli_test: remove sleeps 2018-06-13 17:41:01 -07:00
rigelrozanski
5515b60b0a better tooling for cli, couple lsd fixes 2018-05-31 18:46:25 -07:00
rigelrozanski
6f7cabf779 fix tests/process.go lint 2018-05-31 14:59:03 -07:00
Jae Kwon
871574888b Make Execute and GoExecute log better 2018-05-31 14:56:17 -07:00
rigelrozanski
cd689ce2c1 remove experimental bash tests from ci
int

Fix typo

...
2018-05-07 19:12:45 -04:00
rigelrozanski
7e2ac80137 cli testing fix 2018-04-26 14:26:39 -04:00
Ethan Buchman
d1402f4e92 move waitForXxx funcs from lcd to tests.WaitForXxx 2018-04-26 14:26:39 -04:00
rigelrozanski
c80b9674cd stake CLI various fixes, confirmed working 2018-04-18 12:19:35 -04:00
rigelrozanski
59f86b4251 interim borken 2018-04-18 12:19:35 -04:00
rigelrozanski
ebb2faabe0 go-bash working 2018-04-18 12:19:35 -04:00
rigelrozanski
3ab032e1c6 cli testing 2018-04-18 12:19:35 -04:00
rigelrozanski
8ab77e2ab5 started gaia go-bash cli testing 2018-04-18 12:19:35 -04:00
Ethan Buchman
683663f680 fixes post rebase 2018-03-17 23:09:04 +01:00
Fabian Weber
07a1f4dc15 increase timeout for server and add output to console 2018-03-17 22:17:56 +01:00
Matt Bell
fa78893f40 Fixed LCD tests 2018-03-17 22:17:56 +01:00
Fabian Weber
cbbb3be0d4 fixed tests + removed indexed txs 2018-03-17 22:17:56 +01:00
Fabian Weber
1cd6ec1084 most tests working 2018-03-17 22:14:19 +01:00
Fabian Weber
579bd56127 fixed some tests 2018-03-17 22:14:19 +01:00
Ethan Buchman
b44690563a hack city 2018-03-17 22:14:19 +01:00
Ethan Buchman
39c8e4eb7f client/lcd: fix up some tests. print statements abound 2018-03-17 22:14:19 +01:00
rigelrozanski
1778a27082 more of the go-bash stuff for REST 2018-03-17 22:14:19 +01:00
rigelrozanski
fdb9d5f580 moved actual go commands 2018-03-17 22:14:19 +01:00
rigelrozanski
c8032a3588 ... 2018-03-17 22:14:19 +01:00
Fabian
b3532e2d2b using actual running servers + http calls to test REST 2018-03-17 22:14:19 +01:00
rigelrozanski
8858371c43 ... 2018-03-17 22:14:19 +01:00
Ethan Frey
8392cf93ac Implement RPC subcommands
Turned out the tendermint rpc was broken in the refactor and
had to fix that first...
2018-03-01 02:36:57 +00:00
Ethan Frey
c083678cae cleaned up basecli tx so it really works 2018-03-01 02:36:57 +00:00
Ethan Frey
734b1073ba Added tx subcommands and automate manual testing 2018-03-01 02:36:57 +00:00
Zach Ramsay
d4dcc4c3c8 tests: more organized 2018-02-13 09:12:23 -05:00
Zach Ramsay
b51d5dda8c remove deprecated 'tests/' directory & old D-file 2018-02-13 09:12:23 -05:00
Ethan Frey
ff0a50a1b3 Fix cli tests to explicitly pass height when querying results of tx 2017-10-25 19:14:28 +02:00
Ethan Frey
5714b101b5 Handle explicit heights to query tx in basictx.sh 2017-10-25 19:14:28 +02:00
rigelrozanski
d3b4d42458 integrated init --static, fix tests 2017-10-10 03:13:02 -04:00
Ethan Frey
b11536c579 Move the tests into basecoin examples 2017-09-08 20:51:14 +02:00
rigelrozanski
4ac089f084 json testing, addressed init option PR comments 2017-09-06 01:19:20 -04:00
Rigel Rozanski
ab8505d1f6 init options tests 2017-09-06 01:19:20 -04:00
Rigel Rozanski
bfd4ce96bb added init option flag and tests 2017-09-06 01:19:20 -04:00
Ethan Frey
96f96ffc3d Moved basecoin into examples 2017-09-04 16:50:09 +02:00
Ethan Frey
b274494474 Fix timing issue in rest cli test 2017-09-04 16:50:09 +02:00
Ethan Frey
041396b53e Moved eyes into example apps, cleaned up Makefile 2017-09-04 16:50:09 +02:00
Ethan Frey
d22c08b12a Store shunit2 in the repo, no dangerous wget each test 2017-09-04 16:50:09 +02:00
Ethan Frey
ce46642aa0 Move counter cli tests into example dir 2017-09-04 16:50:09 +02:00
Ethan Frey
041943c441 Rename all packages and imports to cosmos-sdk 2017-08-21 22:15:15 +01:00
Ethan Frey
8a430648e4 Bump version to 0.7.0-alpha 2017-08-18 23:48:57 +01:00
Emmanuel Odeke
8a4e24925a Fixed tests/cli/rest.sh for checking accounts 2017-08-18 22:50:10 +01:00
Emmanuel Odeke
f52d92a40e modules/coin/rest: implemented CreateRole
* Note: Role must be a hex string, as enforced in tests/rest/cli.sh

```shell
$ curl -X POST http://localhost:8998/build/create_role --data \
'{
  "role":"DEADBEEF", "seq": 1,
  "min_sigs": 1,
  "signers": [{
    "addr": "4FF759D47C81754D8F553DCCAC8651D0AF74C7F9", "app": "role"
  }]
}'
```

```HTTP
HTTP/1.1 200 OK
Content-Type: application/json
Date: Tue, 08 Aug 2017 19:15:13 GMT
Content-Length: 387

{
  "type": "chain/tx",
  "data": {
    "chain_id": "test_chain_id",
    "expires_at": 0,
    "tx": {
      "type": "role/create",
      "data": {
        "role": "DEADBEEF",
        "min_sigs": 1,
        "signers": [
          {
            "chain": "",
            "app": "role",
            "addr": "4FF759D47C81754D8F553DCCAC8651D0AF74C7F9"
          }
        ]
      }
    }
  }
}
```

Updates #200
2017-08-18 22:32:04 +01:00
Ethan Frey
2b1c4dd8b9 Really renames etc -> eyes... finish the job 2017-08-07 19:21:07 +02:00
Ethan Frey
0133723aca Clean up comments 2017-08-07 18:50:33 +02:00
Ethan Frey
483ed6d87a Add cli tests for eyes query and add to Makefile 2017-08-07 18:50:33 +02:00
Ethan Frey
f2adf3645a role cli uses hex for consistency 2017-08-04 14:44:28 +02:00
Ethan Frey
4652779a3d Fix up flag handling 2017-07-29 17:23:21 -04:00
Ethan Frey
8dd2371cc5 Don't require init when --trust-node is given 2017-07-29 17:23:21 -04:00
Ethan Frey
b98bfc01ae Add --trust-node flag to cli to skip proofs on queries 2017-07-29 17:23:21 -04:00
Ethan Frey
f0e2227ada Use password as key, allow 3 letter names 2017-07-29 17:16:24 -04:00
Ethan Frey
14bb65457c Add cli tests for rest 2017-07-29 17:11:23 -04:00
Ethan Frey
6632d88b3d IBC post packet test passes 2017-07-27 16:41:37 -04:00
Ethan Frey
f32e6c9b7d Updated light-client 2017-07-27 16:41:36 -04:00
Ethan Frey
e90d6db516 Update seed to a given height 2017-07-27 16:41:13 -04:00
Ethan Frey
d0920ac1cf Add post packet to cli and test... bug 2017-07-27 16:41:13 -04:00
Ethan Frey
b7abee64f0 Test creating packet and query via cli 2017-07-27 16:41:12 -04:00
Ethan Frey
9640547c01 Expose credit tx to cli and test 2017-07-27 16:41:12 -04:00
Ethan Frey
aad5a0f3a0 Test query ibc status and fix bugs 2017-07-27 16:30:20 -04:00
Ethan Frey
fd10387eb5 Tested register and update ibc via cli 2017-07-27 16:30:20 -04:00
Ethan Frey
199ee81a97 Revert all on failed CheckTx, fee+nonce increment on failed DeliverTx 2017-07-27 15:31:33 -04:00
Ethan Frey
4414e69b78 Remove old test 2017-07-25 10:28:54 -04:00
Ethan Frey
44f6696f11 Proper tests for accessing a multi-sig account 2017-07-19 16:45:03 +02:00
Ethan Frey
5f1d98ba0f Tested sending 1 sig from role 2017-07-19 16:36:35 +02:00
Ethan Frey
63fc25e74e Add roles cli test, coin query supports multiple apps in actor 2017-07-19 16:14:26 +02:00
Ethan Frey
a12d866ed1 --sequence=-1 broken if no sequence yet 2017-07-19 13:27:29 +02:00
rigel rozanski
0a9460dc93 auto-sequencing 2017-07-19 00:13:39 -04:00
Ethan Frey
d9c39ff9e6 Bring more cli tests from light-client 2017-07-18 21:46:13 +02:00
rigel rozanski
8dc5fc718d tests working 2017-07-18 12:08:30 +02:00
rigel rozanski
cb00c00f0d getting query command to operate 2017-07-18 12:08:30 +02:00
Ethan Frey
71276a53b5 A failing cli test demonstating the missing query nonce command 2017-07-18 12:08:30 +02:00
rigel rozanski
3d5cf393b9 PR changes 2017-07-18 12:08:29 +02:00
Ethan Frey
9fd250209e Cli now returns errors on non-zero code from DeliverTx 2017-07-18 12:08:29 +02:00
Ethan Frey
e5db61a63a Cleanup counter tx check, add replay protection to cli tests 2017-07-18 12:08:29 +02:00
rigel rozanski
23615c5d37 almost done! 2017-07-18 12:08:29 +02:00
rigel rozanski
5ccf22bfb7 frey changes 2017-07-18 12:08:28 +02:00
Ethan Frey
d6d1655ab1 Add support for --fee in countercli 2017-07-12 21:04:34 +02:00
Ethan Frey
c1fc5ae3c8 Add --fee flag to sendtx 2017-07-12 20:51:07 +02:00
Ethan Frey
137f8a9ce1 Remove all sequence from coin, fixed cli tests 2017-07-12 19:25:15 +02:00
Ethan Frey
b757467f7b Moved content of txs package to sit next to the handlers 2017-07-06 16:33:38 +02:00
Ethan Frey
6983f61961 Moved Coins from types -> modules/coin 2017-07-06 14:59:45 +02:00
Ethan Frey
56e61c9431 Cli tests abort cleaner when server can't start 2017-07-06 13:49:02 +02:00
Ethan Frey
912c24093f Removed a whole lot of old crud 2017-07-06 13:40:02 +02:00
Ethan Frey
670e7b48d1 Counter uses dispatcher to deduct fees from account 2017-07-04 14:47:46 +02:00
Ethan Frey
8003034bbb Test reading back counter tx 2017-07-04 14:19:28 +02:00
Ethan Frey
49ebe59804 Get counter app working, with cli tests 2017-07-04 14:04:18 +02:00
Ethan Frey
473451f020 Integrate dispatcher into app, and fix tests 2017-07-04 12:46:57 +02:00
Ethan Frey
413ea2e23f basecli works for sendtx and cli tests 2017-07-03 22:30:12 +02:00
Ethan Frey
ef0ab758ed Cleaned up logger on constructors in App, State 2017-07-03 16:54:47 +02:00
Ethan Frey
d36486aed7 Print output addr on failed tx to help debug #147 2017-06-29 15:13:33 +02:00
rigel rozanski
a08775052c circle fixes 2017-06-29 05:47:38 -04:00
Ethan Frey
f5a546894c Resolve issue #135, support 0x on account queries 2017-06-26 18:22:51 +02:00
Ethan Frey
61e56d61b0 Clean up cli tests to remove expected error messages 2017-06-26 18:22:50 +02:00
Ethan Frey
aa18ff4c4c Update go-crypto with keys seedphrase, better testable password prompts 2017-06-21 20:13:54 +02:00
Ethan Frey
682f9ecc87 Cleanup after rebase 2017-06-21 18:50:36 +02:00
Ethan Buchman
0b81676067 abci handshake 2017-06-21 18:38:20 +02:00
Ethan Frey
fd28e4e884 Added tests on handling restarts well, cleaned up common 2017-06-21 18:36:54 +02:00
Ethan Frey
3b66483238 Fix up one comment 2017-06-21 16:55:19 +02:00
rigel rozanski
dcb4a40bd2 quick setup/tear-down 2017-06-21 16:30:53 +02:00
rigel rozanski
a78a24bbe9 bash test cleanup
int
2017-06-21 16:30:53 +02:00
Ethan Frey
4cabad0980 Minor cleanup 2017-06-21 16:24:51 +02:00
Ethan Buchman
824050a0b4 basecoin init --chain-id 2017-06-21 02:48:09 -04:00
Ethan Frey
0b7b639c58 Rewrote ibc guide for basecli and relay 2017-06-19 16:34:41 +02:00
Ethan Frey
1e76d92d85 Supress ugly kill message with disown - bash magick 2017-06-19 15:13:46 +02:00
Ethan Frey
a20b640f05 Better error output when setup fails 2017-06-16 21:06:43 +02:00
Ethan Frey
6658421919 Cleanup tests a bit 2017-06-16 20:47:44 +02:00
Ethan Frey
cb075bbb7e Working with relay init 2017-06-16 20:36:38 +02:00
Ethan Frey
b63f8bd15a Move relay to basecoin relay start 2017-06-16 20:20:23 +02:00
Ethan Frey
6eac364c43 Complete ibc tests with "basecoin ibc register" and "basecoin relay" 2017-06-16 16:59:23 +02:00
Ethan Frey
33d4f930da basecli sendtx handles chain/addr format 2017-06-16 15:42:18 +02:00
Ethan Frey
cba5523ca5 Clear output of test failures in ibc 2017-06-16 15:33:37 +02:00
Ethan Frey
4606fc84f7 Add ibc test scaffolding 2017-06-16 14:43:54 +02:00
Ethan Frey
fb7fc78b2e clean up cli tests 2017-06-16 14:26:35 +02:00
Ethan Frey
526e2136e1 Fix cli tests for new countercli app 2017-06-16 14:01:37 +02:00
Ethan Frey
81d6d2425f Added counter tests as well 2017-06-16 13:38:51 +02:00
Ethan Frey
9341b8be5d Support other binaries 2017-06-16 13:38:51 +02:00
Ethan Frey
789ebada42 pulled out common helpers, prepare to support ibc 2017-06-16 13:38:51 +02:00
rigel rozanski
e356fc1edb makefile cleanup 2017-06-16 13:38:22 +02:00
Anton Kaliaev
41ef8af108 new logging 2017-05-14 20:47:01 +02:00
Ethan Frey
2324f5d766 Fix all tests with new tendermint style 2017-05-12 20:54:50 +02:00
Ethan Buchman
525cb4c80b fix tendermint rpc link 2017-04-27 12:52:47 -04:00
Ethan Buchman
9c391a08a9 fix some imports 2017-04-27 15:55:23 +02:00
Ethan Buchman
1a6fae6af6 update import paths for repo merge 2017-04-27 15:55:23 +02:00
Ethan Frey
b6ebf9f8b8 Update to latest go-crypto, adjust code and tests 2017-04-27 15:53:49 +02:00
Ethan Frey
57356beab6 Use WrapXxx to safelt construct XxxS structs 2017-04-27 15:52:53 +02:00
Rigel Rozanski
c292d54e47 Debug Flag, Run -> RunE 2017-04-21 12:34:11 -04:00
Rigel Rozanski
5ebdd964c5 rebase updates/ rpc updates 2017-04-21 12:34:11 -04:00
rigelrozanski
d19f52c893 review changes
int

int
2017-04-13 23:31:52 -04:00
Anton Kaliaev
924d11397e update go-rpc
rpc clients were renamed
2017-04-13 21:39:04 -04:00
Ethan Frey
52353433a3 Update all dependencies to develop, fix method names 2017-04-13 14:25:06 +02:00
Ethan Buchman
09433299ca add plugin_options and fix tests 2017-03-14 13:55:46 -04:00
Ethan Frey
a6f62023b2 test LoadGenesis and change format 2017-02-25 00:12:15 +01:00
Ethan Frey
1fd2d17cd9 Update go-crypto, move testutils into types 2017-02-25 00:12:15 +01:00
Ethan Frey
c1fa8cb0d2 Use new go-crypto S structs to get full go-data support 2017-02-25 00:12:15 +01:00
Jae Kwon
b8374f4a9c Merge abci_proof 2017-01-28 09:33:07 -08:00
Jae Kwon
16ccf8c6d7 Remove spurious commits 2017-01-15 15:31:38 -08:00
Jae Kwon
c0e153d103 Move tmsp_test to tests/tmsp 2017-01-15 15:16:18 -08:00
Jae Kwon
16a6680e24 Vote->Counter; Fee is types.Coin; Context has Account; Cleanup 2017-01-15 15:10:51 -08:00
rigelrozanski
ba24e69e45 restructure, tmsp test now using go testing, app/tmsp_test.go 2017-01-13 15:29:12 -05:00
rigelrozanski
f2275c3089 successful vote plugin tests 2017-01-13 04:27:07 -05:00
Jae Kwon
623ef17a84 Fix tests 2017-01-12 14:57:59 -08:00
rigelrozanski
c1c79d1e3d pubkey not nil error 2017-01-12 14:57:59 -08:00
Jae Kwon
056106a43a Incomplete fix to make Basecoin compile 2016-09-22 17:46:42 +08:00
Jae Kwon
324e72f36d Plugin interface methods take store 2016-05-01 13:52:08 -07:00
Jae Kwon
fefcbbf3b0 Remove unnecessary SetSignature calls 2016-04-19 17:21:02 -07:00
Jae Kwon
7676e59944 Fixing tests 2016-04-19 17:11:19 -07:00
Jae Kwon
ce2b8904d6 Split validation into basic/advanced 2016-04-18 08:09:19 -07:00
Jae Kwon
bc78a2d272 Governmint testing 2016-04-17 12:41:26 -07:00
Jae Kwon
d6f75370a1 Disable scripts/* building with build tags 2016-04-13 15:05:07 -07:00
Jae Kwon
a16b96062b Coins and fees and gas... 2016-04-01 15:19:07 -07:00
Jae Kwon
f81718eea4 Fix tx encoding 2016-03-30 13:20:55 -07:00
Jae Kwon
13a0bdd911 Fix Basecoin CheckTx cache 2016-03-29 14:25:17 -07:00
Jae Kwon
cd3da2bf29 Add TestSequence in tests/tmsp 2016-03-28 09:35:19 -07:00
Jae Kwon
fa39c9da5c s/CallTx/AppTx/g; NamedPlugins 2016-03-27 12:47:50 -07:00
Jae Kwon
601a654b7d Plugin support for SetOption, Query, and Commit 2016-03-24 14:10:17 -07:00
Jae Kwon
83e7c9dab1 Basecoin TMSP test; Result logs 2016-03-24 11:27:44 -07:00
Jae Kwon
5049c35efc Merge basecoin with tendermint_classic 2016-03-21 15:31:25 -07:00
Jae Kwon
63279a897c Begin integrating Governmint 2016-03-15 15:01:53 -07:00
Jae Kwon
3235172a74 Move main.go to cmd/main.go 2016-02-21 15:09:47 -08:00
Jae Kwon
cec82d8250 s/blackstar/basecoin/g 2016-02-16 12:29:54 -08:00
Jae Kwon
0417c71543 s/GetHash/Commit/g 2016-02-14 13:13:49 -08:00
Jae Kwon
538f3110b1 Relaxed nonce-checking for demo 2016-02-08 15:01:26 -08:00
Jae Kwon
7dccf61484 Fix app 2016-02-08 02:19:32 -08:00
Jae Kwon
01b2def693 Actually set Input.Signature; Call rpc broadcast_tx_sync 2016-02-08 01:55:13 -08:00
Jae Kwon
436e0ba7d7 Added genesis file; Added draft of Tendermint tests 2016-02-07 22:54:49 -08:00