NIFI-8092: Fix ITPutS3Object test failure due to Outposts storage class

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #4728.
This commit is contained in:
Peter Turcsanyi 2020-12-14 17:41:32 +01:00 committed by Pierre Villard
parent f29d6a6046
commit 02665d7561
No known key found for this signature in database
GPG Key ID: F92A93B30C07C6D5
1 changed files with 10 additions and 0 deletions

View File

@ -393,6 +393,11 @@ public class ITPutS3Object extends AbstractS3IT {
Assert.assertTrue(runner.setProperty("x-custom-prop", "hello").isValid());
for (StorageClass storageClass : StorageClass.values()) {
if (storageClass == StorageClass.Outposts) {
// Outposts storage class cannot be tested on AWS cloud infrastructure
continue;
}
runner.setProperty(PutS3Object.STORAGE_CLASS, storageClass.name());
final Map<String, String> attrs = new HashMap<>();
@ -419,6 +424,11 @@ public class ITPutS3Object extends AbstractS3IT {
Assert.assertTrue(runner.setProperty("x-custom-prop", "hello").isValid());
for (StorageClass storageClass : StorageClass.values()) {
if (storageClass == StorageClass.Outposts) {
// Outposts storage class cannot be tested on AWS cloud infrastructure
continue;
}
runner.setProperty(PutS3Object.STORAGE_CLASS, storageClass.name());
final Map<String, String> attrs = new HashMap<>();