From 00fa926324b051aa51456ab5c406939e7f936015 Mon Sep 17 00:00:00 2001 From: Jaroslav Spisak Date: Fri, 25 Nov 2016 10:27:58 +0200 Subject: [PATCH] Added support for modifying grid configuration option throwOnCapabilityNotPresent --- Hub/Dockerfile.txt | 1 + Hub/generate_config | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Hub/Dockerfile.txt b/Hub/Dockerfile.txt index 992952310..56bd474d6 100644 --- a/Hub/Dockerfile.txt +++ b/Hub/Dockerfile.txt @@ -6,6 +6,7 @@ MAINTAINER Selenium EXPOSE 4444 +ENV GRID_THROW_ON_CAPABILITY_NOT_PRESENT true ENV GRID_NEW_SESSION_WAIT_TIMEOUT -1 ENV GRID_JETTY_MAX_THREADS -1 ENV GRID_NODE_POLLING 5000 diff --git a/Hub/generate_config b/Hub/generate_config index e88fdbee2..721c7a4b0 100755 --- a/Hub/generate_config +++ b/Hub/generate_config @@ -6,7 +6,7 @@ echo " \"port\": 4444, \"prioritizer\": null, \"capabilityMatcher\": \"org.openqa.grid.internal.utils.DefaultCapabilityMatcher\", - \"throwOnCapabilityNotPresent\": true, + \"throwOnCapabilityNotPresent\": $GRID_THROW_ON_CAPABILITY_NOT_PRESENT, \"newSessionWaitTimeout\": $GRID_NEW_SESSION_WAIT_TIMEOUT, \"jettyMaxThreads\": $GRID_JETTY_MAX_THREADS, \"nodePolling\": $GRID_NODE_POLLING,