diff options
author | Valery Piashchynski <[email protected]> | 2021-06-15 22:12:32 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-15 22:12:32 +0300 |
commit | d4c92e48bada7593b6fbec612a742c599de6e736 (patch) | |
tree | 53b6fb81987953b71a77ae094e579a0a7daa407c /plugins/jobs/broker/sqs/job_test.go | |
parent | 9dc98d43b0c0de3e1e1bd8fdc97c122c7c7c594f (diff) |
- Jobs plugin initial commit
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/broker/sqs/job_test.go')
-rw-r--r-- | plugins/jobs/broker/sqs/job_test.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/jobs/broker/sqs/job_test.go b/plugins/jobs/broker/sqs/job_test.go new file mode 100644 index 00000000..a120af53 --- /dev/null +++ b/plugins/jobs/broker/sqs/job_test.go @@ -0,0 +1,19 @@ +package sqs + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/sqs" + "github.com/stretchr/testify/assert" + "testing" +) + +func Test_Unpack(t *testing.T) { + msg := &sqs.Message{ + Body: aws.String("body"), + Attributes: map[string]*string{}, + MessageAttributes: map[string]*sqs.MessageAttributeValue{}, + } + + _, _, _, err := unpack(msg) + assert.Error(t, err) +} |