-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
rpc-alt: e2e tests #20729
base: amnn/rpc-metrics
Are you sure you want to change the base?
rpc-alt: e2e tests #20729
Conversation
## Description Make various configs public, mainly so they can be used from the test config. ## Test plan CI
## Description This change adds a new custom command to the transactional test runner for calling a JSON-RPC query. This is supported by a new function on the `OffchainStateReader` trait to execute that JSON-RPC query, which is implemented trivially in the GraphQL transactional tests. ## Test plan CI
## Description Set-up transactional tests for Indexer-Alt and RPC-Alt ## Test plan Run the new transactional tests: ``` sui$ cargo nextest run -p sui-indexer-alt-e2e-tests ```
## Description This used to be part of the interface neded by the transactional test runner to talk to the off chain state of the test cluster, but it is no longer in use (and isn't necessary for `sui-indexer-alt`), so it's easiest to get rid of it. ## Test plan ``` sui$ cargo nextest run \ -p sui-indexer-alt-e2e-tests \ -p sui-graphql-e2e-tests ```
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
// The test description is at the top because the JSON does not have explicit | ||
// syntax for comments. | ||
|
||
//# run-graphql |
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.
Should this be run-jsonrpc?
Also curious why it was possible to mix up? Should we error if it happens?
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.
No this is as intended. We do error if you try to run the wrong kind of query, and in fact this is the test for that (see the comments above this line).
Description
Add support for testing JSON-RPC methods in the transactional test runner, and set-up some tests for
sui-indexer-alt
andsui-indexer-alt-jsonrpc
(testing the test framework itself, and the RGP method).Test plan
Stack
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.