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

Reply via email to