* Add tests for message attribute validation in SNS
Fixes up bug in return value of
moto.sns.responses.SNSResponse._parse_message_attributes due to
accidental recycling of a variable.
* Fix test_sns.test_publish_to_http in py36 env
Http response is encoded as a byte string which json.loads can't handle.
* Add support for FilterPolicy to sns subscription set_filter_attributes
* Add basic support for sns message filtering
This adds support for exact string value matching along with AND/OR
logic as described here:
https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html
It does not provide support for:
- Anything-but string matching
- Prefix string matching
- Numeric Value Matching
The above filter policies (if configured) will not match messages.
* 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
The `Enabled` Attribute in the PlatformEndpoint of SNS current returns a boolean, however, the 'enabled' property is expecting a string as `.lower()` is called on the result.
This change simply changes the default from `True` to `'True'` so the property works as expected.
* updates
- support lambda messages from SNS
- run lambda in docker container
* decode output
* populate timeout
* simplify
* whoops
* skeletons of cloudwatchlogs
* impl filter log streams
* fix logging
* PEP fixes
* PEP fixes
* fix reset
* fix reset
* add new endpoint
* fix region name
* add docker
* try to fix tests
* try to fix travis issue with boto
* fix escaping in urls
* fix environment variables
* fix PEP
* more pep
* switch back to precise
* another fix attempt
* fix typo
* fix lambda invoke
* fix more unittests
* work on getting this to work in new scheme
* fix py2
* fix error
* fix tests when running in server mode
* more lambda fixes
* try running with latest docker
adapted from aiodocker
* switch to docker python client
* pep fixes
* switch to docker volume
* fix unittest
* fix invoke from sns
* fix zip2tar
* add hack impl for get_function with zip
* try fix
* fix for py < 3.6
* add volume refcount
* try to fix travis
* docker test
* fix yaml
* try fix
* update endpoints
* fix
* another attempt
* try again
* fix recursive import
* refactor fix
* revert changes with better fix
* more reverts
* wait for service to come up
* add back detached mode
* sleep and add another exception type
* put this back for logging
* put back with note
* whoops :)
* docker in docker!
* fix invalid url
* hopefully last fix!
* fix lambda regions
* fix protocol
* travis!!!!
* just run lambda test for now
* use one print
* fix escaping
* another attempt
* yet another
* re-enable all tests
* fixes
* fix for py2
* revert change
* fix for py2.7
* fix output ordering
* remove this given there's a new unittest that covers it
* changes based on review
- add skeleton logs test file
- switch to docker image that matches test env
- fix mock_logs import
* add readme entry
* envelop message when sendig from sns to sqs
* add test for publishing sns message to sqs
* specify separators options to json.dumps to avoid json bug in python2
* remove unused print
* replace time string for testing server mode
* 'master' of https://github.com/spulec/moto: (25 commits)
Add @zkourouma to authors.
0.4.2
Fix bug where listener certificate was not being saved correctly when creating an elb. Added test to cover that case.
[dynamodb2] adds lookup method to Table class
Add IAM list_groups and list_groups_for_user. Closes#343.
Fix for deleting Route53 record sets with set identifiers. Closes#342.
Use dummy date instead of an invalid date
Adding support for comments on hosted zones.
Add availability zone support to Subnets created via CloudFormation
Make availability zone dynamic in Subnet Response templates
Add filter "availabilityZone" to DescribeSubnets and add availability zone support too
allow starting without reseting
Fix bug with empty string for instance vpc_id. Closes#337.
Fix default security group description.
Update responses.py
Add @mrucci to authors.
Fix merge conflicts.
Add support for ELB attributes.
cast to int when doing math.
General cleanup.
...
* 'master' of https://github.com/silveregg/moto: (22 commits)
filtering the items is needed because of defaultdict is not threadsafe and returns an empty dict which results in an exception here
add tests for list_endpoints_by_platform_application
add mock for list_endpoints_by_platform_application method
[S3]Only add multipart part_id to partlist if it is not already in there. Closes#324.
Fix etag for reduced min part size.
Add test_multipart_duplicate_upload
Fix reduced_min_part_size so that tests run
Fix authors
Add @mikegrima to authors
Fixed how parameters are passed in following clarification on GitHub comments.
Added in test for the boto IAM method: list_instance_profiles_for_role()
Change SecurityGroupBackend.{authorize,revoke}_security_group_ingress() methods to receive group name or id, never both
Add support to AWS::EC2::SecurityGroupIngress creation
Add @aaltepet to authors.
Add publish command.
Add support to tag filtering to Security Groups
slight change in formatting
fix test for ec2 instance type filter
Update minimum support boto version.
support 'instance_type' filter
...
Add a dummy NextToken to sns.list_platform_applications. Ideally the library would actually paginate, but this should be an alright change in the mean time.