You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by pv...@apache.org on 2020/12/16 11:43:35 UTC

[nifi] branch main updated: NIFI-8092: Fix ITPutS3Object test failure due to Outposts storage class

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

pvillard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 02665d7  NIFI-8092: Fix ITPutS3Object test failure due to Outposts storage class
02665d7 is described below

commit 02665d756197cbeeb99f8f635811d442e88cdd1a
Author: Peter Turcsanyi <tu...@apache.org>
AuthorDate: Mon Dec 14 17:41:32 2020 +0100

    NIFI-8092: Fix ITPutS3Object test failure due to Outposts storage class
    
    Signed-off-by: Pierre Villard <pi...@gmail.com>
    
    This closes #4728.
---
 .../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<>();