From 9ded7bad95c942703e9e9554f49c37d388545d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Thir=C3=A9?= Date: Tue, 21 Jan 2025 15:00:51 +0100 Subject: [PATCH 1/2] Tezt/Cloud: Fix daemon name for etherlink operator --- tezt/tests/cloud/dal.ml | 1 - 1 file changed, 1 deletion(-) diff --git a/tezt/tests/cloud/dal.ml b/tezt/tests/cloud/dal.ml index 1ca661ab7bd6..b0e31c97b5ad 100644 --- a/tezt/tests/cloud/dal.ml +++ b/tezt/tests/cloud/dal.ml @@ -1815,7 +1815,6 @@ let init_etherlink_dal_node ~bootstrap ~next_agent ~dal_slots ~network ~otel let init_etherlink_operator_setup cloud configuration etherlink_configuration name ~bootstrap ~dal_slots account batching_operators agent next_agent = let is_sequencer = etherlink_configuration.etherlink_sequencer in - let name = Format.asprintf "etherlink-%s-node" name in let data_dir = configuration.data_dir |> Option.map (fun data_dir -> data_dir // name) in -- GitLab From 54b2d7d7a9bc085d445fe561395a8b3f14d35d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Thir=C3=A9?= Date: Tue, 21 Jan 2025 15:01:15 +0100 Subject: [PATCH 2/2] Tezt/Cloud: Allow CORS for Etherlink operator --- tezt/tests/cloud/dal.ml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tezt/tests/cloud/dal.ml b/tezt/tests/cloud/dal.ml index b0e31c97b5ad..68675764bb4a 100644 --- a/tezt/tests/cloud/dal.ml +++ b/tezt/tests/cloud/dal.ml @@ -1952,6 +1952,20 @@ let init_etherlink_operator_setup cloud configuration etherlink_configuration let mode = if is_sequencer then sequencer_mode else Evm_node.Proxy in let* evm_node = Tezos.Evm_node.Agent.init + ~patch_config:(fun json -> + JSON.update + "public_rpc" + (fun json -> + JSON.update + "cors_headers" + (fun _ -> + JSON.annotate ~origin:"patch-config:cors_headers" + @@ `A [`String "*"]) + json + |> JSON.update "cors_origins" (fun _ -> + JSON.annotate ~origin:"patch-config:cors_origins" + @@ `A [`String "*"])) + json) ~name:(Format.asprintf "etherlink-%s-evm-node" name) ~mode endpoint -- GitLab