Refactor E2E Tests for SDK v0.47 & IBC v7 #2536
Labels
dependencies
Pull requests that update a dependency file
S: KTLO
Keeping the lights on: Keeping the current product operational (bugs, troubleshooting, deps updates)
scope: testing
Code review, testing, making sure the code is following the specification.
Problem
Refactor existing base e2e tests and add new test cases for updated APIs.
Background
In order to accommodate the upgrade to SDK v0.47 and IBC v7, a minimal PR was opened to upgrade Gaia so that only unit and liveness tests would pass. All E2E tests were left commented out, to be reintroduced and/or refactored to be consistent with the new libraries and corresponding API's.
Closing criteria
Problem details
Gaia's E2E test suites exist to ensure safety against regressions for critical user journeys.
The following user journeys will remain consistent from SDK v0.45 to v0.47 and are categorized by executing module. These tests are currently commented out in the base branch and may need to be refactored.
Existing Test Suites
testRestInterfaces
- Ensure node and module REST endpoints have been configured and return a 200.testBankTokenTransfer
- Send tokens from account A to account B on the same chaintestBypassMinFeeWithdrawReward
- Submit a gov param change proposal to change the bypass-min-fee message to includeMsgWithdrawDelegatorReward
and test succcess and failure cases with different fee amounts.testEncode
- Encode transaction from json to base64testDecode
- Decode a transaction from base64 to jsontestEvidence
- Verify the expected volume of evidence generated in test setup persists and is is queryabletestFeeGrant
- Execute a fee grant so that account 1 will pay fees for account 2 on chain A. Verify that expected fees are deducted.testGlobalFees
- Validate expected global fee configuration again test case matrixtestQueryGlobalFeesInGenesis
- Validate globalfee initialized in genesistestIBCTokenTransfer
- Send tokens from account A on chain 1 to account A on chain BtestMultihopIBCTokenTransfer
(PFM) - Send tokens using packet-forward-middleware from account A on chain 1 through account A on chain 2 to account B on chain 1. Verify tokens successfully received.testFailedMultihopIBCTokenTransfer
(PFM) - Send tokens from account A on chain 1 through a nonviable address on chain 2. Verify transaction fails and tokens are returned to sender.testIBCBypassMsg
- Test fee bypassing for IBC messages:MsgRecvPacket
,MsgAcknowledgement
,MsgAcknowledgement
, andMsgUpdateClient
testSlashing
- Successfully unjail validator previously jailed in test setup.testStaking
- Successfully delegate and redelegate tokens to a validator.testDistribution
- Successfully set new withdrawal address and withdraw rewards to it.testDelayedVestingAccount
- Verify token transfers fail until after end time.testContinuousVestingAccount
- Verify token transfer succeeds with expected amount after start time.Refactor
GovSoftwareUpgrade
->LegacySoftwareUpgrade
- Execute a software upgrade proposal and verify chain halts at expected height.GovCancelSoftwareUpgrade
-LegacyCancelSoftwareUpgrade
- Execute a software upgrade proposal and subsequent cancel upgrade proposal. Verify chain does not halt at original proposal's halt-height.GovCommunityPoolSpend
- DeprecateAddRemoveConsumerChain
- Execute an add consumer chain proposal, and subsequent remove consumer chain proposal.New Tests
testSubmitBankSendProposal
- Execute a gov proposal with the new gov API that executes a bank send to an address from the gov module account,testSubmitSoftwareUpgrade
- Execute a software upgrade proposal with the new gov APItestCancelSoftwareUpgrade
- Execute a cancel software upgrade proposal with the new gov APItestMultiSend
- Execute a bank multisendTask list
QA
Update existing test suites to pass against the v47 feature branch
Add additional tests for API changes
Nice to have
The text was updated successfully, but these errors were encountered: