IntersectMBO / cardano-node-tests

System and end-to-end (E2E) tests for cardano-node.
https://tests.cardano.intersectmbo.org/
Apache License 2.0
53 stars 28 forks source link

Add db-sync test for checking proposal refunds #2472

Open ArturWieczorek opened 2 weeks ago

ArturWieczorek commented 2 weeks ago

Tests passed :heavy_check_mark: multiple times.

===================================================================================================================================================================== test session starts =====================================================================================================================================================================
platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12/bin/python3.10
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/home/artur/Downloads/AddProposalReturnChecks/cardano-node-tests/.hypothesis/examples'))
metadata: {'Python': '3.10.12', 'Platform': 'Linux-5.15.0-113-generic-x86_64-with-glibc2.37', 'Packages': {'pytest': '7.4.4', 'pluggy': '1.5.0'}, 'Plugins': {'allure-pytest': '2.13.5', 'hypothesis': '6.100.2', 'html': '3.2.0', 'metadata': '3.1.1', 'order': '1.2.1', 'select': '0.1.2', 'xdist': '3.3.1'}, 'cardano-node': '9.0.0', 'cardano-node rev': '2820a63dc934c6d5b5f450b6c2543b81c6476696', 'cardano-node ghc': 'ghc-8.10', 'cardano-cli': '9.0.0.0', 'cardano-cli rev': '2820a63dc934c6d5b5f450b6c2543b81c6476696', 'cardano-cli ghc': 'ghc-8.10', 'CLUSTER_ERA': 'conway', 'TX_ERA': '', 'COMMAND_ERA': 'conway', 'SCRIPTS_DIRNAME': 'conway_fast', 'ENABLE_P2P': 'False', 'MIXED_P2P': 'False', 'NUM_POOLS': '3', 'DB_BACKEND': '', 'HAS_CC': 'True', 'cardano-node-tests rev': '2392badbd72703cd6c27cb9c39bba5a61db053ab', 'cardano-node-tests url': 'https://github.com/IntersectMBO/cardano-node-tests/tree/2392badbd72703cd6c27cb9c39bba5a61db053ab', 'CARDANO_NODE_SOCKET_PATH': '/home/artur/Downloads/AddProposalReturnChecks/cardano-node-tests/dev_workdir/state-cluster0/bft1.socket', 'cardano-cli exe': '/nix/store/gsj96vxrv2h20y97ipg1db8cnir8mghp-cardano-cli-exe-cardano-cli-9.0.0.0/bin/cardano-cli', 'cardano-node exe': '/nix/store/mbr80g2xr3c8z82afdmvwqlcqwd912mw-cardano-node-exe-cardano-node-9.0.0/bin/cardano-node', 'cardano-submit-api exe': '/nix/store/gg2n3hs6z2si1jl29i6wdfr2vjlm7q3q-cardano-submit-api-exe-cardano-submit-api-9.0.0/bin/cardano-submit-api', 'network magic': 42, 'HAS_DBSYNC': 'True', 'db-sync': '13.2.0.2', 'db-sync rev': '7dd3f60bf12c1d2853baf44e267a8dc3cb52bccf', 'db-sync ghc': 'ghc-8.10', 'db-sync exe': '/nix/store/lsb2n7s66bg6swspabigrrvn0z1x83h4-cardano-db-sync-exe-cardano-db-sync-13.2.0.2/bin/cardano-db-sync'}
rootdir: /home/artur/Downloads/AddProposalReturnChecks/cardano-node-tests
configfile: pyproject.toml
plugins: allure-pytest-2.13.5, hypothesis-6.100.2, html-3.2.0, metadata-3.1.1, order-1.2.1, select-0.1.2, xdist-3.3.1
collected 1421 items / 1419 deselected / 2 selected                                                                                                                                                                                                                                                                                                           

cardano_node_tests/tests/tests_conway/test_pparam_update.py::TestPParamUpdate::test_pparam_update@long 
----------------------------------------------------------------------------------------------------------------------------------------------------------------------- live log setup ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
INFO     cardano_node_tests.tests.conftest:conftest.py:188 Changed CWD to '/home/artur/Downloads/AddProposalReturnChecks/cardano-node-tests/dev_workdir/tmp/pytest-of-artur/pytest-5'.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------ live log call ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
INFO     cardano_clusterlib.clusterlib_klass:clusterlib_klass.py:372 Waiting for 27.00 sec for slot no 14005.
INFO     cardano_clusterlib.clusterlib_klass:clusterlib_klass.py:372 Waiting for 39.60 sec for slot no 15005.
INFO     cardano_clusterlib.clusterlib_klass:clusterlib_klass.py:372 Waiting for 190.00 sec for slot no 16025.
PASSED
cardano_node_tests/tests/tests_conway/test_pparam_update.py::TestPParamData::test_pparam_keys PASSED
---------------------------------------------------------------------------------------------------------------------------------------------------------------------- live log teardown ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
INFO     cardano_node_tests.utils.dbsync_conn:dbsync_conn.py:34 Closing connection to db-sync database dbsync0.

======================================================================================================================================================= 2 passed, 1419 deselected in 503.15s (0:08:23) ========================================================================================================================================================
[22:57:31] 

[nix-shell:~/Downloads/AddProposalReturnChecks/cardano-node-tests](master)$ pytest -sk "test_pparam_update" cardano_node_tests/
===================================================================================================================================================================== test session starts =====================================================================================================================================================================
platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12/bin/python3.10
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/home/artur/Downloads/AddProposalReturnChecks/cardano-node-tests/.hypothesis/examples'))
metadata: {'Python': '3.10.12', 'Platform': 'Linux-5.15.0-113-generic-x86_64-with-glibc2.37', 'Packages': {'pytest': '7.4.4', 'pluggy': '1.5.0'}, 'Plugins': {'allure-pytest': '2.13.5', 'hypothesis': '6.100.2', 'html': '3.2.0', 'metadata': '3.1.1', 'order': '1.2.1', 'select': '0.1.2', 'xdist': '3.3.1'}, 'cardano-node': '9.0.0', 'cardano-node rev': '2820a63dc934c6d5b5f450b6c2543b81c6476696', 'cardano-node ghc': 'ghc-8.10', 'cardano-cli': '9.0.0.0', 'cardano-cli rev': '2820a63dc934c6d5b5f450b6c2543b81c6476696', 'cardano-cli ghc': 'ghc-8.10', 'CLUSTER_ERA': 'conway', 'TX_ERA': '', 'COMMAND_ERA': 'conway', 'SCRIPTS_DIRNAME': 'conway_fast', 'ENABLE_P2P': 'False', 'MIXED_P2P': 'False', 'NUM_POOLS': '3', 'DB_BACKEND': '', 'HAS_CC': 'True', 'cardano-node-tests rev': '2392badbd72703cd6c27cb9c39bba5a61db053ab', 'cardano-node-tests url': 'https://github.com/IntersectMBO/cardano-node-tests/tree/2392badbd72703cd6c27cb9c39bba5a61db053ab', 'CARDANO_NODE_SOCKET_PATH': '/home/artur/Downloads/AddProposalReturnChecks/cardano-node-tests/dev_workdir/state-cluster0/bft1.socket', 'cardano-cli exe': '/nix/store/gsj96vxrv2h20y97ipg1db8cnir8mghp-cardano-cli-exe-cardano-cli-9.0.0.0/bin/cardano-cli', 'cardano-node exe': '/nix/store/mbr80g2xr3c8z82afdmvwqlcqwd912mw-cardano-node-exe-cardano-node-9.0.0/bin/cardano-node', 'cardano-submit-api exe': '/nix/store/gg2n3hs6z2si1jl29i6wdfr2vjlm7q3q-cardano-submit-api-exe-cardano-submit-api-9.0.0/bin/cardano-submit-api', 'network magic': 42, 'HAS_DBSYNC': 'True', 'db-sync': '13.2.0.2', 'db-sync rev': '7dd3f60bf12c1d2853baf44e267a8dc3cb52bccf', 'db-sync ghc': 'ghc-8.10', 'db-sync exe': '/nix/store/lsb2n7s66bg6swspabigrrvn0z1x83h4-cardano-db-sync-exe-cardano-db-sync-13.2.0.2/bin/cardano-db-sync'}
rootdir: /home/artur/Downloads/AddProposalReturnChecks/cardano-node-tests
configfile: pyproject.toml
plugins: allure-pytest-2.13.5, hypothesis-6.100.2, html-3.2.0, metadata-3.1.1, order-1.2.1, select-0.1.2, xdist-3.3.1
collected 1421 items / 1419 deselected / 2 selected                                                                                                                                                                                                                                                                                                           

cardano_node_tests/tests/tests_conway/test_pparam_update.py::TestPParamUpdate::test_pparam_update@long 
----------------------------------------------------------------------------------------------------------------------------------------------------------------------- live log setup ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
INFO     cardano_node_tests.tests.conftest:conftest.py:188 Changed CWD to '/home/artur/Downloads/AddProposalReturnChecks/cardano-node-tests/dev_workdir/tmp/pytest-of-artur/pytest-6'.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------ live log call ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
INFO     cardano_clusterlib.clusterlib_klass:clusterlib_klass.py:372 Waiting for 23.80 sec for slot no 18005.
INFO     cardano_clusterlib.clusterlib_klass:clusterlib_klass.py:372 Waiting for 37.00 sec for slot no 19005.
INFO     cardano_clusterlib.clusterlib_klass:clusterlib_klass.py:372 Waiting for 176.20 sec for slot no 20025.
INFO     cardano_clusterlib.clusterlib_klass:clusterlib_klass.py:372 Waiting for 193.20 sec for slot no 21025.
PASSED
cardano_node_tests/tests/tests_conway/test_pparam_update.py::TestPParamData::test_pparam_keys PASSED
---------------------------------------------------------------------------------------------------------------------------------------------------------------------- live log teardown ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
INFO     cardano_node_tests.utils.dbsync_conn:dbsync_conn.py:34 Closing connection to db-sync database dbsync0.

======================================================================================================================================================= 2 passed, 1419 deselected in 646.64s (0:10:46) ========================================================================================================================================================
[23:14:12] 

[nix-shell:~/Downloads/AddProposalReturnChecks/cardano-node-tests](artur/tests-proposal-refunds)$ pytest -sk "test_pparam_update" cardano_node_tests/
===================================================================================================================================================================== test session starts =====================================================================================================================================================================
platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12/bin/python3.10
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/home/artur/Downloads/AddProposalReturnChecks/cardano-node-tests/.hypothesis/examples'))
metadata: {'Python': '3.10.12', 'Platform': 'Linux-5.15.0-113-generic-x86_64-with-glibc2.37', 'Packages': {'pytest': '7.4.4', 'pluggy': '1.5.0'}, 'Plugins': {'allure-pytest': '2.13.5', 'hypothesis': '6.100.2', 'html': '3.2.0', 'metadata': '3.1.1', 'order': '1.2.1', 'select': '0.1.2', 'xdist': '3.3.1'}, 'cardano-node': '9.0.0', 'cardano-node rev': '2820a63dc934c6d5b5f450b6c2543b81c6476696', 'cardano-node ghc': 'ghc-8.10', 'cardano-cli': '9.0.0.0', 'cardano-cli rev': '2820a63dc934c6d5b5f450b6c2543b81c6476696', 'cardano-cli ghc': 'ghc-8.10', 'CLUSTER_ERA': 'conway', 'TX_ERA': '', 'COMMAND_ERA': 'conway', 'SCRIPTS_DIRNAME': 'conway_fast', 'ENABLE_P2P': 'False', 'MIXED_P2P': 'False', 'NUM_POOLS': '3', 'DB_BACKEND': '', 'HAS_CC': 'True', 'cardano-node-tests rev': 'fdeaeceea69446372321bad1c8b90f22ca4f522e', 'cardano-node-tests url': 'https://github.com/IntersectMBO/cardano-node-tests/tree/fdeaeceea69446372321bad1c8b90f22ca4f522e', 'CARDANO_NODE_SOCKET_PATH': '/home/artur/Downloads/AddProposalReturnChecks/cardano-node-tests/dev_workdir/state-cluster0/bft1.socket', 'cardano-cli exe': '/nix/store/gsj96vxrv2h20y97ipg1db8cnir8mghp-cardano-cli-exe-cardano-cli-9.0.0.0/bin/cardano-cli', 'cardano-node exe': '/nix/store/mbr80g2xr3c8z82afdmvwqlcqwd912mw-cardano-node-exe-cardano-node-9.0.0/bin/cardano-node', 'cardano-submit-api exe': '/nix/store/gg2n3hs6z2si1jl29i6wdfr2vjlm7q3q-cardano-submit-api-exe-cardano-submit-api-9.0.0/bin/cardano-submit-api', 'network magic': 42, 'HAS_DBSYNC': 'True', 'db-sync': '13.2.0.2', 'db-sync rev': '7dd3f60bf12c1d2853baf44e267a8dc3cb52bccf', 'db-sync ghc': 'ghc-8.10', 'db-sync exe': '/nix/store/lsb2n7s66bg6swspabigrrvn0z1x83h4-cardano-db-sync-exe-cardano-db-sync-13.2.0.2/bin/cardano-db-sync'}
rootdir: /home/artur/Downloads/AddProposalReturnChecks/cardano-node-tests
configfile: pyproject.toml
plugins: allure-pytest-2.13.5, hypothesis-6.100.2, html-3.2.0, metadata-3.1.1, order-1.2.1, select-0.1.2, xdist-3.3.1
collected 1421 items / 1419 deselected / 2 selected                                                                                                                                                                                                                                                                                                           

cardano_node_tests/tests/tests_conway/test_pparam_update.py::TestPParamUpdate::test_pparam_update@long 
----------------------------------------------------------------------------------------------------------------------------------------------------------------------- live log setup ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
INFO     cardano_node_tests.tests.conftest:conftest.py:188 Changed CWD to '/home/artur/Downloads/AddProposalReturnChecks/cardano-node-tests/dev_workdir/tmp/pytest-of-artur/pytest-7'.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------ live log call ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
INFO     cardano_clusterlib.clusterlib_klass:clusterlib_klass.py:372 Waiting for 25.20 sec for slot no 22005.
INFO     cardano_clusterlib.clusterlib_klass:clusterlib_klass.py:372 Waiting for 26.00 sec for slot no 23005.
INFO     cardano_clusterlib.clusterlib_klass:clusterlib_klass.py:372 Waiting for 178.20 sec for slot no 24025.
PASSED
cardano_node_tests/tests/tests_conway/test_pparam_update.py::TestPParamData::test_pparam_keys PASSED
---------------------------------------------------------------------------------------------------------------------------------------------------------------------- live log teardown ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
INFO     cardano_node_tests.utils.dbsync_conn:dbsync_conn.py:34 Closing connection to db-sync database dbsync0.

======================================================================================================================================================= 2 passed, 1419 deselected in 495.29s (0:08:15) ========================================================================================================================================================