-
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 e03b92d
Showing
5 changed files
with
55 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,35 @@ | ||
syntax = "proto3"; | ||
|
||
package mayastor.v1; | ||
|
||
import "google/protobuf/wrappers.proto"; | ||
import "google/protobuf/empty.proto"; | ||
import "common.proto"; | ||
|
||
service TestingRpc { | ||
// Fault injection. | ||
rpc AddInjection (AddInjectionRequest) returns (google.protobuf.Empty) {} | ||
rpc RemoveInjection (RemoveInjectionRequest) returns (google.protobuf.Empty) {} | ||
rpc ListInjections (ListInjectionsRequest) returns (ListInjectionsReply) {} | ||
} | ||
|
||
message Injection { | ||
string uri = 1; | ||
string device_name = 2; | ||
bool is_active = 3; | ||
} | ||
|
||
message AddInjectionRequest { | ||
string uri = 1; | ||
} | ||
|
||
message RemoveInjectionRequest { | ||
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