Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(sns): Move SNS integration tests to SNS Governance API types #4428

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

aterga
Copy link
Member

@aterga aterga commented Mar 19, 2025

This PR ports the tests run via bazel test //rs/sns/integration_tests/... to the ic_sns_governance_api types (currently, the internal ic_sns_governance types are used in those tests, for historical reasons).

While the explicit ic_sns_governance_api dependency is removed, it is still used implicitly via .into() for converting to and from inner types that are still being used by these tests from external crates (e.g., rs/nns/test_utils`). This support a gradual approach in which we don't need to port multiple crates at once.

< Previous PR |

@@ -303,6 +304,32 @@ impl SnsInitializationFlowTestSetup {
}
}

// TODO: Reuse this function from ic_sns_test_utils::state_test_helpers once that crate is ported
// TODO: to use `ic_sns_governance_api` (rather than `ic_sns_governance`).
fn sns_governance_list_neurons(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is to reuse as much functionality as possible from ic_nervous_system_agent. This is here temporarily.

github-merge-queue bot pushed a commit that referenced this pull request Mar 19, 2025
This PR adds a new crate under `rs/sns/governance/api_helpers`. This
crate is dedicated to helper functions defined on top of the SNS
Governance API, which are extensively used by SNS integration tests.

| [Next PR](#4428) >

---------

Co-authored-by: IDX GitHub Automation <[email protected]>
Base automatically changed from arshavir/sns-gov-api-helpers to master March 19, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant