Browse Source

HADOOP-14102. Relax error message assertion in S3A test ITestS3AEncryptionSSEC. Contributed by Mingliang Liu

(cherry picked from commit 0013090fb4340eadf147054e65a73de20a62c1c1)
Mingliang Liu 8 năm trước cách đây
mục cha
commit
db955f0844

+ 1 - 1
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AEncryptionSSEC.java

@@ -65,7 +65,7 @@ public class ITestS3AEncryptionSSEC extends AbstractTestS3AEncryption {
     Exception {
     expectedException.expect(java.nio.file.AccessDeniedException.class);
     expectedException.expectMessage(StringContains
-        .containsString("Forbidden (Service: Amazon S3; Status Code: 403;"));
+        .containsString("Service: Amazon S3; Status Code: 403;"));
 
     Path path = null;
     try {