From 992a07bc6ae00d40fa4572c2aadd5b61a4121cca Mon Sep 17 00:00:00 2001 From: Tiago Castro Date: Fri, 8 Dec 2023 16:05:10 +0000 Subject: [PATCH] feat(test/features): export test features Signed-off-by: Tiago Castro --- io-engine/src/grpc/v1/test.rs | 17 +++++++++++++++++ utils/dependencies | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/io-engine/src/grpc/v1/test.rs b/io-engine/src/grpc/v1/test.rs index 487b9a265d..2ad7f2f95b 100644 --- a/io-engine/src/grpc/v1/test.rs +++ b/io-engine/src/grpc/v1/test.rs @@ -56,6 +56,23 @@ impl TestRpc for TestService { type WipeReplicaStream = ReceiverStream>; + /// Get all the features supported by the test service. + async fn get_features( + &self, + _request: Request<()>, + ) -> GrpcResult { + GrpcResult::Ok(tonic::Response::new(v1::test::TestFeatures { + wipe_methods: vec![ + v1::test::wipe_options::WipeMethod::None as i32, + v1::test::wipe_options::WipeMethod::WriteZeroes as i32, + v1::test::wipe_options::WipeMethod::Checksum as i32, + ], + cksum_algs: vec![ + v1::test::wipe_options::CheckSumAlgorithm::Crc32c as i32, + ], + })) + } + #[named] async fn wipe_replica( &self, diff --git a/utils/dependencies b/utils/dependencies index a8089e73d8..8e79cb402f 160000 --- a/utils/dependencies +++ b/utils/dependencies @@ -1 +1 @@ -Subproject commit a8089e73d8a7ecc3642a63d9d6c4d432a1b1ce74 +Subproject commit 8e79cb402f4c71acca1fcd0be2e1800c73edd657