2323
2424from cardano_node_tests .cluster_management import cluster_management
2525from cardano_node_tests .tests import common
26+ from cardano_node_tests .tests import issues
2627from cardano_node_tests .utils import cluster_nodes
2728from cardano_node_tests .utils import clusterlib_utils
2829from cardano_node_tests .utils import configuration
@@ -117,7 +118,8 @@ def _check_staking(
117118
118119 assert (
119120 # Strip 'e0' from the beginning of the address hash
120- helpers .decode_bech32 (stake_addr_info .address )[2 :] in pool_params ["owners" ]
121+ helpers .decode_bech32 (stake_addr_info .address )[2 :]
122+ in helpers .get_pool_param ("owners" , pool_params = pool_params )
121123 ), "'owner' value is different than expected"
122124
123125
@@ -1465,12 +1467,12 @@ def test_update_stake_pool_metadata(
14651467 raise ValueError (msg )
14661468
14671469 # Check that pool is going to be updated with correct data
1468- future_params = cluster .g_query .get_pool_state (
1469- stake_pool_id = pool_creation_out . stake_pool_id
1470- ). future_pool_params
1471- assert not clusterlib_utils .check_pool_data (
1472- pool_params = future_params , pool_creation_data = pool_data_updated
1473- )
1470+ pool_state = cluster .g_query .get_pool_state (stake_pool_id = pool_creation_out . stake_pool_id )
1471+ has_issue_5365 = pool_state . future_pool_params == pool_state . pool_params
1472+ if not has_issue_5365 :
1473+ assert not clusterlib_utils .check_pool_data (
1474+ pool_params = pool_state . future_pool_params , pool_creation_data = pool_data_updated
1475+ )
14741476
14751477 if cluster .epoch_length_sec <= TWO_HOURS_SEC :
14761478 cluster .wait_for_epoch (epoch_no = update_epoch + 1 , padding_seconds = 5 )
@@ -1482,6 +1484,9 @@ def test_update_stake_pool_metadata(
14821484 pool_data = pool_data_updated ,
14831485 )
14841486
1487+ if has_issue_5365 :
1488+ issues .ledger_5365 .finish_test ()
1489+
14851490 @allure .link (helpers .get_vcs_link ())
14861491 @common .PARAM_BUILD_METHOD_NO_EST
14871492 @pytest .mark .testnets
@@ -1589,12 +1594,12 @@ def test_update_stake_pool_parameters(
15891594 raise ValueError (msg )
15901595
15911596 # Check that pool is going to be updated with correct data
1592- future_params = cluster .g_query .get_pool_state (
1593- stake_pool_id = pool_creation_out . stake_pool_id
1594- ). future_pool_params
1595- assert not clusterlib_utils .check_pool_data (
1596- pool_params = future_params , pool_creation_data = pool_data_updated
1597- )
1597+ pool_state = cluster .g_query .get_pool_state (stake_pool_id = pool_creation_out . stake_pool_id )
1598+ has_issue_5365 = pool_state . future_pool_params == pool_state . pool_params
1599+ if not has_issue_5365 :
1600+ assert not clusterlib_utils .check_pool_data (
1601+ pool_params = pool_state . future_pool_params , pool_creation_data = pool_data_updated
1602+ )
15981603
15991604 if cluster .epoch_length_sec <= TWO_HOURS_SEC :
16001605 cluster .wait_for_epoch (epoch_no = update_epoch + 1 , padding_seconds = 5 )
@@ -1606,6 +1611,9 @@ def test_update_stake_pool_parameters(
16061611 pool_data = pool_data_updated ,
16071612 )
16081613
1614+ if has_issue_5365 :
1615+ issues .ledger_5365 .finish_test ()
1616+
16091617 @allure .link (helpers .get_vcs_link ())
16101618 @pytest .mark .testnets
16111619 @pytest .mark .smoke
0 commit comments