|
6 | 6 | import allure |
7 | 7 | import pytest |
8 | 8 | from cardano_clusterlib import clusterlib |
| 9 | +from packaging import version |
9 | 10 |
|
10 | 11 | from cardano_node_tests.cluster_management import cluster_management |
11 | 12 | from cardano_node_tests.tests import common |
@@ -176,28 +177,43 @@ def test_enact_treasury_withdrawals( |
176 | 177 | reqc.cip026_03.success() |
177 | 178 | return |
178 | 179 |
|
| 180 | + if VERSIONS.cli > version.parse("10.1.1.0"): |
| 181 | + with pytest.raises(clusterlib.CLIError) as excinfo: |
| 182 | + clusterlib_utils.build_and_submit_tx( |
| 183 | + cluster_obj=cluster, |
| 184 | + name_template=f"{temp_template}_action_build", |
| 185 | + src_address=pool_user_ug_treasury.payment.address, |
| 186 | + use_build_cmd=True, |
| 187 | + tx_files=tx_files_action, |
| 188 | + ) |
| 189 | + err_str = str(excinfo.value) |
| 190 | + assert ( |
| 191 | + "Stake credential specified in the proposal is not registered on-chain" in err_str |
| 192 | + ), err_str |
| 193 | + |
179 | 194 | # Make sure we have enough time to submit the proposals in one epoch |
180 | 195 | clusterlib_utils.wait_for_epoch_interval( |
181 | 196 | cluster_obj=cluster, start=1, stop=common.EPOCH_STOP_SEC_BUFFER |
182 | 197 | ) |
183 | 198 |
|
| 199 | + actions_deposit_combined = action_deposit_amt * actions_num |
| 200 | + |
184 | 201 | tx_output_action = clusterlib_utils.build_and_submit_tx( |
185 | 202 | cluster_obj=cluster, |
186 | | - name_template=f"{temp_template}_action", |
| 203 | + name_template=f"{temp_template}_action_build_raw", |
187 | 204 | src_address=pool_user_ug_treasury.payment.address, |
188 | 205 | submit_method=submit_utils.SubmitMethods.API |
189 | 206 | if submit_utils.is_submit_api_available() |
190 | 207 | else submit_utils.SubmitMethods.CLI, |
191 | | - use_build_cmd=True, |
| 208 | + use_build_cmd=False, |
192 | 209 | tx_files=tx_files_action, |
| 210 | + deposit=actions_deposit_combined + stake_deposit_amt, |
193 | 211 | ) |
194 | 212 |
|
195 | 213 | assert cluster.g_query.get_stake_addr_info( |
196 | 214 | recv_stake_addr_rec.address |
197 | 215 | ).address, f"Stake address is not registered: {recv_stake_addr_rec.address}" |
198 | 216 |
|
199 | | - actions_deposit_combined = action_deposit_amt * actions_num |
200 | | - |
201 | 217 | out_utxos_action = cluster.g_query.get_utxo(tx_raw_output=tx_output_action) |
202 | 218 | assert ( |
203 | 219 | clusterlib.filter_utxos( |
|
0 commit comments