Commit Graph

3210 Commits

Author SHA1 Message Date
Steve Pulec
2ee484990d Catch RuntimeError on unpatching in case of multiple unpatching. 2018-04-06 09:26:47 -04:00
Steve Pulec
774de0d54d
Merge pull request #1553 from spulec/upgrade-responses
Unvendor responses, move back to upstream
2018-04-06 08:49:13 -04:00
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
Steve Pulec
daa6bfe84d Dont iterate over dictionary that we are modifying. 2018-04-04 14:56:57 -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
49cce220ac Updated readme. 2018-04-03 16:40:45 -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
7f0723a068 Added missing backend for server mode. 2018-04-03 12:57:21 -07:00
Barry Ruffner
ed495cdd9e More cleanup of identation and reordering / newlines for flake8 happiness. 2018-04-03 12:17:34 -07:00
Barry Ruffner
5df0f1befc Fixes for automated tests linting. 2018-04-03 12:08:53 -07:00
Barry Ruffner
433997629f Cleaned up unused method and import 2018-04-03 11:58:11 -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
Devin Bjelland
0a4d2037df fix bug with Kinesis ResourceInUse exception (#1544) 2018-03-29 16:42:53 -07:00
Steve Pulec
7737832bf3 Fix bug adding None TTL to route53 responses. 2018-03-29 10:08:39 -04:00
Barry Ruffner
f4f79b2a8e Added basic cognitoidentity (not working) 2018-03-28 12:40:42 -07:00
Giorgos-Christos Dimitriou
f18259d49e Change REPONSE to RESPONSE for consistency (#1538) 2018-03-26 12:26:24 -07:00
William Richard
f304c4e141
Adding myself as a contributor 2018-03-26 14:15:16 -04:00
William Richard
0ed388b4b8
If Properies isn't set, cloudformation will just use default values 2018-03-26 14:15:16 -04:00
Jack Danger
5fe575b6ed
bumping to version 1.3.1 (#1530)
* bumping to version 1.3.1

* Updating implementation coverage
2018-03-22 11:28:32 -07: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
acrewdson
fceeb5d55f Allow older Jinja2 dep for project compatability (#1474)
In commit 4157abe8de, the Jinja2
dep in setup.py was changed from being unpinned to requiring version
2.8 or newer. That change was made in response to this issue:

    https://github.com/spulec/moto/issues/728

which pointed out that the use of 'lstrip_blocks' needed to
be supported. Support for that option was added in Jinja 2.7,
so it seems like the best option here, unless 2.8 is truly
required by moto, would be to allow Jinja 2.7.3 and newer --
preventing dep resolution conflicts in Python projects that pin
Jinja2 2.7.3 but also need to use moto.
2018-03-21 09:05:12 -07:00
Andrew Jefferson
bf136584a9 Put projection after filter so that filters can act on fields that ar… (#1470)
* Put projection after filter so that filters can act on fields that are not projected

* fixing whitespace
2018-03-21 09:02:31 -07:00
Jack Danger
17f3758591
releasing version 1.3.0 (#1526)
* Adding CHANGELOG entry for 1.3.0

* bumping to version 1.3.0

* Updating implementation coverage
2018-03-21 09:01:22 -07:00
keirbadger
fecdf388c2 Add in filtering of EBS volumes on availability-zone (#1468) 2018-03-21 08:58:32 -07:00
Ash Berlin-Taylor
1b20f21a75 Escape EMR template fields to avoid invalid XML responses (#1467)
I had an EMR step that contained a `&` and this caused the ListStep call to fail.

I've added the `| escape` filter to handle it in this case and a few other cases that look like they could suffer the same fate.
2018-03-21 08:57:50 -07:00
ramox-
508b392697 Make putparameter behave more like the real endpoint does, respond with Version or ParameterAlreadyExists (#1464) 2018-03-21 08:56:57 -07:00
Graham Lyons
5d51329c34 Don't create volumes for AMIs (#1456)
* Delete the volume used during AMI creation

Creating an AMI doesn't actually result in the creation of an EBS
volume, although the associated snapshot does reference one. To that
end, delete the volume once we've used it.

* Add `owner_id` to `Snapshot`, verify AMI snapshots

The default AMIs which are created by moto have EBS volume mappings
but the snapshots associated with those don't have the correct
owners set.

This adds the owner to the snapshot model and passes it through from
the JSON data.
2018-03-21 08:55:58 -07:00
Toshiya Kawasaki
39e9379195 Fix cloudwatch logs' response error (#1426) 2018-03-21 08:55:03 -07:00
Iain Bullard
02ffce1a15 Tighten upper bound on python-dateutil to match botocore (#1519)
90d7692702
2018-03-21 08:50:14 -07:00
Iain Bullard
d3d9557d49 Implement basic SNS message filtering (#1521)
* 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.
2018-03-21 08:49:11 -07:00
Iain Bullard
6dce7dcb18 Improve SQS Compatibility with AWS (#1520)
* Return correct error code when fetching a queue that does not exist

* Improve SQS Queue get and set attributes

* Queue creation and set_attributes uses the same code path
    - ensure bool/int values are cast correctly
* RedrivePolicy is handled properly with set_attributes
    - _setup_dlq is called
    - is json decoded, so that returned RedrivePolicy is not json
      encoded twice
* As per AWS not all attributes are returned when they are not set, for
  example RedrivePolicy, FifoQueue, Policy, Kms*
* WaitTimeSeconds is not a queue attribute switch to
  ReceiveMessageWaitTimeSeconds
2018-03-21 08:48:08 -07:00
Steve Pulec
35d69759ef
Merge pull request #1509 from jimjshields/add-suspend-processes
Add suspend processes to AutoScaling service
2018-03-09 18:19:35 -05:00
Jim Shields
baedbfa8ca Fix test_suspend_processes
* Add `region_name` to the client to be consistent with other tests
* Add `VPCZoneIdentifier` to the ASG creation (AZ or VPC is required)
* Add myself as a contributor
2018-03-09 18:00:23 -05:00
Jim Shields
bfeea00774 Fix #1370: Implement suspend_processes in AutoScaling service 2018-03-09 16:55:30 -05:00