Commit Graph

1491 Commits

Author SHA1 Message Date
Stephan Huber
4b4ce5acde Added create_job and describe_job to aws iot mock 2018-05-09 09:22:12 +02:00
Stephan Huber
ecbaf76413 Fixes #1624 2018-05-09 09:20:48 +02:00
Alex Casalboni
cb364eedc6 Implement SSM Parameter Store filters support (GetParametersByPath API) (#1604)
* added tests for SSM Parameter Store filters (GetParametersByPath - ParameterStringFilter)

* implemented SSM Parameter Store filters support (only for get_parameters_by_path API)

* adding myself to authors file
2018-04-30 11:02:46 -07:00
wblackconv
ba2ea8e1b3 Add tests for message attribute validation in SNS (#1582)
* 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.
2018-04-27 15:10:30 -07:00
Iain Bullard
fad4394474 SQS add missing validation to ReceiveMessage (#1595)
* SQS receive_message - enforce bounds on MaxNumberOfMessages as AWS does

* SQS receive_message - enforce bounds on WaitTimeSeconds as AWS does
2018-04-24 09:51:49 -07:00
Tom Elliff
21a264c337 Default TimeoutSeconds to 1 hour (#1592)
TimeoutSeconds isn't a required field so we can't rely on it being there.
Quick tests against the AWS API show that when it's not specified the ExpiresAfter field seems to be 1 hour after the request.
2018-04-23 11:41:54 -07:00
Darien Hager
6332ed9df9 Add test that certain FIFO-queue attributes flow through from sender to receiver 2018-04-19 00:16:03 -07:00
Steve Pulec
8fa4c64c15
Merge pull request #1473 from Logicworks/feature/ebs-copy-snapshot
Add support for copying EBS snapshots
2018-04-18 22:51:54 -04:00
Steve Pulec
311966e28d Add IAMDatabaseAuthenticationEnabled and DbiResourceId to RDS response. Closes #1465. 2018-04-18 22:47:02 -04:00
Steve Pulec
f37bae5b57
Merge pull request #1574 from wblackconv/add-msg-attributes
Include SNS message attributes with message body when delivering to SQS.
2018-04-18 21:19:21 -04:00
wblack
0b36f06df1 Fixes for linter warnings 2018-04-18 13:42:36 +00:00
wblack
f401c60825 Include SNS message attributes with message body when delivering to SQS. 2018-04-18 13:42:36 +00:00
Akito Nozaki
ba3c9db8a7 Fixing create_key_and_certificate boolean parameter (#1572) 2018-04-17 11:32:39 -07:00
Phil Christensen
ae2650ffc7 copy snapshot unit test 2018-04-15 17:08:54 -04:00
Steve Pulec
783504c897 We shouldnt throw a ValidationException on empty dynamodb key. Closes #1505. 2018-04-14 11:16:43 -04:00
Steve Pulec
f38378d7ec Revert "Add back ACM tests."
This reverts commit d11ecdddde.
2018-04-13 10:37:06 -04:00
Steve Pulec
d11ecdddde Add back ACM tests. 2018-04-13 10:16:13 -04:00
Steve Pulec
5f840aadcc
Merge pull request #1545 from haidaraM/fixApiKeyIdentification
Fix ApiGateway key identification
2018-04-12 18:58:47 -04:00
Steve Pulec
963e28ecca
Merge pull request #1548 from brcoding/master
Created Cognito-Identity with partial coverage and unit tests
2018-04-12 18:55:13 -04:00
Steve Pulec
080e3c5f5d
Merge pull request #1537 from william-richard/cloudformation-ecs-cluster-name-optional
If Properies isn't set, cloudformation will just use default values
2018-04-12 18:52:16 -04:00
Steve Pulec
1083b5bda1
Merge pull request #1549 from secretescapes/master
Fix AttributeError in filter_log_events
2018-04-12 18:49:54 -04:00
Steve Pulec
ad9f5c2ae6
Merge pull request #1550 from tomelliff/tag-snapshot-on-creation
Allow tagging snapshots on creation
2018-04-12 18:49:15 -04:00
Steve Pulec
97708fdbed
Merge pull request #1551 from william-richard/add-physical-resource-id-to-ecs-task-definition
Add physical_resource_id to ECS task definition
2018-04-12 18:48:43 -04:00
Steve Pulec
9398f03cdc
Merge pull request #1559 from sawandas/master
Issue #1539 : support more dynamoDb query filters
2018-04-12 18:45:58 -04:00
William Richard
1f46543ae2
ECS CPU, memory hard limits and host ports are all optional.
http://boto3.readthedocs.io/en/latest/reference/services/ecs.html#ECS.Client.register_task_definition
2018-04-11 17:20:58 -04:00
sawandas
861c47a552
Update test cases for dynamodb contains filter 2018-04-09 13:42:50 +05:30
Steve Pulec
cd1c6d3e6c Unvendor responses, move back to upstream. 2018-04-05 16:57:43 -04:00
William Richard
4636a2afc3
Add physical_resource_id to ECS task definition 2018-04-04 15:15:22 -04:00
Tom Elliff
e2af8bc836 Allow tagging snapshots on creation
Largely copying what was done for volume creation in https://github.com/spulec/moto/pull/1432
2018-04-04 17:46:51 +01:00
Josh Prendergast
ca72707409 Fix AttributeError in filter_log_events
An AttributeError would be thrown if the `interleaved` parameter was
passed.
2018-04-04 17:24:41 +01:00
Barry
f5f64be45b Added comment 2018-04-04 00:28:39 -07:00
Barry Ruffner
b86b464210 fix for an expiration test. 2018-04-03 17:22:21 -07:00
Barry Ruffner
383b0c1c36 Made some corrections to the developer identity response and added checks to add coverage. 2018-04-03 17:05:36 -07:00
Barry Ruffner
229d453b99 Made some changes for server testing and added another get_id test. 2018-04-03 16:27:30 -07:00
Barry Ruffner
2455de8282 Added a print. 2018-04-03 14:08:20 -07:00
Barry Ruffner
1046ee5041 Added object to parsing and test server test for cognito. 2018-04-03 13:38:24 -07:00
Barry Ruffner
83f4419d03 Added create_identity_pool and cleaned up test data. 2018-04-03 11:38:59 -07:00
Mike Grima
4184acc0d2 Added Filtering support for S3 lifecycle (#1535)
* Added Filtering support for S3 lifecycle

Also added `ExpiredObjectDeleteMarker`.

closes #1533
closes #1479

* Result set no longer contains "Prefix" if "Filter" is set.
2018-04-02 14:19:14 -07:00
Mohamed El Mouctar HAIDARA
dcd290c3c3 Fix ApiGateway key identification
API Gateway keys are identified by their ids and not their values

- https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-api-key.html#examples
- http://boto3.readthedocs.io/en/latest/reference/services/apigateway.html#APIGateway.Client.get_api_key
2018-03-30 15:09:02 +02:00
Barry Ruffner
f4f79b2a8e Added basic cognitoidentity (not working) 2018-03-28 12:40:42 -07:00
William Richard
0ed388b4b8
If Properies isn't set, cloudformation will just use default values 2018-03-26 14:15:16 -04:00
Alexander Mohr
941d817da4 fix lambda endpoint parsing (#1395)
* fix endpoint parsing

* add new unittest

* finish test
2018-03-21 22:14:10 -07:00
Kevin Ford
2faffc96de Use 'data' attribute of Flask Request object. (#1117)
* Flask Request object does not have a 'body' attribute, changed to 'data'

* Making moto 'glaciar' more aws 'glaciar' like.

* Making moto 'glacier' more aws 'glacier' like.

* Fixing Travis errors?

* OK, check if  object has proper attribute because HTTPrettyRequest has no data attribute and Python Requests has no body attribute.

* Output to match test expectation; sleep for 60 seconds to mimic actual wait time.

* Amending test_describe_job to reflect changes.

* Shorten time from 1 minute to seconds.

* Shorten sleep time in test.  Forgot about the test.
2018-03-21 22:13:09 -07:00
Colin Jones
1a8a4a084d S3 Ignore Subdomain for Bucketname Flag (#1419)
* Some circumstances need subdomains to be ignored rather that interpreted as bucketname, this patch allows such behaviour to be configured

* Adding helper case whereby localstack features as path based exception

* Remove whitespace :(
2018-03-21 09:33:09 -07:00
Ben Jones
c13f77173f add UsePreviousValue support for parameters when updating a CloudFormation stack (#1504) 2018-03-21 09:13:05 -07:00
Javier Buzzi
d55ff20685 Basic support for AWS Gateway apikeys (#1494)
* Basic support for AWS Gateway apikeys

* Adds missing -- much needed tests

* Fixes issue with master merge

* Fixes linter

* Fixes tests
2018-03-21 09:11:49 -07:00
Mike Grima
cc14114afe Implemented S3 get/put_notification_configuration (#1516)
closes #973
2018-03-21 09:11:24 -07:00
Rob Walker
4b3469292a Enable Extended CIDR Associations on VPC (#1511)
* Enable Extended CIDR Associations on VPC

* Ooops missed the utils, try to be more flakey?, remove unnecessary part in tests

* try to be even more flakey
2018-03-21 09:10:38 -07:00
Loukas Leontopoulos
b7ae704ad2 Add opsworks app mocks (#1481)
* Add implementation for OpsWorks create_app and describe_apps

* Fix the name of the test

* Add some more exception tests
2018-03-21 09:05:57 -07:00
keirbadger
fecdf388c2 Add in filtering of EBS volumes on availability-zone (#1468) 2018-03-21 08:58:32 -07:00