laconicd-deprecated/tests/integration_tests
mmsqe f4c7be2efc
fix: align empty account result for old blocks as ethereum (#1484)
* align result account as ethereum

* add test_get_transaction_count

* add change doc

* sync gomod2nix

* Apply suggestions from code review

* crosscheck with ws & geth

* sync gomod2nix

* Update rpc/backend/utils.go

* use session provider

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-11-25 08:26:03 +01:00
..
configs
contracts tests: add additional gas consumption tests (#1477) 2022-11-18 20:08:05 -05:00
__init__.py
.isort.cfg
conftest.py
cosmoscli.py fix: chain-id in grpc query is not initialized without abci event (#1405) 2022-11-18 13:19:09 -05:00
expected_constants.py chore (deps): Update geth version to v1.10.25 (#1413) 2022-11-16 12:59:12 -05:00
network.py
poetry.lock
pyproject.toml
README.md
shell.nix
test_account.py fix: align empty account result for old blocks as ethereum (#1484) 2022-11-25 08:26:03 +01:00
test_basic.py
test_filters.py chore (deps): Update geth version to v1.10.25 (#1413) 2022-11-16 12:59:12 -05:00
test_gas.py tests: add additional gas consumption tests (#1477) 2022-11-18 20:08:05 -05:00
test_grpc_only.py fix: chain-id in grpc query is not initialized without abci event (#1405) 2022-11-18 13:19:09 -05:00
test_priority.py fix: unstable tx_priority test (#1440) 2022-11-10 13:06:14 +00:00
test_pruned_node.py chore (deps): Update geth version to v1.10.25 (#1413) 2022-11-16 12:59:12 -05:00
test_rollback.py
test_tracers.py chore (deps): Update geth version to v1.10.25 (#1413) 2022-11-16 12:59:12 -05:00
test_types.py chore (deps): Update geth version to v1.10.25 (#1413) 2022-11-16 12:59:12 -05:00
test_upgrade.py chore (deps): Update geth version to v1.10.25 (#1413) 2022-11-16 12:59:12 -05:00
test_websockets.py
utils.py fix: align empty account result for old blocks as ethereum (#1484) 2022-11-25 08:26:03 +01:00

RPC Integration tests

The RPC integration test suite uses nix for reproducible and configurable builds allowing to run integration tests using python web3 library against different Ethermint and Geth clients with multiple configurations.

Installation

Nix Multi-user installation:

sh <(curl -L https://nixos.org/nix/install) --daemon

Make sure the following line has been added to your shell profile (e.g. ~/.profile):

source ~/.nix-profile/etc/profile.d/nix.sh

Then re-login shell, the nix installation is completed.

For linux:

sh <(curl -L https://nixos.org/nix/install) --no-daemon

Run Local

First time run (can take a while):

make run-integration-tests

Once you've run them once and, you can run:

nix-shell tests/integration_tests/shell.nix
cd tests/integration_tests
pytest -s -vv

If you're changing anything on the ethermint rpc, rerun the first command.

Caching

You can enable Binary Cache to speed up the tests:

$ nix-env -iA cachix -f https://cachix.org/api/v1/install
$ cachix use ethermint