mirror of https://github.com/apache/nifi.git
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:
parent
f29d6a6046
commit
02665d7561
|
@ -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<>();
|
||||
|
|
Loading…
Reference in New Issue