laconicd-deprecated/tests/integration_tests
mergify[bot] 949674e511
fix(rpc): align fee history (backport #1611) (#1620)
* fix(rpc): align fee history (#1611)

* update nix

* add next fee in fee history

* fix test

* add change doc

* height + 1 for next fee

* cross check baseFeePerGas len

* Update tests/integration_tests/test_fee_history.py

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* fix oldestBlock & align earliest input as eth

* update doc

* update nix

* isort test_fee_history.py

* fix test

* align rpc res as eth

* add cross check

* add baseFeePerGas len check

* add oldestBlock check

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
(cherry picked from commit 47fdfd3d8318358c2578b610bc35bc8c1ebb131e)

# Conflicts:
#	CHANGELOG.md

* address merge conflicts

Co-authored-by: mmsqe <mavis@crypto.com>
Co-authored-by: MalteHerrmann <malte@evmos.org>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2023-01-20 16:49:30 +01:00
..
configs fix(rpc): bind default json-rpc listen address to localhost (backport #1613) (#1621) 2023-01-20 16:48:07 +01:00
hardhat build(deps): bump minimist in /tests/integration_tests/hardhat (#1516) 2022-11-30 19:25:06 +01:00
__init__.py imp(tests): integration tests setup (#1196) 2022-07-27 13:27:07 +00:00
.isort.cfg imp(tests): prune node integration tests (#1212) 2022-08-08 10:17:10 +02:00
conftest.py tests: make integration test more stable (#1488) 2022-12-23 07:58:26 -05:00
cosmoscli.py fix: avoid duplicate register proto type in evm & feemarket (#1586) 2023-01-12 10:52:55 +02:00
expected_constants.py tests: make integration test more stable (#1488) 2022-12-23 07:58:26 -05:00
network.py tests: make integration test more stable (#1488) 2022-12-23 07:58:26 -05:00
poetry.lock build(deps): bump certifi in /tests/integration_tests (#1545) 2022-12-09 16:33:09 +01:00
pyproject.toml fix: build test on mac by updating to python3.10 (#1437) 2022-11-09 13:46:40 +01:00
README.md chore(all): markdownlint (#1522) 2022-12-01 17:56:44 +01:00
shell.nix fix: integration tests are not run in CI (#1221) 2022-08-02 08:21:03 +02:00
test_account.py fix: align empty account result for old blocks as ethereum (#1484) 2022-11-25 08:26:03 +01:00
test_fee_history.py fix(rpc): align fee history (backport #1611) (#1620) 2023-01-20 16:49:30 +01:00
test_filters.py tests: make integration test more stable (#1488) 2022-12-23 07:58:26 -05:00
test_gas.py Skip undeterministic integration test (#1531) 2022-12-08 17:19:13 -05:00
test_grpc_only.py tests: make integration test more stable (#1488) 2022-12-23 07:58:26 -05:00
test_priority.py tests: make integration test more stable (#1488) 2022-12-23 07:58:26 -05:00
test_pruned_node.py tests: make integration test more stable (#1488) 2022-12-23 07:58:26 -05:00
test_rollback.py tests: make integration test more stable (#1488) 2022-12-23 07:58:26 -05:00
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 tests: make integration test more stable (#1488) 2022-12-23 07:58:26 -05:00
test_websockets.py tests(websocket): websocket integration tests (#1355) 2022-10-28 08:10:11 +00:00
utils.py tests: make integration test more stable (#1488) 2022-12-23 07:58:26 -05: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