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

ICS20 authz E2E happy path #2996

Merged
merged 9 commits into from
Jan 11, 2023

Conversation

chatton
Copy link
Contributor

@chatton chatton commented Jan 11, 2023

Description

ref: #2964

Commit Message / Changelog Entry

e2e: added happy path e2e test for ICS20 authz integration

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.
  • 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.

Comment on lines +568 to +573
func getValidatorsAndFullNodes() (int, int) {
if testconfig.IsCI() {
return 4, 1
}
return 1, 0
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unrelated QOL change to allow running tests locally to run faster.

Copy link
Member

Choose a reason for hiding this comment

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

nice

Copy link
Contributor

Choose a reason for hiding this comment

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

yes i love this!

@chatton chatton marked this pull request as ready for review January 11, 2023 10:47
@chatton chatton mentioned this pull request Jan 11, 2023
9 tasks
Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

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

Nice work! LGTM 🚀

Comment on lines +568 to +573
func getValidatorsAndFullNodes() (int, int) {
if testconfig.IsCI() {
return 4, 1
}
return 1, 0
}
Copy link
Member

Choose a reason for hiding this comment

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

nice

suite.Require().NoError(err)
})

t.Run("exec MsgTransfer", func(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

wonder if we should reword this a little

Suggested change
t.Run("exec MsgTransfer", func(t *testing.T) {
t.Run("broadcast MsgExec for ibc MsgTransfer", func(t *testing.T) {

@@ -129,6 +130,13 @@ func GetChainBTag() string {
return chainBTag
}

// IsCI returns true if the tests are running in CI, false is returned
// if the tests are running locally.
// Note: github actions passes a CI env value of true by default to all runners.
Copy link
Contributor

Choose a reason for hiding this comment

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

nice 🎉

suite.Require().Equal(testvalues.IBCTransferAmount, actualBalance)
})

t.Run("granter grant spend limit reduced", func(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.

should we try to broadcast another MsgGrant to make sure it overwrites the first?

Copy link
Contributor

@charleenfei charleenfei left a comment

Choose a reason for hiding this comment

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

nice work :)

@chatton chatton merged commit aabb07a into feat/authz-ics20 Jan 11, 2023
@chatton chatton deleted the cian/issue#2964-authz/ics20-add-e2e-tests branch January 11, 2023 16:59
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