Skip to content

Commit

Permalink
fix TestRMFailover
Browse files Browse the repository at this point in the history
  • Loading branch information
stoty committed Mar 8, 2025
1 parent e5ab6bb commit 79f170f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public void testWebAppProxyInStandAloneMode() throws YarnException,

WebAppProxyServer webAppProxyServer = new WebAppProxyServer();
try {
conf.set(YarnConfiguration.PROXY_ADDRESS, "0.0.0.0:9099");
conf.set(YarnConfiguration.PROXY_ADDRESS, "localhost:9099");
cluster.init(conf);
cluster.start();
getAdminService(0).transitionToActive(req);
Expand All @@ -231,7 +231,7 @@ public void testWebAppProxyInStandAloneMode() throws YarnException,

// send httpRequest with fakeApplicationId
// expect to get "Not Found" response and 404 response code
URL wrongUrl = new URL("http://0.0.0.0:9099/proxy/" + fakeAppId);
URL wrongUrl = new URL("http://localhost:9099/proxy/" + fakeAppId);
HttpURLConnection proxyConn = (HttpURLConnection) wrongUrl
.openConnection();

Expand All @@ -258,7 +258,7 @@ public void testEmbeddedWebAppProxy() throws YarnException,

// send httpRequest with fakeApplicationId
// expect to get "Not Found" response and 404 response code
URL wrongUrl = new URL("http://0.0.0.0:18088/proxy/" + fakeAppId);
URL wrongUrl = new URL("http://localhost:18088/proxy/" + fakeAppId);
HttpURLConnection proxyConn = (HttpURLConnection) wrongUrl
.openConnection();

Expand Down Expand Up @@ -286,8 +286,8 @@ public void testRMWebAppRedirect() throws YarnException,
cluster.init(conf);
cluster.start();
getAdminService(0).transitionToActive(req);
String rm1Url = "http://0.0.0.0:18088";
String rm2Url = "http://0.0.0.0:28088";
String rm1Url = "http://localhost:18088";
String rm2Url = "http://localhost:28088";

String redirectURL = getRedirectURL(rm2Url);
// if uri is null, RMWebAppFilter will append a slash at the trail of the redirection url
Expand Down

0 comments on commit 79f170f

Please sign in to comment.