Initial pass at Rosetta test-agent #5516
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The test agent process runs alongside the network + archive + rosetta.
It pokes Coda to manipulate its state (starting/stopping staking,
sending transactions, etc). And it peeks at Rosetta to observe that
after poking the state of the world makes sense.
This PR sets up the initial scaffolding for the above system with a
simple GraphQL mutation and Rosetta request.
For now, peeking at Rosetta is done via making HTTP requests, but we can
complement it with peeking actions performed by the Rosetta
CLI in future commits.
This agent can be used with a local demo build, but also is reusable
against QA-nets and real networks.
Reviewers
I'm intentionally putting up this simple version for review now for folks
to raise concerns with the high-level structure of this system before I
dive too deep implementing a bunch of tests. Please raise those concerns
should they exist now.