From 462e75b227ea4632fbf6fe9a4d9bbf712a3129aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=AD=A3=E8=B6=85?= Date: Wed, 28 May 2025 11:56:39 +0800 Subject: [PATCH] test: add ignore attributes to e2e tests requiring external services --- e2e_test/src/reliant/lock.rs | 1 + e2e_test/src/reliant/node_interact_test.rs | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/e2e_test/src/reliant/lock.rs b/e2e_test/src/reliant/lock.rs index 8f9035a7..ef136cf7 100644 --- a/e2e_test/src/reliant/lock.rs +++ b/e2e_test/src/reliant/lock.rs @@ -15,6 +15,7 @@ use tonic::Request; const CLUSTER_ADDR: &str = "http://localhost:9000"; #[tokio::test] +#[ignore = "requires running RustFS server at localhost:9000"] async fn test_lock_unlock_rpc() -> Result<(), Box> { let args = LockArgs { uid: "1111".to_string(), diff --git a/e2e_test/src/reliant/node_interact_test.rs b/e2e_test/src/reliant/node_interact_test.rs index c42d1468..d85a25ec 100644 --- a/e2e_test/src/reliant/node_interact_test.rs +++ b/e2e_test/src/reliant/node_interact_test.rs @@ -21,6 +21,7 @@ use tonic::Request; const CLUSTER_ADDR: &str = "http://localhost:9000"; #[tokio::test] +#[ignore = "requires running RustFS server at localhost:9000"] async fn ping() -> Result<(), Box> { let mut fbb = flatbuffers::FlatBufferBuilder::new(); let payload = fbb.create_vector(b"hello world"); @@ -59,6 +60,7 @@ async fn ping() -> Result<(), Box> { } #[tokio::test] +#[ignore = "requires running RustFS server at localhost:9000"] async fn make_volume() -> Result<(), Box> { let mut client = node_service_time_out_client(&CLUSTER_ADDR.to_string()).await?; let request = Request::new(MakeVolumeRequest { @@ -76,6 +78,7 @@ async fn make_volume() -> Result<(), Box> { } #[tokio::test] +#[ignore = "requires running RustFS server at localhost:9000"] async fn list_volumes() -> Result<(), Box> { let mut client = node_service_time_out_client(&CLUSTER_ADDR.to_string()).await?; let request = Request::new(ListVolumesRequest { @@ -94,6 +97,7 @@ async fn list_volumes() -> Result<(), Box> { } #[tokio::test] +#[ignore = "requires running RustFS server at localhost:9000"] async fn walk_dir() -> Result<(), Box> { println!("walk_dir"); // TODO: use writer @@ -150,6 +154,7 @@ async fn walk_dir() -> Result<(), Box> { } #[tokio::test] +#[ignore = "requires running RustFS server at localhost:9000"] async fn read_all() -> Result<(), Box> { let mut client = node_service_time_out_client(&CLUSTER_ADDR.to_string()).await?; let request = Request::new(ReadAllRequest { @@ -167,6 +172,7 @@ async fn read_all() -> Result<(), Box> { } #[tokio::test] +#[ignore = "requires running RustFS server at localhost:9000"] async fn storage_info() -> Result<(), Box> { let mut client = node_service_time_out_client(&CLUSTER_ADDR.to_string()).await?; let request = Request::new(LocalStorageInfoRequest { metrics: true });