diff --git a/etherlink/tezt/tests/evm_sequencer.ml b/etherlink/tezt/tests/evm_sequencer.ml index cf473523d22809377e84f0fa6e499e5014dfb01e..80725bb1b9d644ca36466e1cc94e921864a9a6e2 100644 --- a/etherlink/tezt/tests/evm_sequencer.ml +++ b/etherlink/tezt/tests/evm_sequencer.ml @@ -10319,21 +10319,17 @@ let test_describe_endpoint = protocol in let hooks = Tezos_regression.hooks in - let endpoint = - Client.(Foreign_endpoint (Evm_node.rpc_endpoint_record sequencer)) + let sequencer_endpoint = Evm_node.rpc_endpoint_record sequencer in + (* List all the endpoint of the sequencer *) + let root_endpoint = Client.(Foreign_endpoint sequencer_endpoint) in + let* (_ : string) = Client.rpc_list ~hooks ~endpoint:root_endpoint client in + (* List the endpoints of the /tezlink directory *) + let tezlink_endpoint = + Client.(Foreign_endpoint {sequencer_endpoint with path = "/tezlink"}) in - let* (_ : string) = Client.rpc_list ~hooks ~endpoint client in - let path = "/tezlink/describe?recurse=yes" in - (* TODO replace with a call of octez-client when it supports a non empty - root see !17532 *) - let* res = - (* We check that the "/tezlink/describe" RPC is available. We don't record - the result in the regression trace because it is already contained in - the call to "/describe" above. *) - Curl.get_raw ~args:["-v"] (Evm_node.endpoint sequencer ^ path) - |> Runnable.run + let* (_ : string) = + Client.rpc_list ~hooks ~endpoint:tezlink_endpoint client in - let _ = JSON.parse ~origin:"curl_tezlink_describe" res in unit let test_relay_restricted_rpcs = diff --git a/etherlink/tezt/tests/expected/evm_sequencer.ml/Alpha- Test the -describe endpoint.out b/etherlink/tezt/tests/expected/evm_sequencer.ml/Alpha- Test the -describe endpoint.out index a08b05e6fea92f65cb69a7cf4a9156c7b694e29c..c4abd351c3f7643e63090e7605df690fc9467576 100644 --- a/etherlink/tezt/tests/expected/evm_sequencer.ml/Alpha- Test the -describe endpoint.out +++ b/etherlink/tezt/tests/expected/evm_sequencer.ml/Alpha- Test the -describe endpoint.out @@ -72,3 +72,47 @@ Warning: Failed to acquire the protocol version from the node Did not find service: GET http://[HOST]:[PORT]/chains/main/blocks/head/protocols + +./octez-client rpc list + +Available services: + + + chains//blocks// + - GET /chains//blocks//context/constants + All constants + - GET /chains//blocks//context/contracts//balance + The spendable balance of a contract (in mutez), also known as liquid + balance. Corresponds to tez owned by the contract that are neither + staked, nor in unstaked requests, nor in frozen bonds. Identical to + the 'spendable' RPC. + - GET /chains//blocks//helpers/current_level + Returns the level of the interrogated block, or the one of a block + located `offset` blocks after it in the chain. For instance, the next + block if `offset` is 1. The offset cannot be negative. + - GET /chains//blocks//protocols + Current and next protocol. + - GET /version + Get information on the node version + + +Dynamic parameter description: + + + A contract identifier encoded in b58check. + + A block identifier. This can take one of the following + values: + 1.Block-hash - Hash in Base58Check notation. + 2.Alias - One of + the following:'genesis/ head/ caboose/ savepoint/ + checkpoint'. + 3.Block-level - index(integer) in the chain. + One can + also specify the relative positions of block with respect to above + three block identifiers. For ex. 'checkpoint~N' or checkpoint+N, where + N is an integer, denotes the Nth block before(~) or after (+) the + checkpoint. + + A chain identifier. This is either a chain hash in Base58Check notation + or a one the predefined aliases: 'main', 'test'. +