-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
P1High: Likely tackled by core team if no one steps upHigh: Likely tackled by core team if no one steps updif:expertExtensive knowledge (implications, ramifications) requiredExtensive knowledge (implications, ramifications) requiredkind:testTesting workTesting worktype:issue
Description
Rationale:
In our current tests we spawn each time new fresh network. This means we just have an empty network without any data, balances or cheques etc. Given the nature of the network, it is unrealistic to deterministically set up the network to the same state by performing actions on top of it. Therefore the approach would be to take a snapshot of the locally run environment and run tests against it.
This comes as an outcome from a testing discussion on April 7th 2021
Phases/TODO:
-
Local environment
- Create a local environment of 5 bee nodes with a local blockchain (ideally geth), deploy BZZ token, chequebook factory contract (and soon postage stamps). Make this replicable (either script or at least steps)
-
CI job for cheques tests
- Get the bee nodes into a state that we like in terms of accounting - have some nonzero balances and several cheques.
- Save the blockchain state and
keystoreandstatestoreof Bee - Create CI job that spawns the local environment and restores the state
- Run chequebook tests against it (cashing out cheques, probably also the depositing and withdrawing)
-
CI job for feeds and other data
- Get the bee nodes into a state that we want - probably some existing feeds and data
- Save this state now including the
localstoreand use it in the CI - Run feed tests against it
-
Replace the current test environment
- This may include restoring the state between different tests so that we have predictable environment
nugaon
Metadata
Metadata
Assignees
Labels
P1High: Likely tackled by core team if no one steps upHigh: Likely tackled by core team if no one steps updif:expertExtensive knowledge (implications, ramifications) requiredExtensive knowledge (implications, ramifications) requiredkind:testTesting workTesting worktype:issue