Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b9c757

Browse files
ssy352959096JacksonTian
authored andcommitted
delete case that are not supported by the server
1 parent 6400549 commit 2b9c757

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

java-sdk-function-test/src/test/java/com/aliyuncs/APIEncapsulateTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ public void FormPutTypeTest() {
116116
this.client.getAcsResponse(request);
117117
Assert.fail();
118118
} catch (ClientException e) {
119-
Assert.assertEquals("ContentMD5NotMatched", e.getErrCode());
120-
Assert.assertEquals("Specified content md5 is not matched with your request body.", e.getErrMsg());
119+
Assert.assertEquals("HTTPBadRequest", e.getErrCode());
120+
Assert.assertEquals(
121+
"The server could not comply with the request since it is either malformed or otherwise incorrect. "
122+
+ "The content type is None. Try use \"application/json\" instead.", e.getErrMsg());
121123
}
122124
}
123125

0 commit comments

Comments
 (0)