Skip to content

Commit 8f4bc45

Browse files
committed
update testcase.
1 parent 7525162 commit 8f4bc45

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/test/java/com/aliyun/oss/integrationtests/AsyncFetchTaskTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void setUp() throws Exception {
4949
super.setUp();
5050

5151
bucketName = super.bucketName + "-aysnc-fetch-task";
52-
endpoint = "http://oss-ap-south-1.aliyuncs.com";
52+
endpoint = TestConfig.OSS_TEST_ENDPOINT;
5353

5454
//create client
5555
ClientConfiguration conf = new ClientConfiguration().setSupportCname(false);

src/test/java/com/aliyun/oss/integrationtests/BucketLifecycleVersioningTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void setUp() throws Exception {
3333
super.setUp();
3434

3535
bucketName = super.bucketName + "-lifecycle-version";
36-
endpoint = "http://oss-ap-south-1.aliyuncs.com";
36+
endpoint = TestConfig.OSS_TEST_ENDPOINT;
3737

3838
//create client
3939
ClientConfiguration conf = new ClientConfiguration().setSupportCname(false);

src/test/java/com/aliyun/oss/integrationtests/BucketVersioningTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void testSetBucketVersioning() {
3939
OSSClient ossClient = null;
4040

4141
try {
42-
final String endpoint = "http://oss-ap-south-1.aliyuncs.com";
42+
final String endpoint = TestConfig.OSS_TEST_ENDPOINT;
4343
final String bucketName = super.bucketName + "-bucket-versioning";
4444

4545
//create client

src/test/java/com/aliyun/oss/integrationtests/ListVersionsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void setUp() throws Exception {
5353
super.setUp();
5454

5555
bucketName = super.bucketName + "-list-versions";
56-
endpoint = "http://oss-ap-south-1.aliyuncs.com";
56+
endpoint = TestConfig.OSS_TEST_ENDPOINT;
5757

5858
//create client
5959
ClientConfiguration conf = new ClientConfiguration().setSupportCname(false);

src/test/java/com/aliyun/oss/integrationtests/ObjectRequestPaymentVersionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void setUp() throws Exception {
5050
super.setUp();
5151

5252
bucketName = super.bucketName + "-request-payment-version";
53-
endpoint = "http://oss-ap-south-1.aliyuncs.com";
53+
endpoint = TestConfig.OSS_TEST_ENDPOINT;
5454

5555
//create client
5656
ClientConfiguration conf = new ClientConfiguration().setSupportCname(false);

src/test/java/com/aliyun/oss/integrationtests/ObjectVersionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public void setUp() throws Exception {
8383
super.setUp();
8484

8585
bucketName = super.bucketName + "-object-version";
86-
endpoint = "http://oss-ap-south-1.aliyuncs.com";
86+
endpoint = TestConfig.OSS_TEST_ENDPOINT;
8787

8888
//create client
8989
ClientConfiguration conf = new ClientConfiguration().setSupportCname(false);
@@ -280,7 +280,7 @@ public void testSymlink() {
280280
ossClient.createSymlink(bucketName, link, target);
281281

282282
OSSSymlink symlink = ossClient.getSymlink(bucketName, link);
283-
Assert.assertEquals(64, symlink.getMetadata().getVersionId().length());
283+
Assert.assertEquals(false, symlink.getMetadata().getVersionId().isEmpty());
284284
} catch (Exception e) {
285285
Assert.fail(e.getMessage());
286286
}

0 commit comments

Comments
 (0)