Skip to content

Commit 2828f8c

Browse files
arp7ajayydv
authored andcommitted
HDDS-1321. TestOzoneManagerHttpServer depends on hard-coded port numbers. Contributed by Arpit Agarwal. (apache#633)
Change-Id: I9656af4a7f41812da9d125c10ae0e8daf3dcf7f5
1 parent 548997d commit 2828f8c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerHttpServer.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.apache.hadoop.http.HttpConfig;
2626
import org.apache.hadoop.http.HttpConfig.Policy;
2727
import org.apache.hadoop.net.NetUtils;
28-
import org.apache.hadoop.hdds.scm.ScmConfigKeys;
2928
import org.apache.hadoop.security.ssl.KeyStoreTestUtil;
3029
import org.apache.hadoop.test.GenericTestUtils;
3130
import org.junit.AfterClass;
@@ -94,8 +93,8 @@ public TestOzoneManagerHttpServer(Policy policy) {
9493

9594
@Test public void testHttpPolicy() throws Exception {
9695
conf.set(DFSConfigKeys.DFS_HTTP_POLICY_KEY, policy.name());
97-
conf.set(ScmConfigKeys.OZONE_SCM_HTTPS_ADDRESS_KEY, "localhost:0");
98-
InetSocketAddress addr = InetSocketAddress.createUnresolved("localhost", 0);
96+
conf.set(OMConfigKeys.OZONE_OM_HTTP_ADDRESS_KEY, "localhost:0");
97+
conf.set(OMConfigKeys.OZONE_OM_HTTPS_ADDRESS_KEY, "localhost:0");
9998

10099
OzoneManagerHttpServer server = null;
101100
try {

0 commit comments

Comments
 (0)