aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2026-03-11 19:12:44 +0100
committerMichal Nasiadka <mnasiadka@gmail.com>2026-03-12 06:54:44 +0000
commitb29dd9f6d0c48acc3d111d08addb0ba38bd5b274 (patch)
tree969148c110ab4960c1aa1b68dd72050bfcff0df5 /tests
parent68ec4c294e66fb51f1b6297ab1d29e014c9856d1 (diff)
downloadkolla-ansible-b29dd9f6d0c48acc3d111d08addb0ba38bd5b274.tar.gz
kolla-ansible-b29dd9f6d0c48acc3d111d08addb0ba38bd5b274.zip
selenium: Use Horizon login url
Previously we used logout url in the test, which worked (and was also used in Horizon). It stopped working after recent changes, but changing to login url fixes that. Change-Id: I19c24ce44370ab949bfea49aef7023dd323fff6a Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com> Co-Authored-By: Taavi Ansper <taaviansperr@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/testinfra/test_horizon.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/testinfra/test_horizon.py b/tests/testinfra/test_horizon.py
index 1f193e383..9b27e4700 100644
--- a/tests/testinfra/test_horizon.py
+++ b/tests/testinfra/test_horizon.py
@@ -84,13 +84,13 @@ def test_horizon_login(host):
horizon_proto = host.environment().get('HORIZON_PROTO')
horizon_url = horizon_proto + "://192.0.2.10"
- logout_url = '/'.join((
- horizon_url,
- 'auth',
- 'logout'))
+ login_url = '/'.join((
+ horizon_url,
+ 'auth',
+ 'login'))
try:
- driver.get(logout_url)
+ driver.get(login_url)
user_field = driver.find_element(By.ID, 'id_username')
user_field.send_keys('admin')
pass_field = driver.find_element(By.ID, 'id_password')