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

Add e2e for changing controller params. #3872

Merged
merged 5 commits into from
Jun 20, 2023

Conversation

DimitrisJim
Copy link
Contributor

@DimitrisJim DimitrisJim commented Jun 16, 2023

Description

closes: #2116

Commit Message / Changelog Entry

chore: add e2e test for changing controller params.

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.

@DimitrisJim DimitrisJim force-pushed the add-controller-e2e-params-test branch from 276ab26 to 6dc8e7d Compare June 16, 2023 18:33
@DimitrisJim DimitrisJim marked this pull request as ready for review June 16, 2023 18:34
@DimitrisJim DimitrisJim force-pushed the add-controller-e2e-params-test branch 2 times, most recently from f3f469c to 10d83ba Compare June 17, 2023 11:27
@DimitrisJim DimitrisJim force-pushed the add-controller-e2e-params-test branch from 10d83ba to b061b53 Compare June 17, 2023 18:37
Copy link
Contributor

@crodriguezvega crodriguezvega left a comment

Choose a reason for hiding this comment

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

Thank for adding this, @DimitrisJim. I left a bunch of minor suggestions.

And a question: should we add this test to the appropriate .json files for compatibility testing?

e2e/tests/interchain_accounts/params_test.go Outdated Show resolved Hide resolved
e2e/tests/interchain_accounts/params_test.go Outdated Show resolved Hide resolved
e2e/tests/interchain_accounts/params_test.go Outdated Show resolved Hide resolved
e2e/tests/interchain_accounts/params_test.go Show resolved Hide resolved
e2e/tests/interchain_accounts/params_test.go Outdated Show resolved Hide resolved
@DimitrisJim
Copy link
Contributor Author

DimitrisJim commented Jun 19, 2023

And a question: should we add this test to the appropriate .json files for compatibility testing?

I've added this as a point to the epic in #2010 to keep track of it. IIRC this has only been done for 02-client so far so we can add these all together in a single PR. No problem adding here if its a preference.

@DimitrisJim DimitrisJim added github_actions Pull requests that update Github_actions code e2e 27-interchain-accounts and removed github_actions Pull requests that update Github_actions code labels Jun 19, 2023
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.

Terrific work my friend!

Comment on lines 14 to 17
"github.com/cosmos/ibc-go/e2e/testsuite"
"github.com/cosmos/ibc-go/e2e/testvalues"
"github.com/strangelove-ventures/interchaintest/v7/ibc"
"github.com/stretchr/testify/suite"
Copy link
Contributor

Choose a reason for hiding this comment

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

a bit unconventional import structing. Usually its

// standard lib

// external imports

// ibc-go imports

but we haven't established a practice for individual go.mod's still within the ibc-go repo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah I'll fix this up. Ideally we should add the same linting targets in the e2e makefile to have all go code follow a similar structure.

"github.com/stretchr/testify/suite"
)

func TestInterchainAccountsParamsTestSuite(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we will need to add this to our compatibility test matrix

Copy link
Contributor

@crodriguezvega crodriguezvega left a comment

Choose a reason for hiding this comment

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

Dope! 😄

@crodriguezvega crodriguezvega merged commit 782f43a into main Jun 20, 2023
@crodriguezvega crodriguezvega deleted the add-controller-e2e-params-test branch June 20, 2023 18:48
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.

Add param change e2e test for ics27 controller params
3 participants