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): Add unit tests for automatic upgrades triggered when target version ahead of deployed version #2784

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

anchpop
Copy link
Contributor

@anchpop anchpop commented Nov 23, 2024

This PR contributes unit tests of the whole automatic-upgrade process (as triggered by target_version being set). It adds a test for Governance and Root.

Why add unit tests when we already have integration tests?

Certain scenarios are much easier to test via unit testing. These tests lay the groundwork for a test I want to write which will exercise edge cases w.r.t. archive canisters, which are too hard to exercise in an integration test

@github-actions github-actions bot added the test label Nov 23, 2024
@anchpop anchpop force-pushed the @anchpop/more-unit-tests branch 4 times, most recently from e18b9bc to 104905d Compare November 25, 2024 18:11
@anchpop anchpop marked this pull request as ready for review November 25, 2024 18:15
@anchpop anchpop requested a review from a team as a code owner November 25, 2024 18:15
@anchpop anchpop force-pushed the @anchpop/more-unit-tests branch 2 times, most recently from fee5473 to e761663 Compare November 25, 2024 21:25
@anchpop anchpop enabled auto-merge November 25, 2024 21:25
@anchpop anchpop force-pushed the @anchpop/more-unit-tests branch from e761663 to 9eb6e6b Compare November 25, 2024 21:29
@anchpop anchpop added this pull request to the merge queue Nov 25, 2024
Merged via the queue into master with commit a73289e Nov 25, 2024
24 checks passed
@anchpop anchpop deleted the @anchpop/more-unit-tests branch November 25, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants