Skip to content

Commit

Permalink
feat(test/features): export test features
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Castro <[email protected]>
  • Loading branch information
tiagolobocastro committed Dec 8, 2023
1 parent 0230be9 commit 26c77c7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions io-engine/src/grpc/v1/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,23 @@ impl TestRpc for TestService {
type WipeReplicaStream =
ReceiverStream<Result<WipeReplicaResponse, Status>>;

/// Get all the features supported by the test service.
async fn get_features(
&self,
_request: Request<()>,
) -> GrpcResult<v1::test::TestFeatures> {
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,
Expand Down
2 changes: 1 addition & 1 deletion utils/dependencies

0 comments on commit 26c77c7

Please sign in to comment.