Skip to content

Commit 3cd906d

Browse files
ashu-011openshift-merge-bot[bot]
authored andcommitted
Add possibility to run HorizonTest in debug mode
This patch adds support in the test-operator role to run HorizonTest tests in the debug mode (same as already is there for Tempest).
1 parent 7a168d2 commit 3cd906d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

roles/test_operator/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ Default value: {}
214214
* `cifmw_test_operator_horizontest_logs_directory_name`: (String) The name of the directory to store test logs. Default value: `horizon`
215215
* `cifmw_test_operator_horizontest_horizon_test_dir`: (String) The directory path for Horizon tests. Default value: `/var/lib/horizontest`
216216
* `cifmw_test_operator_horizontest_resources`: (Dict) A dictionary that specifies resources (cpu, memory) for the test pods. When kept untouched it defaults to the resource limits specified on the test-operator side. Default value: `{}`
217+
* `cifmw_test_operator_horizontest_debug`: (Bool) Run HorizonTest in debug mode, it keeps the operator pod sleeping infinitely (it must only set to `true` only for debugging purposes). Default value: `false`
217218
* `cifmw_test_operator_horizontest_config`: (Dict) Definition of HorizonTest CR instance that is passed to the test-operator (see [the test-operator documentation](https://openstack-k8s-operators.github.io/test-operator/crds.html#horizontest-custom-resource)). Default value:
218219
```
219220
apiVersion: test.openstack.org/v1beta1
@@ -235,6 +236,7 @@ Default value: {}
235236
password: "{{ cifmw_test_operator_horizontest_password }}"
236237
flavorName: "{{ cifmw_test_operator_horizontest_flavor_name }}"
237238
logsDirectoryName: "{{ cifmw_test_operator_horizontest_logs_directory_name }}"
239+
debug: "{{ cifmw_test_operator_horizontest_debug }}"
238240
horizonTestDir: "{{ cifmw_test_operator_horizontest_horizon_test_dir }}"
239241
```
240242

roles/test_operator/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ cifmw_test_operator_horizontest_user: "horizontest"
261261
cifmw_test_operator_horizontest_password: "horizontest"
262262
cifmw_test_operator_horizontest_flavor_name: "m1.tiny"
263263
cifmw_test_operator_horizontest_logs_directory_name: "horizon"
264+
cifmw_test_operator_horizontest_debug: false
264265
cifmw_test_operator_horizontest_horizon_test_dir: "/var/lib/horizontest"
265266
cifmw_test_operator_horizontest_resources: {}
266267
cifmw_test_operator_horizontest_config:
@@ -286,5 +287,6 @@ cifmw_test_operator_horizontest_config:
286287
password: "{{ stage_vars_dict.cifmw_test_operator_horizontest_password }}"
287288
flavorName: "{{ stage_vars_dict.cifmw_test_operator_horizontest_flavor_name }}"
288289
logsDirectoryName: "{{ stage_vars_dict.cifmw_test_operator_horizontest_logs_directory_name }}"
290+
debug: "{{ stage_vars_dict.cifmw_test_operator_horizontest_debug }}"
289291
horizonTestDir: "{{ stage_vars_dict.cifmw_test_operator_horizontest_horizon_test_dir }}"
290292
resources: "{{ stage_vars_dict.cifmw_test_operator_horizontest_resources }}"

0 commit comments

Comments
 (0)