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

E2E Testing for Off-Chain Data #1764

Open
9 of 11 tasks
bvrooman opened this issue Mar 18, 2024 · 0 comments
Open
9 of 11 tasks

E2E Testing for Off-Chain Data #1764

bvrooman opened this issue Mar 18, 2024 · 0 comments

Comments

@bvrooman
Copy link
Contributor

bvrooman commented Mar 18, 2024

General test outline:

  1. Setup the resource data to a known state on the node
  2. Run regenesis on the node
  3. Query the node for the resource state
  4. Compare the resource state after regenesis to the known state
  5. If the states are equal, the tests pass; otherwise, the tests fail

Criteria:

In (https://github.com/FuelLabs/fuel-core-regenesis/pull/10):

  • E2E test to confirm that Blocks are consistent before and after regenesis
  • E2E test to confirm that ChainInfo and Node Info are consistent before and after regenesis
  • E2E test to confirm that Transactions are consistent before and after regenesis
  • E2E test to confirm that Transaction Receipts are consistent before and after regenesis
  • E2E test to confirm that owned coins are consistent before and after regenesis
  • E2E test to confirm that transactions by owner are consistent before and after regenesis
  • E2E test to confirm that owned message IDs are consistent before and after regenesis
  • E2E test to confirm that block IDs (FuelBlockIdsToHeights) are consistent before and after regenesis
  • E2E test to confirm that transaction statuses are consistent before and after regenesis

Other:

  • E2E test to confirm that Message proofs are consistent before and after regenesis
  • E2E test to confirm that statistics are consistent before and after regenesis

Endpoints we won't test:

  • latest_gas_price
  • estimate_gas_price
  • connected_peers_info
  • dry_run
  • dry_run_opt
  • estimate_predicates
  • relayed_transaction_status
  • produce_blocks
  • vm endpoints
  • tx subscription

Related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants