Commit c89be8c
fix: default value for SQS's receive message (#2405)
* fix: default value for SQS's receive message
After #2300, `MessageAttributeNames` and `MessageSystemAttributeNames`
had `None` as default values, but `None` is not a valid value for those
fields. See:
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sqs/client/receive_message.html
This commit suggests adding `[]` as the new default value for those
fields following the error message below and the docs above.
Closes #2403
* Adds test to SQS's MessageAttributeNames and MessageSystemAttributeNames
* Fixes tests
* Removes `None` as mock's default
---------
Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com>1 parent ecbb733 commit c89be8c
2 files changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
| 548 | + | |
| 549 | + | |
549 | 550 | | |
550 | | - | |
| 551 | + | |
551 | 552 | | |
552 | 553 | | |
553 | 554 | | |
| |||
964 | 965 | | |
965 | 966 | | |
966 | 967 | | |
967 | | - | |
| 968 | + | |
968 | 969 | | |
969 | 970 | | |
970 | 971 | | |
| |||
988 | 989 | | |
989 | 990 | | |
990 | 991 | | |
991 | | - | |
| 992 | + | |
992 | 993 | | |
993 | 994 | | |
994 | 995 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
| 128 | + | |
| 129 | + | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
0 commit comments