1
0
Fork 0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-11-10 07:00:08 +00:00
cloudkeys-go/vendor/github.com/aws/aws-sdk-go/service/sqs/api_test.go
Knut Ahlers 7581358922
Switch to dep for vendoring, update dependencies
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-12-08 13:03:10 +01:00

34 lines
780 B
Go

// +build integration
package sqs_test
import (
"testing"
"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"),
},
},
})
if err == nil {
t.Fatalf("expect error, got nil")
}
if e, a := "InvalidAddress", err.Code(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "The address QUEUE is not valid for this endpoint.", err.Message(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}