nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NIFI-4015) DeleteSQS Throws Exception Deleting Message
Date Tue, 01 Aug 2017 11:26:02 GMT

    [ https://issues.apache.org/jira/browse/NIFI-4015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16108733#comment-16108733
] 

ASF GitHub Bot commented on NIFI-4015:
--------------------------------------

Github user jzonthemtn commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1888#discussion_r130582495
  
    --- 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 --
    
    I think it's fine as is after reading your comment. I didn't realize most of the integration
tests use a properties file. No reason to break from that norm in this case. That's a good
point about requiring separate credentials to prevent anything unintended from happening.


> 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)

Mime
View raw message