From 62e263f342497589fe0c4d44357cf581210d2195 Mon Sep 17 00:00:00 2001 From: Andre da Silva Date: Tue, 3 Dec 2024 01:09:14 -0300 Subject: [PATCH] Remove SharedLocalKubernetesNetTestingConfig --- .../src/cli_wrappers/local_kubernetes_net.rs | 110 ------------------ linera-service/tests/linera_net_tests.rs | 27 ----- 2 files changed, 137 deletions(-) diff --git a/linera-service/src/cli_wrappers/local_kubernetes_net.rs b/linera-service/src/cli_wrappers/local_kubernetes_net.rs index 92c9af39f44e..9580a23945c0 100644 --- a/linera-service/src/cli_wrappers/local_kubernetes_net.rs +++ b/linera-service/src/cli_wrappers/local_kubernetes_net.rs @@ -15,11 +15,6 @@ use linera_base::{ use linera_execution::ResourceControlPolicy; use tempfile::{tempdir, TempDir}; use tokio::process::Command; -#[cfg(with_testing)] -use { - crate::cli_wrappers::wallet::FaucetOption, linera_base::command::current_binary_parent, - tokio::sync::OnceCell, -}; use crate::cli_wrappers::{ docker::{BuildArg, DockerImage}, @@ -31,12 +26,6 @@ use crate::cli_wrappers::{ ClientWrapper, LineraNet, LineraNetConfig, Network, OnClientDrop, }; -#[cfg(with_testing)] -static SHARED_LOCAL_KUBERNETES_TESTING_NET: OnceCell<( - Arc>, - ClientWrapper, -)> = OnceCell::const_new(); - /// The information needed to start a [`LocalKubernetesNet`]. pub struct LocalKubernetesNetConfig { pub network: Network, @@ -51,11 +40,6 @@ pub struct LocalKubernetesNetConfig { pub policy: ResourceControlPolicy, } -/// A wrapper of [`LocalKubernetesNetConfig`] to create a shared local Kubernetes network -/// or use an existing one. -#[cfg(with_testing)] -pub struct SharedLocalKubernetesNetTestingConfig(LocalKubernetesNetConfig); - /// A set of Linera validators running locally as native processes. #[derive(Clone)] pub struct LocalKubernetesNet { @@ -72,41 +56,6 @@ pub struct LocalKubernetesNet { num_shards: usize, } -#[cfg(with_testing)] -impl SharedLocalKubernetesNetTestingConfig { - // The second argument is sometimes used locally to use specific binaries for tests. - pub fn new(network: Network, mut binaries: BuildArg) -> Self { - if std::env::var("LINERA_TRY_RELEASE_BINARIES").unwrap_or_default() == "true" - && matches!(binaries, BuildArg::Build) - { - // For cargo test, current binary should be in debug mode - let current_binary_parent = - current_binary_parent().expect("Fetching current binaries path should not fail"); - // But binaries for cluster should be release mode - let binaries_dir = current_binary_parent - .parent() - .expect("Getting parent should not fail") - .join("release"); - if binaries_dir.exists() { - // If release exists, use those binaries - binaries = BuildArg::Directory(binaries_dir); - } - } - Self(LocalKubernetesNetConfig { - network, - testing_prng_seed: Some(37), - num_other_initial_chains: 2, - initial_amount: Amount::from_tokens(2000), - num_initial_validators: 4, - num_shards: 4, - binaries, - no_build: false, - docker_image_name: String::from("linera:latest"), - policy: ResourceControlPolicy::devnet(), - }) - } -} - #[async_trait] impl LineraNetConfig for LocalKubernetesNetConfig { type Net = LocalKubernetesNet; @@ -156,65 +105,6 @@ impl LineraNetConfig for LocalKubernetesNetConfig { } } -#[cfg(with_testing)] -#[async_trait] -impl LineraNetConfig for SharedLocalKubernetesNetTestingConfig { - type Net = Arc>; - - async fn instantiate(self) -> Result<(Self::Net, ClientWrapper)> { - let (net, initial_client) = SHARED_LOCAL_KUBERNETES_TESTING_NET - .get_or_init(|| async { - let (net, initial_client) = self - .0 - .instantiate() - .await - .expect("Instantiating LocalKubernetesNetConfig should not fail"); - (Arc::new(Mutex::new(net)), initial_client) - }) - .await; - - let mut net = net.clone(); - let client = net.make_client().await; - // The tests assume we've created a genesis config with 2 - // chains with 10 tokens each. - client.wallet_init(&[], FaucetOption::None).await.unwrap(); - for _ in 0..2 { - initial_client - .open_and_assign(&client, Amount::from_tokens(10)) - .await - .unwrap(); - } - - Ok((net, client)) - } - - async fn policy(&self) -> ResourceControlPolicy { - self.0.policy().await - } -} - -#[async_trait] -impl LineraNet for Arc> { - async fn ensure_is_running(&mut self) -> Result<()> { - let self_clone = self.clone(); - let mut self_lock = self_clone.lock().await; - - self_lock.ensure_is_running().await - } - - async fn make_client(&mut self) -> ClientWrapper { - let self_clone = self.clone(); - let mut self_lock = self_clone.lock().await; - - self_lock.make_client().await - } - - async fn terminate(&mut self) -> Result<()> { - // Users are responsible for killing the clusters if they want to - Ok(()) - } -} - #[async_trait] impl LineraNet for LocalKubernetesNet { async fn ensure_is_running(&mut self) -> Result<()> { diff --git a/linera-service/tests/linera_net_tests.rs b/linera-service/tests/linera_net_tests.rs index 4cdbde6f3c79..166b3f04f26c 100644 --- a/linera-service/tests/linera_net_tests.rs +++ b/linera-service/tests/linera_net_tests.rs @@ -49,10 +49,6 @@ use linera_service::cli_wrappers::local_net::{Database, LocalNetConfig}; feature = "kubernetes", ))] use linera_service::cli_wrappers::Network; -#[cfg(feature = "kubernetes")] -use linera_service::cli_wrappers::{ - docker::BuildArg, local_kubernetes_net::SharedLocalKubernetesNetTestingConfig, -}; use linera_service::{ cli_wrappers::{ local_net::{get_node_port, ProcessInbox}, @@ -373,7 +369,6 @@ impl AmmApp { #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_ethereum_tracker(config: impl LineraNetConfig) -> Result<()> { @@ -477,7 +472,6 @@ async fn test_wasm_end_to_end_ethereum_tracker(config: impl LineraNetConfig) -> #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_counter(config: impl LineraNetConfig) -> Result<()> { @@ -530,7 +524,6 @@ async fn test_wasm_end_to_end_counter(config: impl LineraNetConfig) -> Result<() #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_counter_publish_create(config: impl LineraNetConfig) -> Result<()> { @@ -580,7 +573,6 @@ async fn test_wasm_end_to_end_counter_publish_create(config: impl LineraNetConfi #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_social_user_pub_sub(config: impl LineraNetConfig) -> Result<()> { @@ -686,8 +678,6 @@ async fn test_wasm_end_to_end_social_user_pub_sub(config: impl LineraNetConfig) #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc), "native-fungible" ; "native_scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc), "fungible" ; "aws_grpc"))] #[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"))] #[test_log::test(tokio::test)] @@ -850,8 +840,6 @@ async fn test_wasm_end_to_end_fungible( #[cfg_attr(feature = "scylladb", test_case(LocalNetConfig::new_test(Database::ScyllaDb, Network::Grpc), "native-fungible" ; "native_scylladb_grpc"))] #[cfg_attr(feature = "dynamodb", test_case(LocalNetConfig::new_test(Database::DynamoDb, Network::Grpc), "fungible" ; "aws_grpc"))] #[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"))] #[test_log::test(tokio::test)] @@ -974,7 +962,6 @@ async fn test_wasm_end_to_end_same_wallet_fungible( #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_non_fungible(config: impl LineraNetConfig) -> Result<()> { @@ -1252,7 +1239,6 @@ async fn test_wasm_end_to_end_non_fungible(config: impl LineraNetConfig) -> Resu #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_crowd_funding(config: impl LineraNetConfig) -> Result<()> { @@ -1388,7 +1374,6 @@ async fn test_wasm_end_to_end_crowd_funding(config: impl LineraNetConfig) -> Res #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_matching_engine(config: impl LineraNetConfig) -> Result<()> { @@ -1680,7 +1665,6 @@ async fn test_wasm_end_to_end_matching_engine(config: impl LineraNetConfig) -> R #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_wasm_end_to_end_amm(config: impl LineraNetConfig) -> Result<()> { @@ -2423,7 +2407,6 @@ async fn test_resolve_binary() -> Result<()> { #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_open_chain_node_service(config: impl LineraNetConfig) -> Result<()> { @@ -2545,7 +2528,6 @@ async fn test_open_chain_node_service(config: impl LineraNetConfig) -> Result<() #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_end_to_end_multiple_wallets(config: impl LineraNetConfig) -> Result<()> { @@ -2591,7 +2573,6 @@ async fn test_end_to_end_multiple_wallets(config: impl LineraNetConfig) -> Resul #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_end_to_end_open_multi_owner_chain(config: impl LineraNetConfig) -> Result<()> { @@ -2660,7 +2641,6 @@ async fn test_end_to_end_open_multi_owner_chain(config: impl LineraNetConfig) -> #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_end_to_end_change_ownership(config: impl LineraNetConfig) -> Result<()> { @@ -2702,7 +2682,6 @@ async fn test_end_to_end_change_ownership(config: impl LineraNetConfig) -> Resul #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_end_to_end_assign_greatgrandchild_chain(config: impl LineraNetConfig) -> Result<()> { @@ -2748,7 +2727,6 @@ async fn test_end_to_end_assign_greatgrandchild_chain(config: impl LineraNetConf #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_end_to_end_publish_data_blob_in_cli(config: impl LineraNetConfig) -> Result<()> { @@ -2780,7 +2758,6 @@ async fn test_end_to_end_publish_data_blob_in_cli(config: impl LineraNetConfig) #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_end_to_end_faucet(config: impl LineraNetConfig) -> Result<()> { @@ -2857,7 +2834,6 @@ async fn test_end_to_end_faucet(config: impl LineraNetConfig) -> Result<()> { #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] #[ignore = "This test takes a long time to run"] @@ -2916,7 +2892,6 @@ async fn test_end_to_end_faucet_with_long_chains(config: impl LineraNetConfig) - #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_end_to_end_fungible_client_benchmark(config: impl LineraNetConfig) -> Result<()> { @@ -2961,7 +2936,6 @@ async fn test_end_to_end_fungible_client_benchmark(config: impl LineraNetConfig) #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_end_to_end_listen_for_new_rounds(config: impl LineraNetConfig) -> Result<()> { @@ -3076,7 +3050,6 @@ async fn test_end_to_end_listen_for_new_rounds(config: impl LineraNetConfig) -> #[cfg_attr(feature = "storage-service", test_case(LocalNetConfig::new_test(Database::Service, Network::Grpc) ; "storage_test_service_grpc"))] #[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"))] #[test_log::test(tokio::test)] async fn test_end_to_end_repeated_transfers(config: impl LineraNetConfig) -> Result<()> {