Skip to content

Commit 9dd2948

Browse files
committed
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 c2e4f9f commit 9dd2948

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
@@ -210,6 +210,7 @@ Default value: {}
210210
* `cifmw_test_operator_horizontest_flavor_name`: (String) The name of the OpenStack flavor to create for Horizon tests. Default value: `m1.tiny`
211211
* `cifmw_test_operator_horizontest_logs_directory_name`: (String) The name of the directory to store test logs. Default value: `horizon`
212212
* `cifmw_test_operator_horizontest_horizon_test_dir`: (String) The directory path for Horizon tests. Default value: `/var/lib/horizontest`
213+
* `cifmw_test_operator_horizontest_debug`: (Bool) Run HorizonTest in debug mode, it keeps the operator pod sleeping infinity (it must only set to `true`only for debugging purposes). Default value: `false`
213214
* `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:
214215
```
215216
apiVersion: test.openstack.org/v1beta1
@@ -231,6 +232,7 @@ Default value: {}
231232
password: "{{ cifmw_test_operator_horizontest_password }}"
232233
flavorName: "{{ cifmw_test_operator_horizontest_flavor_name }}"
233234
logsDirectoryName: "{{ cifmw_test_operator_horizontest_logs_directory_name }}"
235+
debug: "{{ cifmw_test_operator_horizontest_debug }}"
234236
horizonTestDir: "{{ cifmw_test_operator_horizontest_horizon_test_dir }}"
235237
```
236238

roles/test_operator/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ cifmw_test_operator_horizontest_user: "horizontest"
249249
cifmw_test_operator_horizontest_password: "horizontest"
250250
cifmw_test_operator_horizontest_flavor_name: "m1.tiny"
251251
cifmw_test_operator_horizontest_logs_directory_name: "horizon"
252+
cifmw_test_operator_horizontest_debug: false
252253
cifmw_test_operator_horizontest_horizon_test_dir: "/var/lib/horizontest"
253254
cifmw_test_operator_horizontest_config:
254255
apiVersion: test.openstack.org/v1beta1
@@ -273,4 +274,5 @@ cifmw_test_operator_horizontest_config:
273274
password: "{{ stage_vars_dict.cifmw_test_operator_horizontest_password }}"
274275
flavorName: "{{ stage_vars_dict.cifmw_test_operator_horizontest_flavor_name }}"
275276
logsDirectoryName: "{{ stage_vars_dict.cifmw_test_operator_horizontest_logs_directory_name }}"
277+
debug: "{{ cifmw_test_operator_horizontest_debug }}"
276278
horizonTestDir: "{{ stage_vars_dict.cifmw_test_operator_horizontest_horizon_test_dir }}"

0 commit comments

Comments
 (0)