diff --git a/dora/tests/src/test/java/alluxio/client/rest/CreateBucketTest.java b/dora/tests/src/test/java/alluxio/client/rest/CreateBucketTest.java index 5c24aa22d101..19e22a9390ec 100644 --- a/dora/tests/src/test/java/alluxio/client/rest/CreateBucketTest.java +++ b/dora/tests/src/test/java/alluxio/client/rest/CreateBucketTest.java @@ -34,11 +34,12 @@ public class CreateBucketTest extends RestApiTest { private static final String TEST_BUCKET = "test-bucket"; + private static final int UFS_PORT = 8002; private AmazonS3 mS3Client = null; @Rule public S3ProxyRule mS3Proxy = S3ProxyRule.builder() .withBlobStoreProvider("transient") - .withPort(8002) + .withPort(UFS_PORT) .withCredentials("_", "_") .build(); @@ -49,7 +50,7 @@ public class CreateBucketTest extends RestApiTest { .setProperty(PropertyKey.USER_FILE_WRITE_TYPE_DEFAULT, WriteType.CACHE_THROUGH) .setProperty(PropertyKey.WORKER_BLOCK_STORE_TYPE, "PAGE") .setProperty(PropertyKey.WORKER_PAGE_STORE_PAGE_SIZE, Constants.KB) - .setProperty(PropertyKey.UNDERFS_S3_ENDPOINT, "localhost:8002") + .setProperty(PropertyKey.UNDERFS_S3_ENDPOINT, "localhost:" + UFS_PORT) .setProperty(PropertyKey.UNDERFS_S3_ENDPOINT_REGION, "us-west-2") .setProperty(PropertyKey.UNDERFS_S3_DISABLE_DNS_BUCKETS, true) .setProperty(PropertyKey.MASTER_MOUNT_TABLE_ROOT_UFS, "s3://" + TEST_BUCKET) diff --git a/dora/tests/src/test/java/alluxio/client/rest/TestCase.java b/dora/tests/src/test/java/alluxio/client/rest/TestCase.java index 9c8052cca9ef..eff9769323e3 100644 --- a/dora/tests/src/test/java/alluxio/client/rest/TestCase.java +++ b/dora/tests/src/test/java/alluxio/client/rest/TestCase.java @@ -114,7 +114,6 @@ public URL createURL() throws Exception { } /** - * @param connection the HttpURLConnection * @return the String from the InputStream of HttpURLConnection */ public String getResponse() throws Exception {