Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9118F200CEC for ; Tue, 1 Aug 2017 06:20:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8F5CC1666B2; Tue, 1 Aug 2017 04:20:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D4D381666A4 for ; Tue, 1 Aug 2017 06:20:04 +0200 (CEST) Received: (qmail 74180 invoked by uid 500); 1 Aug 2017 04:20:04 -0000 Mailing-List: contact issues-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list issues@nifi.apache.org Received: (qmail 74144 invoked by uid 99); 1 Aug 2017 04:20:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2017 04:20:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 7486F1806B0 for ; Tue, 1 Aug 2017 04:20:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Oxzt5TDDGGzX for ; Tue, 1 Aug 2017 04:20:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 15C905F56C for ; Tue, 1 Aug 2017 04:20:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8ADD0E0997 for ; Tue, 1 Aug 2017 04:20:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 27E312464D for ; Tue, 1 Aug 2017 04:20:00 +0000 (UTC) Date: Tue, 1 Aug 2017 04:20:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-4015) DeleteSQS Throws Exception Deleting Message MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 01 Aug 2017 04:20:05 -0000 [ https://issues.apache.org/jira/browse/NIFI-4015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16108356#comment-16108356 ] ASF GitHub Bot commented on NIFI-4015: -------------------------------------- Github user jvwing commented on a diff in the pull request: https://github.com/apache/nifi/pull/1888#discussion_r130516693 --- Diff: nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/test/java/org/apache/nifi/processors/aws/sqs/ITDeleteSQS.java --- @@ -0,0 +1,83 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.nifi.processors.aws.sqs; + +import java.io.File; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +import com.amazonaws.regions.Regions; +import com.amazonaws.services.sqs.model.Message; +import com.amazonaws.services.sqs.model.ReceiveMessageResult; +import com.amazonaws.services.sqs.model.SendMessageResult; +import org.apache.nifi.util.TestRunner; +import org.apache.nifi.util.TestRunners; + +import com.amazonaws.auth.PropertiesCredentials; +import com.amazonaws.services.sqs.AmazonSQSClient; + +import org.junit.Before; +import org.junit.Ignore; +import org.junit.Test; + +import static org.junit.Assert.assertEquals; + + +@Ignore("For local testing only - interacts with S3 so the credentials file must be configured and all necessary queues created") +public class ITDeleteSQS { + + private final String CREDENTIALS_FILE = System.getProperty("user.home") + "/aws-credentials.properties"; --- End diff -- @jzonthemtn The DeleteSQS processor can absolutely use default credentials through a controller service. The integration tests across the SQS processors and most of the AWS bundle use a properties file, and I followed that pattern. I'm not sure if it was desired as the best solution, or just the one we knew how to use at the time. Maybe it prevents people from accidentally running the integration tests on with their default credentials? What do you think? > DeleteSQS Throws Exception Deleting Message > ------------------------------------------- > > Key: NIFI-4015 > URL: https://issues.apache.org/jira/browse/NIFI-4015 > Project: Apache NiFi > Issue Type: Bug > Affects Versions: 1.2.0 > Reporter: James Wing > Assignee: James Wing > Priority: Minor > > While attempting to delete a message from an SQS queue, DeleteSQS throws the following exception: > {quote} > DeleteSQS[id=6197f269-015c-1000-9317-818c01162722] Failed to delete 1 objects from SQS due to com.amazonaws.services.sqs.model.AmazonSQSException: The request must contain the parameter DeleteMessageBatchRequestEntry.1.Id. (Service: AmazonSQS; Status Code: 400; Error Code: MissingParameter; Request ID: eea76d96-a07d-5406-9838-3c3f26575223): com.amazonaws.services.sqs.model.AmazonSQSException: The request must contain the parameter DeleteMessageBatchRequestEntry.1.Id. (Service: AmazonSQS; Status Code: 400; Error Code: MissingParameter; Request ID: eea76d96-a07d-5406-9838-3c3f26575223) > {quote} -- This message was sent by Atlassian JIRA (v6.4.14#64029)