From 3919630eed79756efb9356ffcd4d265d625dc4ec Mon Sep 17 00:00:00 2001 From: Mathieu Baudet <1105398+ma2bd@users.noreply.github.com> Date: Fri, 20 Dec 2024 15:54:59 +0100 Subject: [PATCH] Revert "RemoteNet -> ExistingNet (#2998)" This reverts commit 909b3e725c86a1bdefd8dc01ac11006779388e54. --- .github/workflows/rust.yml | 6 +-- linera-service/Cargo.toml | 2 +- linera-service/src/cli_wrappers/mod.rs | 6 +-- .../{existing_net.rs => remote_net.rs} | 24 ++++----- linera-service/tests/linera_net_tests.rs | 52 +++++++++---------- 5 files changed, 45 insertions(+), 45 deletions(-) rename linera-service/src/cli_wrappers/{existing_net.rs => remote_net.rs} (85%) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 06157c65fe7..26e29cff013 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -40,7 +40,7 @@ permissions: contents: read jobs: - existing-net-test: + remote-net-test: runs-on: ubuntu-latest-8-cores timeout-minutes: 40 @@ -65,9 +65,9 @@ jobs: cargo run --bin linera -- resource-control-policy --block 0.0000001 cargo run --bin linera -- resource-control-policy --block 0.000000 cargo run --bin linera -- faucet --amount 1000 --port 8079 69705f85ac4c9fef6c02b4d83426aaaf05154c645ec1c61665f8e450f0468bc0 & - - name: Run the existing-net tests + - name: Run the remote-net tests run: | - cargo test -p linera-service existing_net_grpc --features existing-net + cargo test -p linera-service remote_net_grpc --features remote-net execution-wasmtime-test: runs-on: ubuntu-latest diff --git a/linera-service/Cargo.toml b/linera-service/Cargo.toml index 1092715c2cd..352681d4403 100644 --- a/linera-service/Cargo.toml +++ b/linera-service/Cargo.toml @@ -54,7 +54,7 @@ kubernetes = [ "dep:pathdiff", "dep:fs_extra", ] -existing-net = [] +remote-net = [] metrics = ["prometheus", "linera-base/metrics", "linera-client/metrics"] storage-service = ["linera-client/storage-service", "linera-storage-service"] diff --git a/linera-service/src/cli_wrappers/mod.rs b/linera-service/src/cli_wrappers/mod.rs index 3e032b6c442..0462aac4c96 100644 --- a/linera-service/src/cli_wrappers/mod.rs +++ b/linera-service/src/cli_wrappers/mod.rs @@ -8,9 +8,6 @@ /// How to run docker operations pub mod docker; -#[cfg(all(with_testing, feature = "existing-net"))] -/// How to connect to an existing/running network. -pub mod existing_net; #[cfg(feature = "kubernetes")] /// How to run helmfile operations mod helmfile; @@ -25,6 +22,9 @@ mod kubectl; pub mod local_kubernetes_net; /// How to run Linera validators locally as native processes. pub mod local_net; +#[cfg(all(with_testing, feature = "remote-net"))] +/// How to connect to running GCP DevNet. +pub mod remote_net; #[cfg(feature = "kubernetes")] /// Util functions for the wrappers mod util; diff --git a/linera-service/src/cli_wrappers/existing_net.rs b/linera-service/src/cli_wrappers/remote_net.rs similarity index 85% rename from linera-service/src/cli_wrappers/existing_net.rs rename to linera-service/src/cli_wrappers/remote_net.rs index de6a69377e9..79ad399875b 100644 --- a/linera-service/src/cli_wrappers/existing_net.rs +++ b/linera-service/src/cli_wrappers/remote_net.rs @@ -15,12 +15,12 @@ use super::{ Network, OnClientDrop, }; -pub struct ExistingNetTestingConfig { +pub struct RemoteNetTestingConfig { faucet: Faucet, } -impl ExistingNetTestingConfig { - /// Creates a new [`ExistingNetTestingConfig`] for running tests with an existing Linera +impl RemoteNetTestingConfig { + /// Creates a new [`RemoteNetTestingConfig`] for running tests with an external Linera /// network. /// /// The `faucet_url` is used to connect to the network and obtain its configuration, @@ -39,14 +39,14 @@ impl ExistingNetTestingConfig { } #[async_trait] -impl LineraNetConfig for ExistingNetTestingConfig { - type Net = ExistingNet; +impl LineraNetConfig for RemoteNetTestingConfig { + type Net = RemoteNet; async fn instantiate(self) -> Result<(Self::Net, ClientWrapper)> { let seed = 37; - let mut net = ExistingNet::new(Some(seed), &self.faucet) + let mut net = RemoteNet::new(Some(seed), &self.faucet) .await - .expect("Creating ExistingNet should not fail"); + .expect("Creating RemoteNet should not fail"); let client = net.make_client().await; // The tests assume we've created a genesis config with 2 @@ -78,7 +78,7 @@ impl LineraNetConfig for ExistingNetTestingConfig { /// Remote net #[derive(Clone)] -pub struct ExistingNet { +pub struct RemoteNet { network: Network, testing_prng_seed: Option, next_client_id: usize, @@ -86,10 +86,10 @@ pub struct ExistingNet { } #[async_trait] -impl LineraNet for ExistingNet { +impl LineraNet for RemoteNet { async fn ensure_is_running(&mut self) -> Result<()> { // Leaving this just returning for now. - // We would have to connect to each validator in the existing net then run + // We would have to connect to each validator in the remote net then run // ensure_connected_cluster_is_running Ok(()) } @@ -113,12 +113,12 @@ impl LineraNet for ExistingNet { } async fn terminate(&mut self) -> Result<()> { - // We're not killing the existing network :) + // We're not killing the remote net :) Ok(()) } } -impl ExistingNet { +impl RemoteNet { async fn new(testing_prng_seed: Option, faucet: &Faucet) -> Result { let tmp_dir = Arc::new(tempdir()?); // Write json config to disk diff --git a/linera-service/tests/linera_net_tests.rs b/linera-service/tests/linera_net_tests.rs index 7033d4e97dd..8dd48379e72 100644 --- a/linera-service/tests/linera_net_tests.rs +++ b/linera-service/tests/linera_net_tests.rs @@ -7,7 +7,7 @@ feature = "scylladb", feature = "storage-service", feature = "kubernetes", - feature = "existing-net" + feature = "remote-net" ))] mod common; @@ -37,14 +37,14 @@ use linera_sdk::{ base::{BlobContent, BlockHeight}, DataBlobHash, }; -#[cfg(feature = "existing-net")] -use linera_service::cli_wrappers::existing_net::ExistingNetTestingConfig; #[cfg(any( feature = "dynamodb", feature = "scylladb", feature = "storage-service", ))] use linera_service::cli_wrappers::local_net::{Database, LocalNetConfig}; +#[cfg(feature = "remote-net")] +use linera_service::cli_wrappers::remote_net::RemoteNetTestingConfig; #[cfg(any( feature = "dynamodb", feature = "scylladb", @@ -377,7 +377,7 @@ impl AmmApp { #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_ethereum_tracker(config: impl LineraNetConfig) -> Result<()> { use ethereum_tracker::{EthereumTrackerAbi, InstantiationArgument}; @@ -481,7 +481,7 @@ async fn test_wasm_end_to_end_ethereum_tracker(config: impl LineraNetConfig) -> #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_counter(config: impl LineraNetConfig) -> Result<()> { use counter::CounterAbi; @@ -534,7 +534,7 @@ async fn test_wasm_end_to_end_counter(config: impl LineraNetConfig) -> Result<() #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_counter_publish_create(config: impl LineraNetConfig) -> Result<()> { use counter::CounterAbi; @@ -584,7 +584,7 @@ async fn test_wasm_end_to_end_counter_publish_create(config: impl LineraNetConfi #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_social_user_pub_sub(config: impl LineraNetConfig) -> Result<()> { use linera_base::time::Instant; @@ -691,8 +691,8 @@ async fn test_wasm_end_to_end_social_user_pub_sub(config: impl LineraNetConfig) #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc), "native-fungible" ; "native_aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build), "fungible" ; "kubernetes_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build), "native-fungible" ; "native_kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None), "fungible" ; "existing_net_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None), "native-fungible" ; "native_existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None), "fungible" ; "remote_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None), "native-fungible" ; "native_remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_fungible( config: impl LineraNetConfig, @@ -855,8 +855,8 @@ async fn test_wasm_end_to_end_fungible( #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc), "native-fungible" ; "native_aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build), "fungible" ; "kubernetes_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build), "native-fungible" ; "native_kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None), "fungible" ; "existing_net_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None), "native-fungible" ; "native_existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None), "fungible" ; "remote_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None), "native-fungible" ; "native_remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_same_wallet_fungible( config: impl LineraNetConfig, @@ -978,7 +978,7 @@ async fn test_wasm_end_to_end_same_wallet_fungible( #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_non_fungible(config: impl LineraNetConfig) -> Result<()> { use non_fungible::{NftOutput, NonFungibleTokenAbi}; @@ -1256,7 +1256,7 @@ async fn test_wasm_end_to_end_non_fungible(config: impl LineraNetConfig) -> Resu #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_crowd_funding(config: impl LineraNetConfig) -> Result<()> { use std::collections::BTreeMap; @@ -1392,7 +1392,7 @@ async fn test_wasm_end_to_end_crowd_funding(config: impl LineraNetConfig) -> Res #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_matching_engine(config: impl LineraNetConfig) -> Result<()> { use std::collections::BTreeMap; @@ -1684,7 +1684,7 @@ async fn test_wasm_end_to_end_matching_engine(config: impl LineraNetConfig) -> R #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_amm(config: impl LineraNetConfig) -> Result<()> { use std::collections::BTreeMap; @@ -2427,7 +2427,7 @@ async fn test_resolve_binary() -> Result<()> { #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_open_chain_node_service(config: impl LineraNetConfig) -> Result<()> { use std::collections::BTreeMap; @@ -2549,7 +2549,7 @@ async fn test_open_chain_node_service(config: impl LineraNetConfig) -> Result<() #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_end_to_end_multiple_wallets(config: impl LineraNetConfig) -> Result<()> { let _guard = INTEGRATION_TEST_GUARD.lock().await; @@ -2595,7 +2595,7 @@ async fn test_end_to_end_multiple_wallets(config: impl LineraNetConfig) -> Resul #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_end_to_end_open_multi_owner_chain(config: impl LineraNetConfig) -> Result<()> { let _guard = INTEGRATION_TEST_GUARD.lock().await; @@ -2664,7 +2664,7 @@ async fn test_end_to_end_open_multi_owner_chain(config: impl LineraNetConfig) -> #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_end_to_end_change_ownership(config: impl LineraNetConfig) -> Result<()> { use linera_base::crypto::PublicKey; @@ -2706,7 +2706,7 @@ async fn test_end_to_end_change_ownership(config: impl LineraNetConfig) -> Resul #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_end_to_end_assign_greatgrandchild_chain(config: impl LineraNetConfig) -> Result<()> { let _guard = INTEGRATION_TEST_GUARD.lock().await; @@ -2752,7 +2752,7 @@ async fn test_end_to_end_assign_greatgrandchild_chain(config: impl LineraNetConf #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_end_to_end_publish_data_blob_in_cli(config: impl LineraNetConfig) -> Result<()> { let _guard = INTEGRATION_TEST_GUARD.lock().await; @@ -2784,7 +2784,7 @@ async fn test_end_to_end_publish_data_blob_in_cli(config: impl LineraNetConfig) #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_end_to_end_faucet(config: impl LineraNetConfig) -> Result<()> { let _guard = INTEGRATION_TEST_GUARD.lock().await; @@ -2861,7 +2861,7 @@ async fn test_end_to_end_faucet(config: impl LineraNetConfig) -> Result<()> { #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] #[ignore = "This test takes a long time to run"] async fn test_end_to_end_faucet_with_long_chains(config: impl LineraNetConfig) -> Result<()> { @@ -2920,7 +2920,7 @@ async fn test_end_to_end_faucet_with_long_chains(config: impl LineraNetConfig) - #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_end_to_end_fungible_client_benchmark(config: impl LineraNetConfig) -> Result<()> { use linera_base::command::CommandExt; @@ -2965,7 +2965,7 @@ async fn test_end_to_end_fungible_client_benchmark(config: impl LineraNetConfig) #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_end_to_end_listen_for_new_rounds(config: impl LineraNetConfig) -> Result<()> { use std::{ @@ -3080,7 +3080,7 @@ async fn test_end_to_end_listen_for_new_rounds(config: impl LineraNetConfig) -> #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc) ; "scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc) ; "aws_grpc"))] #[cfg_attr(feature = "kubernetes", test_case(SharedLocalKubernetesNetTestingConfig::new(Network::Grpc, BuildArg::Build) ; "kubernetes_grpc"))] -#[cfg_attr(feature = "existing-net", test_case(ExistingNetTestingConfig::new(None) ; "existing_net_grpc"))] +#[cfg_attr(feature = "remote-net", test_case(RemoteNetTestingConfig::new(None) ; "remote_net_grpc"))] #[test_log::test(tokio::test)] async fn test_end_to_end_repeated_transfers(config: impl LineraNetConfig) -> Result<()> { let _guard = INTEGRATION_TEST_GUARD.lock().await;