Skip to content

Commit be20061

Browse files
slawqoopenshift-merge-bot[bot]
authored andcommitted
Add possibility to run Tobiko in debug mode
This patch adds support in the `test-operator` role to run Tobiko tests in the debug mode (same as already is there for Tempest). Related: TOBIKO-100
1 parent 474f028 commit be20061

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
@@ -90,6 +90,7 @@ Execute tests via the [test-operator](https://openstack-k8s-operators.github.io/
9090
* `cifmw_test_operator_tobiko_override_conf`: (Dict) Overrides the default configuration from `cifmw_test_operator_tobiko_default_conf` that is used to generate the tobiko.conf file. Default value: empty dictionary
9191
* `cifmw_test_operator_tobiko_ssh_keytype`: (String) Type of ssh key that tobiko will use to connect to the VM instances it creates. Defaults to `cifmw_ssh_keytype` which default to `ecdsa`.
9292
* `cifmw_test_operator_tobiko_ssh_keysize`: (Integer) Size of ssh key that tobiko will use to connect to the VM instances it creates. Defaults to `cifmw_ssh_keysize` which defaults to 521.
93+
* `cifmw_test_operator_tobiko_debug`: (Bool) Run Tobiko in debug mode, it keeps the operator pod sleeping infinity (it must only set to `true`only for debugging purposes). Default value: `false`
9394
* `cifmw_test_operator_tobiko_network_attachments`: (List) List of network attachment definitions to attach to the tobiko pods spawned by test-operator. Default value: `[]`.
9495
* `cifmw_test_operator_tobiko_workflow`: (List) Definition of a Tobiko workflow that consists of multiple steps. Each step can contain all values from Spec section of [Tobiko CR](https://openstack-k8s-operators.github.io/test-operator/crds.html#tobiko-custom-resource).
9596
* `cifmw_test_operator_tobiko_config`: (Dict) Definition of Tobiko CRD instance that is passed to the test-operator (see [the test-operator documentation](https://openstack-k8s-operators.github.io/test-operator/crds.html#tobiko-custom-resource)). Default value:
@@ -109,6 +110,7 @@ Execute tests via the [test-operator](https://openstack-k8s-operators.github.io/
109110
tolerations: "{{ cifmw_test_operator_tolerations | default(omit) }}"
110111
nodeSelector: "{{ cifmw_test_operator_node_selector | default(omit) }}"
111112
networkAttachments: "{{ cifmw_test_operator_tobiko_network_attachments }}"
113+
debug: "{{ cifmw_test_operator_tobiko_debug }}"
112114
# preventCreate: preventCreate is generated by the test_operator role based on the value of cifmw_test_operator_tobiko_prevent_create
113115
# numProcesses: numProcesses is generated by the test_operator role based on the value of cifmw_test_operator_tobiko_num_processes
114116
# privateKey: privateKey is automatically generated by the test_operator role

roles/test_operator/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ cifmw_test_operator_tobiko_override_conf: {}
147147
cifmw_test_operator_tobiko_kubeconfig_secret: tobiko-secret
148148
cifmw_test_operator_tobiko_ssh_keytype: "{{ cifmw_ssh_keytype | default('ecdsa') }}"
149149
cifmw_test_operator_tobiko_ssh_keysize: "{{ cifmw_ssh_keysize | default(521) }}"
150+
cifmw_test_operator_tobiko_debug: false
150151
cifmw_test_operator_tobiko_network_attachments: []
151152
cifmw_test_operator_tobiko_workflow: []
152153
cifmw_test_operator_tobiko_config:
@@ -166,6 +167,7 @@ cifmw_test_operator_tobiko_config:
166167
pytestAddopts: "{{ cifmw_test_operator_tobiko_pytest_addopts if cifmw_test_operator_tobiko_pytest_addopts is not none else omit }}"
167168
tolerations: "{{ cifmw_test_operator_tolerations | default(omit) }}"
168169
nodeSelector: "{{ cifmw_test_operator_node_selector | default(omit) }}"
170+
debug: "{{ cifmw_test_operator_tobiko_debug }}"
169171
networkAttachments: "{{ cifmw_test_operator_tobiko_network_attachments }}"
170172
# preventCreate: preventCreate is generated by the test_operator role based on the value of cifmw_test_operator_tobiko_prevent_create
171173
# numProcesses: numProcesses is generated by the test_operator role based on the value of cifmw_test_operator_tobiko_num_processes

0 commit comments

Comments
 (0)