Skip to content

Commit

Permalink
Merge pull request #2342 from IntersectMBO/link_req_cip69
Browse files Browse the repository at this point in the history
Link CIP069 user story
  • Loading branch information
mkoura authored Mar 20, 2024
2 parents 1dd5d20 + 9bad10d commit bfb1514
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cardano_node_tests/tests/tests_conway/test_no_confidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ def test_no_confidence_action(
req_cip41 = requirements.Req(id="CIP041", group=requirements.GroupsKnown.CHANG_US)
req_cip54_04 = requirements.Req(id="intCIP054-04", group=requirements.GroupsKnown.CHANG_US)
req_cip57 = requirements.Req(id="CIP057", group=requirements.GroupsKnown.CHANG_US)
req_int_cip69en = requirements.Req(
id="intCIP069en", group=requirements.GroupsKnown.CHANG_US
)

# Reinstate CC members first, if needed, so we have a previous action
prev_action_rec = governance_utils.get_prev_action(
Expand Down Expand Up @@ -178,6 +181,8 @@ def test_no_confidence_action(

action_ix = prop_action["actionId"]["govActionIx"]

req_int_cip69en.start(url=helpers.get_vcs_link())

# Vote & disapprove the action
conway_common.cast_vote(
cluster_obj=cluster,
Expand Down Expand Up @@ -281,7 +286,7 @@ def test_no_confidence_action(
)
assert enact_prev_action_rec.txid == action_txid, "Incorrect previous action Txid"
assert enact_prev_action_rec.ix == action_ix, "Incorrect previous action index"
req_int_cip32en.success()
[r.success() for r in (req_int_cip32en, req_int_cip69en)]

req_int_cip34en.start(url=helpers.get_vcs_link())
enact_deposit_returned = cluster.g_query.get_stake_addr_info(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ def test_expire_treasury_withdrawals(
req_int_cip34ex = requirements.Req(
id="intCIP034ex", group=requirements.GroupsKnown.CHANG_US
)
req_int_cip69ex = requirements.Req(
id="intCIP069ex", group=requirements.GroupsKnown.CHANG_US
)

# Create stake address and registration certificate
stake_deposit_amt = cluster.g_query.get_address_deposit()
Expand Down Expand Up @@ -575,6 +578,8 @@ def _get_vote(idx: int) -> clusterlib.Votes:
gov_state=vote_gov_state, name_template=f"{temp_template}_vote_{_cur_epoch}"
)

req_int_cip69ex.start(url=helpers.get_vcs_link())

for action_ix in range(actions_num):
prop_vote = governance_utils.lookup_proposal(
gov_state=vote_gov_state, action_txid=action_txid, action_ix=action_ix
Expand Down Expand Up @@ -670,6 +675,8 @@ def _get_vote(idx: int) -> clusterlib.Votes:
gov_state=rem_gov_state, action_txid=action_txid
), "Action was not removed from proposals"

req_int_cip69ex.success()

@allure.link(helpers.get_vcs_link())
@pytest.mark.parametrize("mir_cert", ("treasury", "rewards", "stake_addr"))
@pytest.mark.smoke
Expand Down
1 change: 1 addition & 0 deletions src_docs/requirements_mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"intCIP054-07"
],
"CIP064": ["intCIP064-01", "intCIP064-02", "intCIP064-03", "intCIP064-04"],
"CIP069": ["intCIP069en", "intCIP069ex"],
"CIP073": ["intCIP073-01", "intCIP073-02", "intCIP073-03", "intCIP073-04"]
}
}

0 comments on commit bfb1514

Please sign in to comment.