Skip to content

Commit e6063eb

Browse files
committed
Renaming the flag to “network”
1 parent e6b5603 commit e6063eb

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

java/src/org/openqa/selenium/grid/router/httpd/RouterFlags.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
package org.openqa.selenium.grid.router.httpd;
1919

2020
import static org.openqa.selenium.grid.config.StandardGridRoles.ROUTER_ROLE;
21-
import static org.openqa.selenium.grid.router.httpd.RouterOptions.REVERSE_PROXY_SECTION;
21+
import static org.openqa.selenium.grid.router.httpd.RouterOptions.NETWORK;
2222

2323
import com.google.auto.service.AutoService;
2424

@@ -61,7 +61,7 @@ public class RouterFlags implements HasRoles {
6161
names = {"--sub-path"},
6262
arity = 1,
6363
description = "A sub-path that should be considered for all user facing routes on the Hub/Router/Standalone")
64-
@ConfigValue(section = REVERSE_PROXY_SECTION, name = "sub-path", example = "my_company/selenium_grid")
64+
@ConfigValue(section = NETWORK, name = "sub-path", example = "my_company/selenium_grid")
6565
public String subPath;
6666

6767
@Override

java/src/org/openqa/selenium/grid/router/httpd/RouterOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
public class RouterOptions {
2323

24-
static final String REVERSE_PROXY_SECTION = "reverse_proxy";
24+
static final String NETWORK = "network";
2525

2626
private final Config config;
2727

@@ -30,7 +30,7 @@ public RouterOptions(Config config) {
3030
}
3131

3232
public String subPath() {
33-
return config.get(REVERSE_PROXY_SECTION, "sub-path").map(prefix -> {
33+
return config.get(NETWORK, "sub-path").map(prefix -> {
3434
prefix = prefix.trim();
3535
if (!prefix.startsWith("/")) {
3636
prefix = "/" + prefix; //Prefix with a '/' if absent.

java/test/org/openqa/selenium/grid/router/ReverseProxyEndToEndTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static Stream<Arguments> data() {
7676
Config additionalConfig =
7777
new TomlConfig(
7878
new StringReader(
79-
"[reverse_proxy]\n" +
79+
"[network]\n" +
8080
"sub-path = \"" + SUB_PATH + "\"\n" +
8181
"[node]\n" +
8282
"detect-drivers = false\n" +

0 commit comments

Comments
 (0)