Browse Source

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

Mingliang Liu 8 years ago
parent
commit
0013090fb4

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

@@ -58,7 +58,7 @@ public class ITestS3AEncryptionSSEC extends AbstractTestS3AEncryption {
     Exception {
     final Path[] path = new Path[1];
     intercept(java.nio.file.AccessDeniedException.class,
-        "Forbidden (Service: Amazon S3; Status Code: 403;", () -> {
+        "Service: Amazon S3; Status Code: 403;", () -> {
 
         int len = 2048;
         skipIfEncryptionTestsDisabled(getConfiguration());