Run fault Scenarios
In this guide, you will learn how to run fault scenarios and read the generated report.
Prerequisites
-
Install fault
If you haven’t installed fault yet, follow the installation instructions.
-
Generate Scenario Files
If you haven’t created a scenario file, please read this guide.
Run a Scenario File
We will explore now how to run scenarios generated to verify the resilience of the fault demo application itself.
-
Start demo application provided by fault
- The application under test must be started for the scenario to be meaningful. Otherwise, the scenarios will all fail.
-
Run a scenario file
Run Many Scenario Files
We will explore now how to run scenarios generated to verify the resilience of the fault demo application itself. In this specific use case, we assume you want to run many scenario files at once and that they are located in the same directory.
-
Start demo application provided by fault
- The application under test must be started for the scenario to be meaningful. Otherwise, the scenarios will all fail.
-
Run scenario files located in a directory
- fault will load all YAML files in that directory.
Run a Scenario on Kubernetes
The default behavior is to execute a scenario locally to where the command is started. A scenario offers a way to run the proxy from within a Kubernetes cluster.
-
Configure the scenario to run on a Kubernetes cluster
- The namespace of the target service
- The target service which should be part of the test chain
The scenario will be executed locally but the proxy will be deployed inside the cluster directly.
Next Steps
- Learn how to explore the generated report from running these scenarios.
- Explore the specification reference for scenarios.