Skip to content

Commit 829525c

Browse files
HanzJasopenshift-merge-bot[bot]
authored andcommitted
[test_operator] Add additional parameter for horizontest
This commit add extra parameter for horizontest in order to modify projecttext xpath based on upstream and downstream dashboard theme. Signed-off-by: Jan Jasek <jjasek@redhat.com>
1 parent 25b4574 commit 829525c

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

roles/test_operator/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ Default value: {}
166166
* `cifmw_test_operator_horizontest_password`: (String) The password for the user running the Horizon tests. Default value: `horizontest`
167167
* `cifmw_test_operator_horizontest_project_name`: (String) The name of the OpenStack project for Horizon tests. Default value: `horizontest`
168168
* `cifmw_test_operator_horizontest_project_name_xpath`: (String) The xpath to select project name based on dashboard theme. Default value: `//span[@class='rcueicon rcueicon-folder-open']/ancestor::li`
169+
* `cifmw_test_operator_horizontest_project_text_xpath`: (String) The xpath to element displaying current project based on dashboard theme. Default value: `.//span[@class='rcueicon rcueicon-folder-open']/ancestor::li`
169170
* `cifmw_test_operator_horizontest_registry`: (String) The registry where to pull horizontest container. Default value: `{{ cifmw_test_operator_default_registry }}`
170171
* `cifmw_test_operator_horizontest_repo_url`: (String) The Horizon tests repository URL. Default value: `https://review.opendev.org/openstack/horizon`
171172
* `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: `{}`

roles/test_operator/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ cifmw_test_operator_horizontest_debug: false
300300
cifmw_test_operator_horizontest_horizon_test_dir: "/var/lib/horizontest"
301301
cifmw_test_operator_horizontest_extra_flag: "not pagination"
302302
cifmw_test_operator_horizontest_project_name_xpath: "//span[@class='rcueicon rcueicon-folder-open']/ancestor::li"
303+
cifmw_test_operator_horizontest_project_text_xpath: ".//span[@class='rcueicon rcueicon-folder-open']/ancestor::li"
303304
cifmw_test_operator_horizontest_config:
304305
apiVersion: test.openstack.org/v1beta1
305306
kind: HorizonTest
@@ -326,6 +327,7 @@ cifmw_test_operator_horizontest_config:
326327
debug: "{{ stage_vars_dict.cifmw_test_operator_horizontest_debug }}"
327328
extraFlag: "{{ stage_vars_dict.cifmw_test_operator_horizontest_extra_flag }}"
328329
projectNameXpath: "{{ stage_vars_dict.cifmw_test_operator_horizontest_project_name_xpath }}"
330+
projectTextXpath: "{{ stage_vars_dict.cifmw_test_operator_horizontest_project_text_xpath }}"
329331
horizonTestDir: "{{ stage_vars_dict.cifmw_test_operator_horizontest_horizon_test_dir }}"
330332
extraMounts: "{{ stage_vars_dict.cifmw_test_operator_horizontest_extra_mounts | default(omit) }}"
331333
resources: "{{ stage_vars_dict.cifmw_test_operator_horizontest_resources | default(omit) }}"

0 commit comments

Comments
 (0)