functional-tester/tester: add network fault test cases with snapshot trigger

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee
2018-04-04 19:13:06 -07:00
parent 95119a769e
commit f4cd33b83c
14 changed files with 308 additions and 184 deletions

View File

@ -58,16 +58,16 @@ func newFailureKillAll() Failure {
}
}
func newFailureKillOneFollowerForLongTime() Failure {
func newFailureKillOneFollowerUntilTriggerSnapshot() Failure {
return &failureUntilSnapshot{
failureCase: rpcpb.FailureCase_KILL_ONE_FOLLOWER_FOR_LONG,
failureCase: rpcpb.FailureCase_KILL_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT,
Failure: newFailureKillOneFollower(),
}
}
func newFailureKillLeaderForLongTime() Failure {
func newFailureKillLeaderUntilTriggerSnapshot() Failure {
return &failureUntilSnapshot{
failureCase: rpcpb.FailureCase_KILL_LEADER_FOR_LONG,
failureCase: rpcpb.FailureCase_KILL_LEADER_UNTIL_TRIGGER_SNAPSHOT,
Failure: newFailureKillLeader(),
}
}