Skip to content

Commit

Permalink
Add tempest cleanup opt
Browse files Browse the repository at this point in the history
Allow users to enable tempest cleanup feature defined in the tempest image.

openstack-k8s-operators/tcib#208
openstack-k8s-operators/test-operator#207
  • Loading branch information
kopecmartin authored and openshift-merge-bot[bot] committed Oct 3, 2024
1 parent 5567990 commit 0f4a43e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/test_operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Execute tests via the [test-operator](https://openstack-k8s-operators.github.io/
* `cifmw_test_operator_logs_image`: (String) Image that should be used to collect logs from the pods spawned by the test-operator. Default value: `quay.io/quay/busybox`
* `cifmw_test_operator_concurrency`: (Integer) Tempest concurrency value. Default value: `8`
* `cifmw_test_operator_cleanup`: (Bool) Delete all resources created by the role at the end of the testing. Default value: `false`
* `cifmw_test_operator_tempest_cleanup`: (Bool) Run tempest cleanup after test execution (tempest run) to delete any resources created by tempest that may have been left out.
* `cifmw_test_operator_default_groups`: (List) List of groups in the include list to search for tests to be executed. Default value: `[ 'default' ]`
* `cifmw_test_operator_default_jobs`: (List) List of jobs in the exclude list to search for tests to be excluded. Default value: `[ 'default' ]`
* `cifmw_test_operator_dry_run`: (Boolean) Whether test-operator should run or not. Default value: `false`
Expand Down
2 changes: 2 additions & 0 deletions roles/test_operator/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ cifmw_test_operator_tempest_network_attachments: []
cifmw_test_operator_tempest_tests_include_override_scenario: false
cifmw_test_operator_tempest_tests_exclude_override_scenario: false
cifmw_test_operator_tempest_workflow: []
cifmw_test_operator_tempest_cleanup: false

# Enabling SRBAC by default, in jobs where this does not make sense should be turned off explicitly
#
Expand Down Expand Up @@ -117,6 +118,7 @@ cifmw_test_operator_tempest_config:
extraRPMs: "{{ cifmw_test_operator_tempest_extra_rpms | default([]) }}"
extraImages: "{{ cifmw_test_operator_tempest_extra_images | default([]) }}"
tempestconfRun: "{{ cifmw_tempest_tempestconf_config_defaults | combine(cifmw_tempest_tempestconf_config | default({})) }}"
cleanup: "{{ cifmw_test_operator_tempest_cleanup }}"
workflow: "{{ cifmw_test_operator_tempest_workflow }}"

# Section 3: tobiko parameters - used when run_test_fw is 'tobiko'
Expand Down

0 comments on commit 0f4a43e

Please sign in to comment.