Skip to content

Add additional tests for valid SQS attr values - #345

Merged
Jeffail merged 4 commits into
redpanda-data:masterfrom
rxfork:sqs-attr-tests
Dec 20, 2019
Merged

Jeffail merged 4 commits into
redpanda-data:masterfrom
rxfork:sqs-attr-tests

Conversation

@razor-x

@razor-x razor-x commented Dec 19, 2019

Copy link
Copy Markdown
Contributor

Following the SQS docs, attr values can have any valid SQS body char. Those are shown here:

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html

#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF 

Since Ѱ = #x470 = 0x470 is in the range #x20 to #xD7FF the new tests should pass.

@razor-x

razor-x commented Dec 19, 2019

Copy link
Copy Markdown
Contributor Author

@Jeffail Both the new tests for ISO date and the valid character Ѱ failed the build. Thus this check is still dropping valid SQS attr values.

I am going to remove the check on the value. The only other option I see is implimenting the proper unicode range check, and I'm unsure how to do that in Go.

@razor-x
razor-x marked this pull request as ready for review December 19, 2019 17:16
@razor-x

razor-x commented Dec 19, 2019

Copy link
Copy Markdown
Contributor Author

@Jeffail This should be good to merge now. Even you want to implement the char code validation I suggest you merge this first to restore working SQS functionality and add the new feature independently so it can pass against the new regression tests.

@Jeffail

Jeffail commented Dec 20, 2019

Copy link
Copy Markdown
Contributor

Looks good, thanks @razor-x!

@Jeffail
Jeffail merged commit 95ce67d into redpanda-data:master Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants