matrei commented on code in PR #15067:
URL: https://github.com/apache/grails-core/pull/15067#discussion_r2362838472


##########
grails-geb/src/testFixtures/groovy/grails/plugin/geb/WebDriverContainerHolder.groovy:
##########
@@ -245,19 +268,47 @@ class WebDriverContainerHolder {
 
     /**
      * Returns the hostname that the server under test is available on from 
the host.
-     * <p>This is useful when using any of the {@code download*()} methods as 
they will connect from the host,
-     * and not from within the container.
+     * <p>This is useful when using any of the {@code download*()} methods as 
they will
+     * connect from the host, and not from within the container.
+     *
      * <p>Defaults to {@code localhost}. If the value returned by {@code 
webDriverContainer.getHost()}
-     * is different from the default, this method will return the same value 
same as {@code webDriverContainer.getHost()}.
+     * is different from the default, this method will return the same value 
same as
+     * {@code webDriverContainer.getHost()}.
      *
      * @return the hostname for accessing the server under test from the host
      */
     String getHostNameFromHost() {
-        return hostNameChanged ? currentContainer.host : 
DEFAULT_HOSTNAME_FROM_HOST
+        hostNameChanged ? container.host : DEFAULT_HOSTNAME_FROM_HOST
     }
 
     private boolean isHostNameChanged() {
-        return currentContainer.host != 
ContainerGebConfiguration.DEFAULT_HOSTNAME_FROM_CONTAINER
+        container.host != 
ContainerGebConfiguration.DEFAULT_HOSTNAME_FROM_CONTAINER
+    }
+
+    private static DockerImageName getDefaultDockerImageName() {
+        DockerImageName.parse("$DEFAULT_DOCKER_IMAGE_NAME:$seleniumVersion")
+    }
+
+    private static DockerImageName createDockerImageName(Object 
configuredBrowser) {
+        validateConfiguredBrowser(configuredBrowser)
+        
DockerImageName.parse("selenium/standalone-$configuredBrowser:$seleniumVersion")
+    }
+
+    private static void validateConfiguredBrowser(Object browser) {

Review Comment:
   Good point! Pushed changes.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@grails.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to