diff options
author | Valery Piashchynski <[email protected]> | 2021-07-23 08:35:18 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-07-23 08:35:18 +0300 |
commit | c851b5611a4118b714a05873225916ae07cf4e4a (patch) | |
tree | 204f078f78401de2ee88951b2665399c92d6403b /tests/plugins/jobs | |
parent | 54a5c4f2766927427431fd9960c7936dccadeaba (diff) |
SQS configuration and tests update
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/jobs')
-rw-r--r-- | tests/plugins/jobs/jobs_sqs_test.go | 13 | ||||
-rw-r--r-- | tests/plugins/jobs/sqs/.rr-sqs-init.yaml | 9 |
2 files changed, 15 insertions, 7 deletions
diff --git a/tests/plugins/jobs/jobs_sqs_test.go b/tests/plugins/jobs/jobs_sqs_test.go index 359842dc..7cad3876 100644 --- a/tests/plugins/jobs/jobs_sqs_test.go +++ b/tests/plugins/jobs/jobs_sqs_test.go @@ -222,12 +222,13 @@ func declareSQSPipe(t *testing.T) { client := rpc.NewClientWithCodec(goridgeRpc.NewClientCodec(conn)) pipe := &jobsv1beta.DeclareRequest{Pipeline: map[string]string{ - "driver": "sqs", - "name": "test-3", - "queue": "default", - "prefetch": "100", - "priority": "3", - "wait_time": "3", + "driver": "sqs", + "name": "test-3", + "queue": "default", + "prefetch": "10", + "priority": "3", + "visibility_timeout": "0", + "wait_time_seconds": "3", }} er := &jobsv1beta.Empty{} diff --git a/tests/plugins/jobs/sqs/.rr-sqs-init.yaml b/tests/plugins/jobs/sqs/.rr-sqs-init.yaml index f2702906..ca2f7652 100644 --- a/tests/plugins/jobs/sqs/.rr-sqs-init.yaml +++ b/tests/plugins/jobs/sqs/.rr-sqs-init.yaml @@ -32,9 +32,16 @@ jobs: test-1: driver: sqs prefetch: 1000 + visibility_timeout: 0 + wait_time_seconds: 0 queue: default + # https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SetQueueAttributes.html attributes: - MessageRetentionPeriod: 86400 + DelaySeconds: 0 + MaximumMessageSize: 262144 + MessageRetentionPeriod: 345600 + ReceiveMessageWaitTimeSeconds: 0 + VisibilityTimeout: 30 tags: test: "tag" |