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: adding e2e upgrade test for v7.1 localhost #3164

Merged
merged 13 commits into from
Feb 21, 2023

Conversation

damiannolan
Copy link
Member

Description

  • Adding e2e upgrade test for localhost client and sentinel connection end

closes: #3033

Commit Message / Changelog Entry

NA

see the guidelines for commit messages. (view raw markdown for examples)


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md).
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

testing/simapp/app.go Outdated Show resolved Hide resolved
Copy link
Contributor

@chatton chatton left a comment

Choose a reason for hiding this comment

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

LGTM! I just had a few small comments but no blockers

e2e/testsuite/grpc_query.go Outdated Show resolved Hide resolved
testing/simapp/app.go Outdated Show resolved Hide resolved
@@ -549,6 +551,35 @@ func (s *UpgradeTestSuite) TestV6ToV7ChainUpgrade() {
})
}

func (s *UpgradeTestSuite) TestV7ChainUpgradeAddLocalhost() {
Copy link
Contributor

Choose a reason for hiding this comment

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

love how simple this test is 🥇

Co-authored-by: Cian Hatton <cian@interchain.io>
Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

Wahoo! 🎉

@colin-axner
Copy link
Contributor

Pretty cool to have an e2e upgrade migration tests for v7 -> v7.1, with super small diffs!


t.Run("upgrade chain", func(t *testing.T) {
govProposalWallet := s.CreateUserOnChainA(ctx, testvalues.StartingTokenAmount)
s.UpgradeChain(ctx, chain, govProposalWallet, v71.UpgradeName, testCfg.ChainAConfig.Tag, testCfg.UpgradeTag)
Copy link
Contributor

Choose a reason for hiding this comment

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

this needs to be updated?

Copy link
Member Author

Choose a reason for hiding this comment

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

updated! need to get the fix in #3172 included in this branch too. The else if we added earlier caused some weird issues in CI.

@damiannolan damiannolan merged commit 34a99fe into 09-localhost Feb 21, 2023
@damiannolan damiannolan deleted the damian/3033-localhost-upgrade-e2e branch February 21, 2023 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants