Skip to content

Commit 78cb38f

Browse files
Merge pull request #234 from HanzJas/main
Add required test variables into horizon.conf
2 parents 87e76a0 + d5168ee commit 78cb38f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

container-images/tcib/base/os/horizontest/run_horizontest.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ IMAGE_FILE="/usr/local/share/${IMAGE_FILE_NAME}"
2020
if [[ ! -f "${IMAGE_FILE}" ]]; then
2121
IMAGE_FILE="/var/lib/horizontest/${IMAGE_FILE_NAME}"
2222
fi
23+
SUBNET_NAME=public_subnet
24+
PROJECT_NAME_XPATH="//span[@class='rcueicon rcueicon-folder-open']/ancestor::li"
25+
HELP_SEQUENCE=".//*[normalize-space()='Help']"
26+
HELP_URL="https://docs.redhat.com/en/documentation/red_hat_openstack_services_on_openshift/"
27+
TEST_MATERIAL_THEME=False
28+
USER_NAME_XPATH="//span[@class='rcueicon rcueicon-user']/ancestor::li"
29+
BROWSE_LEFT_PANEL_MAIN="Project,Project,Project,Project,Project,Project,Project,Project,Project,Project,Project,Project,Project,Project,Project,Project,Admin,Admin,Admin,Admin,Admin,Admin,Admin,Admin,Admin,Admin,Admin,Admin,Admin,Admin,Admin,Admin,Admin,Admin,Identity,Identity,Identity,Identity,Identity"
30+
BROWSE_LEFT_PANEL_SEC="Project,None,None,None,None,None,Volumes,Volumes,Network,Network,Network,Network,Network,Network,Network,Object Store,None,Compute,Compute,Compute,Compute,Compute,Volume,Volume,Volume,Volume,Network,Network,Network,Network,Network,System,System,System,None,None,None,None,None"
31+
BLP_SEC_LINE_XPATH=".//*[@class='navbar primary persistent-secondary']"
32+
BLP_SEC_LINE_REQ_BTN=".//*[@class='navbar primary persistent-secondary']//a[normalize-space()='{sec_panel}']//ancestor::li"
33+
BLP_SIDEBAR_XPATH=".//*[@class='navbar primary persistent-secondary']//a[normalize-space()='{sec_panel}']//ancestor::li//*[@class='dropdown-menu']"
2334

2435
# assert mandatory variables have been set
2536
[[ -z ${ADMIN_USERNAME} ]] && echo "ADMIN_USERNAME not set" && exit 1
@@ -128,6 +139,7 @@ pushd ${HORIZONTEST_DIR}/horizon/openstack_dashboard/test/integration_tests/
128139
# set variables in horizon.conf
129140
crudini --set horizon.conf dashboard dashboard_url ${DASHBOARD_URL}/dashboard/
130141
crudini --set horizon.conf dashboard auth_url ${AUTH_URL}
142+
crudini --set horizon.conf dashboard help_url ${HELP_URL}
131143
crudini --set horizon.conf identity username ${USER_NAME}
132144
crudini --set horizon.conf identity password ${PASSWORD}
133145
crudini --set horizon.conf identity home_project ${PROJECT_NAME}
@@ -139,6 +151,16 @@ crudini --set horizon.conf launch_instances image_name "${IMAGE_FILE_NAME_WITH_S
139151
crudini --set horizon.conf selenium explicit_wait ${SELENIUM_EXPLICIT_WAIT}
140152
crudini --set horizon.conf selenium page_timeout ${SELENIUM_PAGE_TIMEOUT}
141153
crudini --set horizon.conf selenium implicit_wait ${SELENIUM_IMPLICIT_WAIT}
154+
crudini --set horizon.conf network subnet_name ${SUBNET_NAME}
155+
crudini --set horizon.conf theme project_name_xpath "${PROJECT_NAME_XPATH}"
156+
crudini --set horizon.conf theme help_sequence "${HELP_SEQUENCE}"
157+
crudini --set horizon.conf theme test_material_theme "${TEST_MATERIAL_THEME}"
158+
crudini --set horizon.conf theme user_name_xpath "${USER_NAME_XPATH}"
159+
crudini --set horizon.conf theme browse_left_panel_main "${BROWSE_LEFT_PANEL_MAIN}"
160+
crudini --set horizon.conf theme browse_left_panel_sec "${BROWSE_LEFT_PANEL_SEC}"
161+
crudini --set horizon.conf theme b_l_p_sec_line_xpath "${BLP_SEC_LINE_XPATH}"
162+
crudini --set horizon.conf theme b_l_p_sec_line_req_btn "${BLP_SEC_LINE_REQ_BTN}"
163+
crudini --set horizon.conf theme b_l_p_sidebar_xpath "${BLP_SIDEBAR_XPATH}"
142164
popd
143165

144166
# run horizon selenium tests

0 commit comments

Comments
 (0)