From 22826c2ff3ee653ac8f3d931d3b11490567c1632 Mon Sep 17 00:00:00 2001 From: Piotr Milewski Date: Tue, 20 Jan 2026 17:51:39 +0100 Subject: tests: Change Selenium port from 4444 to 4500 The default Selenium port (4444) conflicts with MariaDB SST (State Snapshot Transfer), which also uses port 4444. This overlap caused intermittent test failures and MariaDB timeouts during CI runs. This commit shifts the Selenium standalone container to port 4500 to ensure environment stability. Change-Id: Ie259629617d47367c412336434069e5d4f5cae3a Signed-off-by: Piotr Milewski (cherry picked from commit 2da3a2c0555c5671d8d473ef71c763cc0437b3b1) --- tests/testinfra/test_horizon.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/testinfra/test_horizon.py b/tests/testinfra/test_horizon.py index abdb787c6..1f193e383 100644 --- a/tests/testinfra/test_horizon.py +++ b/tests/testinfra/test_horizon.py @@ -33,9 +33,11 @@ with open("/etc/kolla/passwords.yml", 'r') as file: def test_horizon_screenshot(host): firefox_options = webdriver.FirefoxOptions() + selenium_url = host.environment().get( + 'SELENIUM_REMOTE_URL', 'http://localhost:4500/wd/hub') driver = webdriver.Remote( - command_executor='http://localhost:4444/wd/hub', + command_executor=selenium_url, options=firefox_options) horizon_proto = host.environment().get('HORIZON_PROTO') @@ -73,9 +75,11 @@ def test_horizon_screenshot(host): def test_horizon_login(host): firefox_options = webdriver.FirefoxOptions() + selenium_url = host.environment().get( + 'SELENIUM_REMOTE_URL', 'http://localhost:4500/wd/hub') driver = webdriver.Remote( - command_executor='http://localhost:4444/wd/hub', + command_executor=selenium_url, options=firefox_options) horizon_proto = host.environment().get('HORIZON_PROTO') -- cgit v1.2.3