Skip to content

Commit 98718ba

Browse files
committed
fixes failing tests
1 parent e14c52c commit 98718ba

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3APrefetchingCacheFiles.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public synchronized void teardown() throws Exception {
105105
@Test
106106
public void testCacheFileExistence() throws Throwable {
107107
describe("Verify that FS cache files exist on local FS");
108+
skipIfClientSideEncryption();
108109

109110
try (FSDataInputStream in = fs.open(testFile)) {
110111
byte[] buffer = new byte[prefetchBlockSize];

hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3APrefetchingInputStream.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ private static int calculateNumBlocks(long largeFileSize, int blockSize) {
118118
@Test
119119
public void testReadLargeFileFully() throws Throwable {
120120
describe("read a large file fully, uses S3ACachingInputStream");
121+
skipIfClientSideEncryption();
121122
IOStatistics ioStats;
122123
openFS();
123124

@@ -151,6 +152,7 @@ public void testReadLargeFileFully() throws Throwable {
151152
public void testReadLargeFileFullyLazySeek() throws Throwable {
152153
describe("read a large file using readFully(position,buffer,offset,length),"
153154
+ " uses S3ACachingInputStream");
155+
skipIfClientSideEncryption();
154156
IOStatistics ioStats;
155157
openFS();
156158

@@ -182,6 +184,7 @@ public void testReadLargeFileFullyLazySeek() throws Throwable {
182184
@Test
183185
public void testRandomReadLargeFile() throws Throwable {
184186
describe("random read on a large file, uses S3ACachingInputStream");
187+
skipIfClientSideEncryption();
185188
IOStatistics ioStats;
186189
openFS();
187190

hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3ARequesterPays.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected Configuration createConfiguration() {
5959
@Test
6060
public void testRequesterPaysOptionSuccess() throws Throwable {
6161
describe("Test requester pays enabled case by reading last then first byte");
62-
62+
skipIfClientSideEncryption();
6363
Configuration conf = this.createConfiguration();
6464
conf.setBoolean(ALLOW_REQUESTER_PAYS, true);
6565
// Enable bucket exists check, the first failure point people may encounter

hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/auth/ITestAssumeRole.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ public void testReadOnlyOperations() throws Throwable {
448448
policy(
449449
statement(false, S3_ALL_BUCKETS, S3_PATH_WRITE_OPERATIONS),
450450
STATEMENT_ALL_S3,
451-
STATEMENT_ALLOW_SSE_KMS_READ));
451+
STATEMENT_ALLOW_SSE_KMS_RW));
452452
Path path = methodPath();
453453
roleFS = (S3AFileSystem) path.getFileSystem(conf);
454454
// list the root path, expect happy

hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/s3guard/ITestS3GuardTool.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public void testLandsatBucketRequireGuarded() throws Throwable {
7070

7171
@Test
7272
public void testLandsatBucketRequireUnencrypted() throws Throwable {
73+
skipIfClientSideEncryption();
7374
run(BucketInfo.NAME,
7475
"-" + BucketInfo.ENCRYPTION_FLAG, "none",
7576
getLandsatCSVFile(getConfiguration()));

0 commit comments

Comments
 (0)