mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-02 04:50:49 +00:00
Conver to regular Go vendor + dep tool
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
// +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())
|
||||
}
|
||||
Reference in New Issue
Block a user