Commit Graph

125 Commits

Author SHA1 Message Date
Viren Nadkarni
b66272717f
Add type:Sender field to error response (#6465) 2023-07-04 11:06:20 +00:00
Bert Blommers
c171781223
SNS: Disable cross-region access (#6355) 2023-06-02 09:35:31 +00:00
Viren Nadkarni
c457c01305
SNS: Fix error message when topic is not found (#6349) 2023-05-31 14:39:50 +00:00
Viren Nadkarni
8ca9c17e5e
SNS: Cross-account access for topics (#6330) 2023-05-21 11:14:38 +00:00
Jakub P
054ebcb326
sns: support FilterPolicyScope attribute, including filtering (#6262) 2023-05-15 17:24:44 +00:00
Bert Blommers
a39be74273
SNS: Allow Topic without properties to be deleted using CF (#6312) 2023-05-11 21:08:10 +00:00
Niklas Janlert
92da03b1dd
SNS: Forward MessageDeduplicationId to SQS queues (#6255) 2023-04-25 15:33:22 +00:00
Jakub P
2d7c38f64f
SNS: numeric filtering fixups + parameter validation (#6242) 2023-04-24 10:05:21 +00:00
Bert Blommers
1a8ddc0f2b
Techdebt: Replace string-format with f-strings (for tests dirs) (#5678) 2022-11-17 21:41:08 -01:00
Bert Blommers
d145471b3f
SNS:subscribe() now has increased support for the FilterPolicy-argument (#5436) 2022-08-31 11:12:14 +00:00
Bert Blommers
3d913f8f15
MultiAccount support (#5192) 2022-08-13 09:49:43 +00:00
Cristopher Pinzón
98501ae676
add subscription role arn attribute (#5303) 2022-07-26 09:57:44 -03:00
Cristopher Pinzón
e99e8a883c
SNS - deletion of endpoints after platform app (#5247) 2022-06-21 17:16:15 +00:00
Bert Blommers
8973f21d15
Prepare release 3.1.13 (#5219) 2022-06-12 17:53:27 +00:00
Thomas Rausch
e911341e6a
add indirection to access account id (#5098) 2022-05-08 22:25:40 +00:00
Bert Blommers
d60df32a25
Upgrade flake8 to 4.x (#5066) 2022-04-27 11:58:59 +00:00
Bert Blommers
eed32a5f72
Pylint - Enable more rules on source and tests-directory (#4929) 2022-03-11 20:28:45 -01:00
Bert Blommers
29d01c35bc
Update Black + formatting (#4926) 2022-03-10 13:39:59 -01:00
Bert Blommers
aa522b11ca
SNS Docs - do not specify default region (#4909) 2022-03-03 22:25:06 -01:00
Bert Blommers
c53dc4c21c
SNS Improvements (#4881) 2022-02-21 21:01:38 -01:00
Bert Blommers
aa70ee254d
Remove deprecated decorators + boto dependency (#4378) 2022-01-18 14:18:57 -01:00
Bert Blommers
526559e22c
SNS: publish_batch() (#4741) 2022-01-06 22:09:16 -01:00
Sindri Guðmundsson
4e5180a9ba
Fix publishing to fifo sns->sqs subscription (#4738) 2022-01-06 15:04:55 -01:00
Bert Blommers
b8cd79cd06
SNS - Do not pass empty subject (#4679) 2021-12-12 18:07:31 -01:00
Paul Roberts
dc94cca909
Publishing to SNS topics with a null subject should be allowed (#4486) 2021-10-27 18:57:25 +00:00
Ranjithkumar Krishnan
4d4e82a7f7
Fix : SNS get attributes on FIFO topic (#4444) 2021-10-20 12:11:40 +00:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
Bert Blommers
dac33becbf
SNS:Topic: Add option to update/delete via CF (#4392) 2021-10-11 21:56:39 +00:00
Bert Blommers
e9a4100324
Rewrite deprecated CloudFormation tests (#3842) 2021-10-04 13:47:40 +00:00
Bert Blommers
d1e105f2f2
SNS - duplicate deprecated tests (#4328) 2021-09-23 11:50:59 +00:00
Anton Grübel
e865362791
Add fifo high throughput (#4224) 2021-08-26 16:23:17 +01:00
Bert Blommers
7693d77333
Remove Py2 support (#3915) 2021-07-26 07:40:39 +01:00
kohbis
c20a36b8cb
sns#create_platform_endpoint: If token and attributes are the same, return endpoint (#4055)
* If token and attributes are the same, return endpoint

* fix black

* moto sns platform_endpoint.attributes includes only token,enabled

* add tests when calling sns#create_platform_endpoint with same attrs for #4056
2021-07-04 07:43:22 +01:00
Kai
f9e0595e12
Fix sqs message retention logic (#3924)
* Fix sqs message retention logic

* Apply lint to moto/sqs/models.py

* Fix failed tests because of freezing time

* Fix freezing time in test_publish_to_sqs_in_different_region
2021-05-13 15:06:54 +01:00
aantillonl
e9dc5edf7f
Update SNS get_endpoint_attributes response for Not Found endpoints (#3637)
The response returned for sns.get_endpoint_attributes was not in
sync with the actual response from boto.

Co-authored-by: Antillon, Alejandro <alejandro.antillon@f-secure.com>
2021-01-31 12:29:10 +00:00
usmangani1
651998853b
Fix:SNS Create FIFO Topic (#3533)
* Fix:SNS Create FIFO Topic

* Added more tests

* change regular expression and added tests

* Handling NPE

Co-authored-by: usmanokc <usman@okcredit.in>
2021-01-26 15:04:52 +00:00
Anders Kaseorg
8befcb6a48
Leave the global responses configuration alone (#3529)
Instead of modifying responses._default_mock, create our own
responses.RequestsMock object that we can modify as needed without
interfering with other users of the responses library.

Fixes #3264.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2021-01-15 09:12:41 +00:00
Pavel
c9c30b8286
Enabled SNS endpoint attr must be lowercased (#3543)
As per sample response:
https://docs.aws.amazon.com/sns/latest/api/API_GetEndpointAttributes.html
2020-12-14 15:08:33 +00:00
Bert Blommers
273ca63d59 Linting 2020-11-11 15:55:37 +00:00
Matěj Cepl
5697ff87a8 Back to Black 2020-11-10 14:12:38 +01:00
Matěj Cepl
ea489bce6c Finish porting from nose to pytest. 2020-11-10 08:25:05 +01:00
Matěj Cepl
77dc60ea97 Port test suite from nose to pytest.
This just eliminates all errors on the tests collection. Elimination of
failures is left to the next commit.
2020-11-10 08:23:44 +01:00
usmangani1
19fc76f466
Fix: SNS Delete subscriptions on topic deletion (#3410)
* Fix:Delete subscriptions on delete topic

* Changed tests

Co-authored-by: usmankb <usman@krazybee.com>
2020-10-29 08:52:02 +00:00
Brian Pandola
28c1690fc2
Add Support for SNS Topic KmsMasterKeyId Attribute (#3389)
We do not do any validation of the `KmsMasterKeyId` attribute, and simply
store it as-as.  This mimics the behavior in AWS, where the key is not
validated until it is actually used (when publishing[1]).

[1]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html

Closes #3216
2020-10-16 12:30:07 +01:00
usmangani1
a65c0f004c
Fix:SQS Receive Message (MessageAttributes) in response (#3303)
* Fix:SQS Receive Message (MessageAttributes) in response

* Fixed tests

Co-authored-by: usmankb <usman@krazybee.com>
2020-10-05 10:10:24 +01:00
Karthikeyan Singaravelan
7054143701
Fix deprecation warnings due to invalid escape sequences. (#3273)
* Fix deprecation warnings due to invalid escape sequences.

* Fix linter error.
2020-09-10 09:20:26 +01:00
Daniel Okey-Okoro
c321ad46b0
fix: deleting non-existent topic shouldn't raise KeyError (#3285) 2020-09-10 08:32:41 +01:00
Kamil Mańkowski
8a551a9754
[SNS] Mock sending directly SMS (#3253)
* [SNS] Mock sending directly SMS

Proper behaviour when publishing to PhoneNumber is sending
message directly to this number, without any topic or
previous confirmation.

https://docs.aws.amazon.com/sns/latest/dg/sns-mobile-phone-number-as-subscriber.html

* Fix arguments order

* Omit checking local backend when tests in server mode
2020-08-25 13:05:49 +01:00
gruebel
23dfecc845 Fix missing MessageAttributes when using RawMessageDelivery 2020-03-21 19:25:25 +01:00
Asher Foa
d9d055c75d Fix more typos. 2020-01-23 10:15:02 -08:00