mirror of
https://github.com/rclone/rclone.git
synced 2024-12-03 13:55:34 +01:00
31 lines
695 B
Go
31 lines
695 B
Go
// +build integration
|
|
|
|
package sqs_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/aws/aws-sdk-go/aws"
|
|
"github.com/aws/aws-sdk-go/awstesting/unit"
|
|
"github.com/aws/aws-sdk-go/service/sqs"
|
|
)
|
|
|
|
func TestFlattenedTraits(t *testing.T) {
|
|
s := sqs.New(unit.Session)
|
|
_, err := s.DeleteMessageBatch(&sqs.DeleteMessageBatchInput{
|
|
QueueURL: aws.String("QUEUE"),
|
|
Entries: []*sqs.DeleteMessageBatchRequestEntry{
|
|
{
|
|
ID: aws.String("TEST"),
|
|
ReceiptHandle: aws.String("RECEIPT"),
|
|
},
|
|
},
|
|
})
|
|
|
|
assert.Error(t, err)
|
|
assert.Equal(t, "InvalidAddress", err.Code())
|
|
assert.Equal(t, "The address QUEUE is not valid for this endpoint.", err.Message())
|
|
}
|