ChaosTestScenario Class

Definition

Caution

This class is deprecated. To manage Chaos, please use StartChaosAsync, StopChaosAsync, and GetChaosReportAsync APIs from FabricClient.TestManager instead.

The ChaosTestScenario is a long running scenario which keeps inducing failover and faults into the cluster up until the TimetoRun has expired.

[System.Obsolete("This class is deprecated. To manage Chaos, please use StartChaosAsync, StopChaosAsync, and GetChaosReportAsync APIs from FabricClient.TestManager instead.")]
public sealed class ChaosTestScenario : System.Fabric.Testability.Scenario.TestScenario
[<System.Obsolete("This class is deprecated. To manage Chaos, please use StartChaosAsync, StopChaosAsync, and GetChaosReportAsync APIs from FabricClient.TestManager instead.")>]
type ChaosTestScenario = class
    inherit TestScenario
Public NotInheritable Class ChaosTestScenario
Inherits TestScenario
Inheritance
ChaosTestScenario
Attributes

Remarks

The test will induce up to 'maxConcurrentFaults' every iteration and then will validate the health and availability of all the services in the cluster before moving on to the next iteration of faults. If at any point the services are not available or healthy by 'maxClusterStabilizationTimeout' the test will fail with a FabricValidationException. For every iteration the concurrent faults that are induced into the system ensure safety such that the faults together will not cause any service to become unavailable or lose any data. This assumes no faults induced from the outside or any unexpected failures which if they happen (concurrent with the chaos test faults) can cause data availability loss. This is a very good test to run against your test or staging clusters which test workloads are running to ensure that faults in the system do not result in any sort of availability loss or other unexpected service issues.

Constructors

ChaosTestScenario(FabricClient, ChaosTestScenarioParameters)

Constructor for the ChaosTestScenario.

Fields

ProgressChanged

Event handler which exposes the current progress of the test. When handled it gives you the ProgressChangedEventArgs which gives out a total % of the test which has already completed and the last operation (string) that was performed which can be useful for logging.

(Inherited from TestScenario)

Properties

FabricClient

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)
ScenarioParameters

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)

Methods

Dispose()

This method will dispose the TestScenario.

(Inherited from TestScenario)
ExecuteAsync(CancellationToken)

This method executes the test with the specified parameter set passed into the constructor.

(Inherited from TestScenario)
GetElapsedTime()

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)
HandleTaskComplete(Task, String, String)

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)
OnDispose(Boolean)

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)
OnExecuteAsync(CancellationToken)

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)
ReportProgress(String)

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)
ReportProgress(String, Object[])

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)
ValidateScenarioAtExitAsync(CancellationToken)

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)

Applies to