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: group poa admin #62

Merged
merged 20 commits into from
May 29, 2024
Merged

test: group poa admin #62

merged 20 commits into from
May 29, 2024

Conversation

fmorency
Copy link
Collaborator

@fmorency fmorency commented May 21, 2024

Add Group Proposal tests for when POA is a group address (group admin is the group policy itself).

Test

  • Software upgrade plan scheduling and canceling
  • Manifest module parameters update
    • All parameters
    • Inflation == nil
    • Empty parameters
  • Manifest stakeholders payout (mint) and burn (relates Allow native token burning only by POA admin #65)
  • POA parameters update
    • All parameters
    • Empty admins
  • Bank send
    • Valid sender
    • Invalid sender
  • Token factory
    • Token create
    • Token modify metadata
    • Token mint and mint to
    • Token burn and burn from
    • Token force transfer
    • Token admin change

This PR is becoming huge so I want to get those merged. We can add more tests later.

Fixes #61

@fmorency fmorency self-assigned this May 21, 2024
Copy link

codecov bot commented May 21, 2024

Codecov Report

Attention: Patch coverage is 83.05085% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 72.31%. Comparing base (b16de8e) to head (7791945).

Files Patch % Lines
interchaintest/helpers/group.go 84.31% 4 Missing and 4 partials ⚠️
x/manifest/types/params.go 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #62      +/-   ##
==========================================
+ Coverage   71.96%   72.31%   +0.34%     
==========================================
  Files          32       33       +1     
  Lines        1737     1795      +58     
==========================================
+ Hits         1250     1298      +48     
- Misses        427      432       +5     
- Partials       60       65       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fmorency fmorency requested review from Reecepbcups and chalabi2 May 28, 2024 14:41
@fmorency fmorency added the test label May 28, 2024
@fmorency fmorency marked this pull request as ready for review May 28, 2024 14:42
return exec(ctx, chain, config, chain.GetNode().TxCommand(accAddr, execCommand...))
}

func exec(ctx context.Context, chain *cosmos.CosmosChain, config *ibc.ChainConfig, command []string) (string, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is essentially a wrapper around chainnode.ExecTx()

note to self for upstream: use a pattern which allows us to inject logic on a queried CosmosTx{} type. This way we can extend it's usage more, specifically for Group right away. Same for POA

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Absolutely, BUT chainnode.ExecTx() doesn't handle config.Env which I need.

@@ -0,0 +1,735 @@
package interchaintest
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make ictest-group-poa is not in the .github/workflows/e2e.yml file

Copy link
Collaborator

@Reecepbcups Reecepbcups left a comment

Choose a reason for hiding this comment

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

pre-approval once e2e is in CI and passes

@fmorency
Copy link
Collaborator Author

I'll re-run CI tomorrow, the test is failing because we reached the maximum number of Docker requests.

@fmorency fmorency merged commit cb572fd into liftedinit:main May 29, 2024
15 checks passed
@fmorency fmorency deleted the poa-group-test branch May 29, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consensus failure when manifest.Params doesn't contain params.Inflation
2 participants