-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): fault injection made more generic
Fault injection support moved from nexus API to a new testing API, and made more generic. Injectiosn removed from v0 API. Signed-off-by: Dmitry Savitskiy <[email protected]>
- Loading branch information
1 parent
400c703
commit 5293fcd
Showing
5 changed files
with
69 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
syntax = "proto3"; | ||
|
||
import "google/protobuf/empty.proto"; | ||
import "google/protobuf/wrappers.proto"; | ||
|
||
package mayastor.v1; | ||
|
||
// Service to be used by test code, it is not meant to be used in production! | ||
service TestRpc { | ||
// | ||
// Fault injection methods. | ||
// | ||
|
||
// Add a fault injection. | ||
rpc AddInjection (AddInjectionRequest) returns (google.protobuf.Empty) {} | ||
|
||
// Remove a fault injection. | ||
rpc RemoveInjection (RemoveInjectionRequest) returns (google.protobuf.Empty) {} | ||
|
||
// List existing fault injections. | ||
rpc ListInjections (ListInjectionsRequest) returns (ListInjectionsReply) {} | ||
} | ||
|
||
message Injection { | ||
// URI that was used to add the fault injection. | ||
string uri = 1; | ||
// Target device name to which the injection applies. | ||
string device_name = 2; | ||
// True if the injection is currently active (injection active condition | ||
// has been met). | ||
bool is_active = 3; | ||
} | ||
|
||
message AddInjectionRequest { | ||
// URI that defines injection target and parameters. | ||
string uri = 1; | ||
} | ||
|
||
message RemoveInjectionRequest { | ||
// URI that was used to add the fault injection. | ||
string uri = 1; | ||
} | ||
|
||
message ListInjectionsRequest { | ||
} | ||
|
||
message ListInjectionsReply { | ||
repeated Injection injections = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters