Share via


FailoverTestScenario Class

Definition

Caution

This class is deprecated. Please use Chaos instead https://docs.microsoft.com/azure/service-fabric/service-fabric-controlled-chaos

The FailoverTestScenario is a test which runs a series of faults against a specific partition defined by the PartitionSelector in the FailoverTestScenarioParameters.

[System.Obsolete("This class is deprecated.  Please use Chaos instead https://docs.microsoft.com/azure/service-fabric/service-fabric-controlled-chaos")]
public sealed class FailoverTestScenario : System.Fabric.Testability.Scenario.TestScenario
[<System.Obsolete("This class is deprecated.  Please use Chaos instead https://docs.microsoft.com/azure/service-fabric/service-fabric-controlled-chaos")>]
type FailoverTestScenario = class
    inherit TestScenario
Public NotInheritable Class FailoverTestScenario
Inherits TestScenario
Inheritance
FailoverTestScenario
Attributes

Remarks

The faults induced put the partition through some specific failover scenarios to ensure those paths are tested and exercised. Running your workload against the service at the same time as the test being run will increase the chances of inducing and discovering bugs with the service. The faults induced for the Primary, Secondaries and stateless instances are RestartReplica(only persisted), RemoveReplica, ResartDeployedCodePackage, MovePrimary (only stateful), MoveSecondary (Only stateful), MoveInstance (Only stateless), RestartPartition (no data loss), MoveAuxiliary (Only stateful persisted).

Applies to