Commit Graph

3723 Commits

Author SHA1 Message Date
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
Steve Pulec
8b3743fa9c
Merge pull request #1439 from anderson-dan-w/redrive-policy
Redrive policy
2018-03-06 22:22:49 -05:00
Steve Pulec
16dd20e443
Merge pull request #1447 from dbfr3qs/master
add elasticloadbalancer:loadbalancer to resourcegroupstaggingapi
2018-03-06 22:20:19 -05:00
Steve Pulec
924c99bcea
Merge pull request #1448 from grahamlyons/fix-ebs-tagging
Change `'image'` for `'volume'` when getting tags
2018-03-06 22:16:59 -05:00
Steve Pulec
dc03125c1a
Merge pull request #1449 from RasmusWernerLarsen/CidrIpv6
Add support for CidrIpv6 in Cloudformation Security Ingress rules.
2018-03-06 22:15:45 -05:00
Steve Pulec
df56654e7c
Merge pull request #1452 from captainkerk/redshift-copy-grants
Redshift: Add Copy Grant Functionality
2018-03-06 22:11:42 -05:00
Steve Pulec
8a0cf49b7d
Merge branch 'master' into redshift-copy-grants 2018-03-06 22:11:34 -05:00
Steve Pulec
ddba69982e
Merge pull request #1451 from captainkerk/redshift-add-cross-region-snapshots
Redshift: Add Cross Region Snapshot Functionality
2018-03-06 22:10:29 -05:00
Steve Pulec
6826b82cfb
Merge pull request #1455 from grahamlyons/snapshot-search-bug
Snapshot search bug
2018-03-06 22:06:33 -05:00
Steve Pulec
89d223b0df
Merge pull request #1457 from raymondhardynike/master
fixes apigateway timestamp to match aws
2018-03-06 22:00:00 -05:00
Steve Pulec
326698f3fa
Merge pull request #1460 from okomestudio/s3-region-from-url
Support both virtual-hosted and path-style URLs for region name parsing
2018-03-06 21:57:57 -05:00
Steve Pulec
2134600e29
Merge pull request #1459 from okomestudio/fix-404-response-on-s3-head
Fix the S3 HEAD response body
2018-03-06 21:56:50 -05:00
Steve Pulec
39de04c18c
Merge pull request #1501 from dgolombek/wip/create_listener_bug
ELBv2.create_listener links TargetGroup to LB
2018-03-06 21:49:03 -05:00
Steve Pulec
31eac49e15 Lock down version of aws-xray-sdk
See https://travis-ci.org/spulec/moto/jobs/350056229
2018-03-06 17:49:02 -05:00
Steve Pulec
2a4f306bef
Merge pull request #1482 from lleontop/fix_lambda_backend
Change lambda backend to support docker-py dependency changes
2018-03-06 17:33:36 -05:00
Dave Golombek
9a8b36debc ELBv2.create_listener links TargetGroup to LB
In order to search target_groups by LB, we need this link in place.

Resolves #1500
2018-03-06 16:57:56 -05:00
Steve Pulec
63be8a6c38 Fix test coverage report. 2018-03-06 08:06:12 -05:00
Srikanth Raju
4f05aa725c S3: Do not attempt to return deleted files in bucket listing 2018-03-06 01:55:14 -08:00
Dave Golombek
73a1c03580 Fix handling of PageSize for ELB/ELBv2
Resolves #1497
2018-03-05 16:52:56 -05:00