Skip to content

Commit

Permalink
feat(test/features): expose 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 2757a85 commit 2cd2683
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apis/io-engine/protobuf/v1/test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ package mayastor.v1;

// Service to be used by test code, it is not meant to be used in production!
service TestRpc {
// Get all the features supported by the test service.
rpc GetFeatures (google.protobuf.Empty) returns (TestFeatures) {}

// Replica related methods.
//
// Wipe a replica using the selected method.
Expand All @@ -28,6 +31,13 @@ service TestRpc {
rpc ListFaultInjections (ListFaultInjectionsRequest) returns (ListFaultInjectionsReply) {}
}

message TestFeatures {
// Supported wipe methods.
repeated WipeOptions.WipeMethod wipe_methods = 1;
// Supported checksum algorithms.
repeated WipeOptions.CheckSumAlgorithm cksum_algs = 2;
}

message WipeReplicaRequest {
// Uuid of the replica.
string uuid = 1;
Expand Down

0 comments on commit 2cd2683

Please sign in to comment.