In e9dc5edf7f a custom error template
was added to correct the response returned by get_endpoint_attributes
for a non-existent endpoint.
However, after some more inspection, it was found that a valid
template already existed in moto/sns/responses.py.
This commit removes the template introduced in e9dc5ed and takes
into use the existing template.
It is a marginal improvement, but helps keeping a cleaner code
base
Co-authored-by: Antillon, Alejandro <alejandro.antillon@f-secure.com>
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>
* SNS create_topic should only accept valid characters
Closes#1328
* Fix flake8 errors
* Updated regex to match full TopicName constraints
Fixed test_server as it contained invalid TopicNames’ per constraints
* fix error message for invalid topic name