-
Notifications
You must be signed in to change notification settings - Fork 116
[Testing Infra] V6 genesis recovery state test suite #1226
base: v6
Are you sure you want to change the base?
[Testing Infra] V6 genesis recovery state test suite #1226
Conversation
implement functional tests for: - exporting db backup to json - creating genesis blob from json - creating genesis blob in one shot from db backup TODO: launch test node from from genesis.blob TODO: e2e tests from a fixture file
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nitpicks, other than these (maybe I missed something) but I am not seeing where the account state post initialization is compared with the state used for recovery (e.g. checking that balances are the same / state is the same as expected).
Good call. Yeah checking the state should be done (I have a The best testsuite to do that is Forge or the higher level Smoke Tests. Though I'm not entirely sure how to start a Forge instance with an arbitrary Genesis blob. Maybe a volunteer of @simsekgokhan can figure this out? |
@corynthian I've pushed the changes you asked for including an onchain verifcation. @simsekgokhan Please confirm that running I think Forge, or Smoke test may be the only way to introspect this correctly. But I think some refactoring is needed to have it use a genesis.blob |
- refactor recovery tests
@0xzoz can you merge? |
I dont have write access. It would be good to get one more approval as well. My eyes are not as well trained as others🙂 |
Adding functional tests for
ol-genesis-tools
for: