FuelLabs / fuel-core

Rust full node implementation of the Fuel v2 protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

E2E Testing for On-Chain Data

bvrooman opened this issue · comments

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:

Aftermath testing:

  • Test that all tables are consistent before and after regenesis via API calls
    • Blocks, contract balances, coins, messages
  • Process
    • Get the resource via API call
    • Perform regenesis
    • Get the resource via API call again
    • Compare