From 0a8e23da8acefd03459db49365c2fcbb1addd006 Mon Sep 17 00:00:00 2001 From: Viet Nguyen Duc Date: Wed, 10 Jan 2024 09:44:14 +0700 Subject: [PATCH] feat(chart): Enable HTTPS on distributed components (#2087) Signed-off-by: Viet Nguyen Duc --- SessionQueue/start-selenium-grid-session-queue.sh | 5 +++++ tests/SeleniumTests/__init__.py | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/SessionQueue/start-selenium-grid-session-queue.sh b/SessionQueue/start-selenium-grid-session-queue.sh index ac6f5a763..d5ea847ac 100755 --- a/SessionQueue/start-selenium-grid-session-queue.sh +++ b/SessionQueue/start-selenium-grid-session-queue.sh @@ -48,6 +48,11 @@ if [ ! -z "$SE_JAVA_SSL_TRUST_STORE" ]; then SE_JAVA_OPTS="$SE_JAVA_OPTS -Djdk.internal.httpclient.disableHostnameVerification=${SE_JAVA_DISABLE_HOSTNAME_VERIFICATION:-true}" fi +if [ ! -z "$SE_REGISTRATION_SECRET" ]; then + echo "Appending Selenium options: --registration-secret ${SE_REGISTRATION_SECRET}" + SE_OPTS="$SE_OPTS --registration-secret ${SE_REGISTRATION_SECRET}" +fi + EXTRA_LIBS="" if [ ! -z "$SE_ENABLE_TRACING" ]; then diff --git a/tests/SeleniumTests/__init__.py b/tests/SeleniumTests/__init__.py index 0938d6939..9cc62bc36 100644 --- a/tests/SeleniumTests/__init__.py +++ b/tests/SeleniumTests/__init__.py @@ -137,7 +137,9 @@ def run(self, test_classes): for test in suite: futures.append(executor.submit(test)) for future in concurrent.futures.as_completed(futures): - future.result() + result = future.result() + if not result.wasSuccessful(): + raise Exception("Parallel tests failed") class JobAutoscalingTests(unittest.TestCase): def test_parallel_autoscaling(self):