From db46adbf1e9dee28bf376283c151e32c1830b4af Mon Sep 17 00:00:00 2001 From: Martin Kourim Date: Sat, 7 Dec 2024 20:34:31 +0100 Subject: [PATCH] fix: fix metadata unavail test The metadata URL was changed to a valid URL by mistake in one of the previous PRs. Also we can no longer use `transaction build` for this test, as `build` now checks metadata availability. We can still use `build-raw`. --- cardano_node_tests/tests/test_pools.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/cardano_node_tests/tests/test_pools.py b/cardano_node_tests/tests/test_pools.py index 6f9009272..c9c14e87f 100644 --- a/cardano_node_tests/tests/test_pools.py +++ b/cardano_node_tests/tests/test_pools.py @@ -699,7 +699,6 @@ def _query_func(): dbsync_utils.retry_query(query_func=_query_func, timeout=300) @allure.link(helpers.get_vcs_link()) - @common.PARAM_USE_BUILD_CMD @pytest.mark.testnets @pytest.mark.smoke @pytest.mark.dbsync @@ -708,7 +707,6 @@ def test_stake_pool_not_avail_metadata( cluster_manager: cluster_management.ClusterManager, cluster: clusterlib.ClusterLib, request: FixtureRequest, - use_build_cmd: bool, ): """Create and register a stake pool with metadata file not available. @@ -724,12 +722,10 @@ def test_stake_pool_not_avail_metadata( "ticker": "QA1", "homepage": "www.test1.com", } - pool_metadata_file = pl.Path( - helpers.write_json( - out_file=f"{pool_name}_registration_metadata.json", content=pool_metadata - ) + pool_metadata_file = helpers.write_json( + out_file=f"{pool_name}_registration_metadata.json", content=pool_metadata ) - pool_metadata_url = web.publish(file_path=pool_metadata_file) + pool_metadata_url = "https://www.where_metadata_file_is_located.com" pool_data = clusterlib.PoolData( pool_name=pool_name, @@ -763,7 +759,7 @@ def test_stake_pool_not_avail_metadata( temp_dir=pl.Path(), pool_data=pool_data, request=request, - use_build_cmd=use_build_cmd, + use_build_cmd=False, ) # Check dbsync `PoolOffChainFetchError` table