This is an automated email from the ASF dual-hosted git repository.

turcsanyi pushed a commit to branch NIFI-8092
in repository https://gitbox.apache.org/repos/asf/nifi.git

commit 8499b2c24561bec1fc0482cbe421413a3225ed1f
Author: Peter Turcsanyi <turcsa...@apache.org>
AuthorDate: Mon Dec 14 17:41:32 2020 +0100

    NIFI-8092: Fix ITPutS3Object test failure due to Outposts storage class
---
 .../java/org/apache/nifi/processors/aws/s3/ITPutS3Object.java  | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git 
a/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/test/java/org/apache/nifi/processors/aws/s3/ITPutS3Object.java
 
b/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/test/java/org/apache/nifi/processors/aws/s3/ITPutS3Object.java
index fac1e86..7d2fd0e 100644
--- 
a/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/test/java/org/apache/nifi/processors/aws/s3/ITPutS3Object.java
+++ 
b/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/test/java/org/apache/nifi/processors/aws/s3/ITPutS3Object.java
@@ -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<>();

Reply via email to