Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/usage/01_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ are shared among multiple roles:
- `cifmw_ceph_target`: (String) The Ansible inventory group where ceph is deployed. Defaults to `computes`.
- `cifmw_run_tests`: (Bool) Specifies whether tests should be executed.
Defaults to false.
- `cifmw_run_test_role`: (String) Specifies which ci-framework role will be used to run tests. Allowed options are `test_operator`, `tempest` and `shiftstack`. Defaults to `tempest`.
- `cifmw_run_test_role`: (String) Specifies which ci-framework role will be used to run tests. Allowed options are `test_operator` and `shiftstack`. Defaults to `test_operator`.
- `cifmw_edpm_deploy_nfs`: (Bool) Specifies whether an nfs server should be deployed.
- `cifmw_nfs_target`: (String) The Ansible inventory group where the nfs server is deployed. Defaults to `computes`. Only has an effect if `cifmw_edpm_deploy_nfs` is set to `true`.
- `cifmw_nfs_network`: (String) The network the deployed nfs server will be accessible from. Defaults to `storage`. Only has an effect if `cifmw_edpm_deploy_nfs` is set to `true`.
Expand Down
3 changes: 3 additions & 0 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ cifmw_default_container_image_tag: "current-podified"
cifmw_master_container_image_namespace: "podified-master-centos9"
cifmw_openstack_k8s_operators_org_url: "https://github.com/openstack-k8s-operators"

# Default test role
cifmw_run_test_role: test_operator

#### Pinned external projects dependencies ####
#
# These variables define the source URL and version for
Expand Down
2 changes: 1 addition & 1 deletion playbooks/08-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
tags:
- tests
ansible.builtin.import_role:
name: "{{ cifmw_run_test_role | default('tempest') }}"
name: "{{ cifmw_run_test_role }}"

- name: Run post_tests hooks
vars:
Expand Down
2 changes: 1 addition & 1 deletion playbooks/multi-namespace/ns2_validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
tags:
- tests
ansible.builtin.import_role:
name: "{{ cifmw_run_test_role | default('tempest') }}"
name: "{{ cifmw_run_test_role | default('test_operator') }}"
2 changes: 1 addition & 1 deletion roles/cifmw_setup/tasks/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
tags:
- tests
ansible.builtin.import_role:
name: "{{ cifmw_run_test_role | default('tempest') }}"
name: "{{ cifmw_run_test_role }}"
when: cifmw_run_tests | default(false) | bool

- name: Run post_tests hooks
Expand Down
2 changes: 1 addition & 1 deletion roles/polarion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Role to setup jump tool and upload XML test results to Polarion.
## Parameters
* `cifmw_polarion_basedir`: (String) Base directory. Defaults to `cifmw_basedir` which defaults to `~/ci-framework-data`.
* `cifmw_polarion_jump_repo_dir`: (String) Jump repo directory. Defaults to `~/ci-framework-data/polarion-jump`.
* `cifmw_polarion_jump_result_dir`: (String) Test results directory. Based on `cifmw_run_test_role` defaults to `~/ci-framework-data/tests/tempest/` or `~/ci-framework-data/tests/test_operator/`.
* `cifmw_polarion_jump_result_dir`: (String) Test results directory. Based on `cifmw_run_test_role` defaults to `~/ci-framework-data/tests/test_operator/`.
* `cifmw_polarion_jump_repo_url`: (String) URL of jump repository.
* `cifmw_polarion_testrun_title`: (String) A name of the test run under which the test results will be uploaded to polarion. The role appends an index number to the name to distinguish multiple test runs apart.
* `cifmw_polarion_testrun_id`: (String) A test run identification provided by Polarion test case or `create-new-test-run` if polarion should generate a random test run ID. A value other than `create-new-test-run` will force this role to upload all test results found in all directories under `cifmw_polarion_jump_repo_url` to one test run identified by the given ID. The default behavior of this role is to treat the directories in `cifmw_polarion_jump_repo_url` as separate test runs.
Expand Down
2 changes: 1 addition & 1 deletion roles/polarion/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
cifmw_polarion_basedir: "{{ cifmw_basedir }}"
cifmw_polarion_jump_custom_fields: {}
cifmw_polarion_jump_repo_dir: "{{ cifmw_polarion_basedir }}/polarion-jump"
cifmw_polarion_jump_result_dir: "{{ cifmw_polarion_basedir }}/tests/{{ cifmw_run_test_role | default('tempest') }}/"
cifmw_polarion_jump_result_dir: "{{ cifmw_polarion_basedir }}/tests/{{ cifmw_run_test_role }}/"
cifmw_polarion_jump_repo_branch: "master"
cifmw_polarion_testrun_title: "testrun-name"
cifmw_polarion_use_stage: false
Expand Down
2 changes: 1 addition & 1 deletion roles/reportportal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The `reportportal` role uses Data Router tool for uploading XML test results to
* `cifmw_reportportal_droute_client_url`: (String) URL of Data router client repository (mandatory).
* `cifmw_reportportal_datarouter_username`: (String) username for Data router client (mandatory).
* `cifmw_reportportal_datarouter_password`: (String) password for Data router client (mandatory).
* `cifmw_reportportal_datarouter_result_dir`: (String) Test results directory. Based on `cifmw_run_test_role` defaults to `~/ci-framework-data/tests/tempest/` or `~/ci-framework-data/tests/test_operator/`. One or more properly formatted xml results files are expected to be found in this directory.
* `cifmw_reportportal_datarouter_result_dir`: (String) Test results directory. Based on `cifmw_run_test_role` defaults to `~/ci-framework-data/tests/test_operator/`. One or more properly formatted xml results files are expected to be found in this directory.
* `cifmw_reportportal_project`: (String) Report portal project for uploading results (mandatory).
* `cifmw_reportportal_launch_name`: (String) Name of the Report portal launch defaults to `Dummy launch`.
* `cifmw_reportportal_launch_description`: (String) Description of the Report portal launch defaults to `Test results sent via Data router`.
Expand Down
2 changes: 1 addition & 1 deletion roles/reportportal/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cifmw_reportportal_results_dir: >-
{{
(cifmw_reportportal_basedir,
'tests',
cifmw_run_test_role | default('tempest')) |
cifmw_run_test_role) |
path_join
}}

Expand Down
1 change: 0 additions & 1 deletion scenarios/centos-9/multinode-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@ cifmw_install_yamls_vars:
cifmw_deploy_edpm: true

# Tempest vars
cifmw_run_test_role: test_operator
cifmw_test_operator_tempest_include_list: |
tempest.scenario.test_network_basic_ops.TestNetworkBasicOps
1 change: 0 additions & 1 deletion scenarios/reproducers/bgp-4-racks-3-ocps.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
cifmw_run_tests: true
cifmw_run_test_role: test_operator
cifmw_test_operator_timeout: 7200
cifmw_test_operator_tempest_include_list: |
tempest.scenario.test_network_basic_ops.TestNetworkBasicOps
Expand Down
1 change: 0 additions & 1 deletion scenarios/reproducers/va-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ cifmw_libvirt_manager_pub_net: ocpbm

# Run tests
cifmw_run_tests: true
cifmw_run_test_role: test_operator
cifmw_test_operator_timeout: 7200
cifmw_test_operator_tempest_include_list: |
tempest.scenario.test_network_basic_ops.TestNetworkBasicOps
Expand Down
1 change: 0 additions & 1 deletion zuul.d/tempest_multinode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# disable operator build
cifmw_operator_build_meta_build: false
cifmw_operator_build_operators: []
cifmw_run_test_role: test_operator
cifmw_test_operator_tempest_tests_include_override_scenario: true
extra-vars:
crc_ci_bootstrap_cloud_name: "{{ nodepool.cloud | replace('-nodepool-tripleo','') }}"
Expand Down
1 change: 0 additions & 1 deletion zuul.d/whitebox_neutron_tempest_jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
whitebox-neutron-tempest-plugin opendev patches. It will validate the
deployment by running whitebox-neutron-tempest-plugin tests.
vars:
cifmw_run_test_role: test_operator
cifmw_os_must_gather_timeout: "30m"
cifmw_test_operator_timeout: 14400
cifmw_block_device_size: 40G
Expand Down
Loading