Skip to content

Commit 8aa59dc

Browse files
author
Shreeya Patel
committed
WIP Add fault injection template
Add a basic template for fault injection which lets us override various default parameters if needed for the test. Signed-off-by: Shreeya Patel <[email protected]>
1 parent 941d7af commit 8aa59dc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

config/runtime/fault-injection.jinja2

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{% set test_method = 'fault-injection' %}
2+
{% set base_template = 'base/' + runtime + '.jinja2' %}
3+
{%- extends base_template %}
4+
5+
{# Default parameters that can be overridden in job definitions #}
6+
{% set iterations = iterations|default(5) %}
7+
{% set fail_type = fail_type|default('failslab') %}
8+
9+
{% block test_parameters %}
10+
test_name: "{{ test_name }}",
11+
test_command: "{{ test_command }}",
12+
fail_type: "{{ fail_type }}",
13+
probability: {{ probability|default(100) }},
14+
times: {{ times|default(100) }},
15+
interval: {{ interval|default(100) }},
16+
sleep_time: {{ sleep_time|default(10) }},
17+
iterations: {{ iterations }}
18+
{% endblock %}

0 commit comments

Comments
 (0)