Commit Graph

2984 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
Steve Pulec
daa6bfe84d Dont iterate over dictionary that we are modifying. 2018-04-04 14:56:57 -04: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
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
Giorgos-Christos Dimitriou
f18259d49e Change REPONSE to RESPONSE for consistency (#1538) 2018-03-26 12:26:24 -07: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
Steve Pulec
4997694fd6
Merge pull request #1488 from andharris/iam-roles
add iam roles to redshift
2018-03-07 09:28:26 -05:00
Steve Pulec
ee35396173 Cleanup param parsing. 2018-03-07 09:24:18 -05:00
andrew
e2e1c7347b default to None 2018-03-07 08:38:07 -05:00
Steve Pulec
0361d5ddbf
Merge pull request #1486 from evanstachowiak/master
Fix MaxRecords compare issue
2018-03-07 07:47:13 -05:00
Steve Pulec
2e379853e4
Merge pull request #1476 from cliveli/master
Use the TemplateBody by default it exist
2018-03-07 07:40:28 -05:00
Steve Pulec
d37c355bd3
Merge pull request #1484 from derwolfe/ssm-send-command
Add support for SSM send_command
2018-03-07 07:37:44 -05:00
Steve Pulec
9ad1e40cf5
Merge pull request #1498 from dgolombek/wip/fix_page_size_handling
Fix handling of PageSize for ELB/ELBv2
2018-03-07 07:24:36 -05:00
Steve Pulec
b3468b9ebf
Merge pull request #1480 from lleontop/opsworks_increase_coverage
Add more exception tests for opsworks
2018-03-07 07:09:47 -05:00
Steve Pulec
0414cc51c1
Merge pull request #1499 from srikiraju/fix/s3-list-deleted
S3: Do not attempt to return deleted files in bucket listing
2018-03-07 07:08:07 -05:00
Steve Pulec
1a299ffbfc
Merge pull request #1364 from terrycain/bug_1358
Adds if_not_exists function to DynamoDB Update Expression
2018-03-06 22:46:11 -05:00
Steve Pulec
6668a6e17f
Merge pull request #1381 from koxudaxi/fix_MaxRecords_on_describe_db_instances
cast MaxRecords to int on  describe_db_instances
2018-03-06 22:45:28 -05:00
Steve Pulec
9e0b8da6cb
Merge pull request #1413 from captainkerk/autoscaling-subnet-or-az-is-required
AWS API raises an exception if both AZ and VPCZoneIdentifier params a…
2018-03-06 22:42:49 -05:00
Steve Pulec
47ec9bcdc8
Merge pull request #1418 from stillwaiting/sns-do-not-duplicate-subscriptions
SNS: do not duplicate subscriptions
2018-03-06 22:40:22 -05:00
Steve Pulec
1dd21d6cd6
Merge pull request #1442 from JackDanger/jack/importing-sure-in-tests-that-require-it
importing sure in tests that require it
2018-03-06 22:38:10 -05:00
Steve Pulec
de6ded5aab
Merge pull request #1422 from godfried/fix-cloudwatch-value
Change name of 'state' attribute of 'FakeAlarm' CloudWatch model to '…
2018-03-06 22:36:50 -05:00
Steve Pulec
4b21beb754
Merge pull request #1428 from toshitanian/logs-exceptions
Add logs exceptions
2018-03-06 22:32:03 -05:00
Steve Pulec
7fa14c81f4
Merge pull request #1425 from whummer/feat/cf-fn-GetAZs
Implement Fn::GetAZs function in CloudFormation
2018-03-06 22:28:31 -05:00
Steve Pulec
f31cf795b3
Merge pull request #1429 from toshitanian/fix-iot-exception-definition
Fix iot exception definition
2018-03-06 22:27:03 -05:00
Steve Pulec
ece7507eec
Merge pull request #1430 from OwnZones/urldecode_fix
Url decode x-amz-copy-source for S3 copyObject requests
2018-03-06 22:26:15 -05:00