-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(sns): Migrate upgrade qualification tests to AdvanceSnsTargetVer…
…sion (#2981) The upgrade tests are implemented by calling `test_sns_upgrade`. This PR changes that function to use the new mechanism rather than the old. I don't think it's necessary to retain test coverage for the old mechanism. [NNS1-3441](https://dfinity.atlassian.net/browse/NNS1-3441) [NNS1-3441]: https://dfinity.atlassian.net/browse/NNS1-3441?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information
Showing
7 changed files
with
257 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
rs/nervous_system/integration_tests/tests/sns_release_qualification_legacy.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use ic_sns_wasm::pb::v1::SnsCanisterType; | ||
|
||
mod sns_upgrade_test_utils_legacy; | ||
use sns_upgrade_test_utils_legacy::test_sns_upgrade_legacy; | ||
|
||
/// Legacy upgrade Tests | ||
/// | ||
#[tokio::test] | ||
async fn test_upgrade_swap() { | ||
test_sns_upgrade_legacy(vec![SnsCanisterType::Swap]).await; | ||
} | ||
|
||
#[tokio::test] | ||
async fn test_upgrade_sns_gov_root() { | ||
test_sns_upgrade_legacy(vec![SnsCanisterType::Root, SnsCanisterType::Governance]).await; | ||
} | ||
|
||
#[tokio::test] | ||
async fn test_upgrade_upgrade_sns_gov_root() { | ||
test_sns_upgrade_legacy(vec![SnsCanisterType::Governance, SnsCanisterType::Root]).await; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.