Commit Graph

1805 Commits

Author SHA1 Message Date
Jay O'Conor
3957a93a64 Moto requires boto >= 2.33.0
Moto imports a class in boto that did not exist before boto 2.33.0

Partial traceback showing ImportError with versions of boto < 2.33.0:
  File "/src/python/moto/moto/__init__.py", line 8, in <module>
    from .autoscaling import mock_autoscaling  # flake8: noqa
  File "/src/python/moto/moto/autoscaling/__init__.py", line 2, in <module>
    from .models import autoscaling_backends
  File "/src/python/moto/moto/autoscaling/models.py", line 5, in <module>
    from moto.elb import elb_backends
  File "/src/python/moto/moto/elb/__init__.py", line 2, in <module>
    from .models import elb_backends
  File "/src/python/moto/moto/elb/models.py", line 4, in <module>
    from boto.ec2.elb.attributes import (
ImportError: cannot import name ConnectionSettingAttribute
2016-03-18 10:50:40 -07:00
Ian Auld
8848995b93 Replaced dict comp with for loop for Python 2.6 compatibility 2016-03-16 22:15:58 -07:00
Ian Auld
cc1dee03f5 Reorganized tests 2016-03-16 21:32:54 -07:00
Ian Auld
e86b9f441c Added filter_kwargs to response to match boto interface 2016-03-16 21:32:15 -07:00
Ian Auld
d595c60ead Added support for query filtering" 2016-03-16 21:30:51 -07:00
Dmitry Zv
c52e9215b2 Fixed gen() doesn't have len() error. 2016-03-16 16:17:41 -06:00
Dmitry Zv
c2df7732e5 Added ScannedCount field to DynamoDB query response. 2016-03-16 15:53:29 -06:00
Lars Fronius
c94f49cc1e Only count user-assigned tags for TagLimitExceeded
According to
http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html
"Reserved prefix—aws:
AWS-assigned tag names and values are automatically assigned the aws:
prefix, which the user cannot assign. AWS-assigned tag names do not
count towards the tag limit of 10. User-assigned tag names have the
prefix user: in the Cost Allocation Report."
2016-03-15 16:50:57 +01:00
Lars Fronius
519b8e59aa Propagate stack-level tags to resources
According to
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html
"All stack-level tags, including automatically created tags, are
propagated to resources that AWS CloudFormation supports. Currently,
tags are not propagated to Amazon EBS volumes that are created from
block device mappings."
2016-03-15 15:36:02 +01:00
Ian Auld
56425c9479 Added tests for index comparisons 2016-03-14 09:39:03 -07:00
Steve Pulec
66032ad37c Merge pull request #560 from jstewmon/boto3-ses
update SES backend to support domain identities and multiple recipients
2016-03-10 08:57:29 -05:00
Steve Pulec
f797f17e5c Merge pull request #561 from andyjones/task/iam-instance-profile-roles
Add roles to the list instance profiles response
2016-03-10 08:55:25 -05:00
andy
71358603ac Add roles to the list instance profiles response 2016-03-10 09:27:52 +00:00
Jonathan Stewmon
fb06c6517e update SES backend to support domain identities and multiple recipients
includes test cases for ses client with boto3
2016-03-09 10:18:50 -06:00
Steve Pulec
af04bb2681 Merge pull request #559 from 2rs2ts/cf-route53-get-by-zone-id
Support HostedZoneId in RecordSet templates
2016-03-07 22:44:19 -05:00
Andrew Garrett
2c72a86778 Support HostedZoneId in RecordSet templates
Signed-off-by: Jesse Szwedko <jesse.szwedko@getbraintree.com>
2016-03-07 19:25:25 +00:00
Steve Pulec
ad2dca607f Merge pull request #557 from 2rs2ts/cf-delete-record-sets
Allow cloudformation to delete Route 53 RecordSets
2016-03-05 18:11:13 -05:00
Steve Pulec
819a8c2563 add apigateway to readme. 2016-03-05 18:09:09 -05:00
Steve Pulec
aebc7c8ea3 Merge pull request #558 from spulec/apigateway
Apigateway
2016-03-05 18:07:20 -05:00
Steve Pulec
88f64deff9 fix py3 2016-03-05 18:01:57 -05:00
Steve Pulec
ba70d8fe8d implement http integration. 2016-03-05 10:54:19 -05:00
Steve Pulec
95f9b3fb35 add integration responses. 2016-03-05 09:48:37 -05:00
Steve Pulec
e3ff8dc510 Add deployments 2016-03-04 18:35:03 -05:00
Steve Pulec
bd57233b10 add integrations. 2016-03-04 18:02:07 -05:00
Andrew Garrett
7779678e2c Allow cloudformation to delete Route 53 RecordSets
While there isn't an API method exposed for directly deleting a Route 53
RecordSet (it's performed via POST that acts more like a PATCH than
anything
else)[http://docs.aws.amazon.com/Route53/latest/APIReference/API_ChangeResourceRecordSets.html],
CloudFormation can have templates which contain RecordSets which refer
to zones that don't exist inside the template. Ergo, we need a way to
effect a delete upon these RecordSets when we don't have a direct
reference to the zone.

This exposes a delete method that isn't hooked up to any response (and
rightfully so), it just enables the ~polymorphic deletion behavior that
we've written into the CloudFormation implementation.

Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-03-03 17:53:05 +00:00
Steve Pulec
b5d5c02d75 0.4.23 2016-03-02 15:40:21 -05:00
Steve Pulec
630c668651 Merge pull request #556 from spulec/fixboto
Fixboto
2016-03-02 15:39:49 -05:00
Steve Pulec
6b0f92c230 unpin dev requirements. 2016-03-02 15:20:58 -05:00
Steve Pulec
75a40e4571 Wrap botocore patching in tyr/except since we do not require it to be installed. 2016-03-02 15:20:35 -05:00
Steve Pulec
aaaddf13e8 add integraiton test. 2016-03-02 15:18:11 -05:00
Steve Pulec
d8a277ed55 Merge pull request #555 from yannlambret/fix-describe-route-tables-response
Fix a typo in DESCRIBE_ROUTE_TABLES_RESPONSE
2016-03-02 15:10:33 -05:00
Steve Pulec
8f80d0ecaa Merge pull request #554 from bcavagnolo/master
add dynamodb pagination
2016-03-02 15:10:12 -05:00
Steve Pulec
9c3b0fb5cf Merge pull request #553 from spulec/feature/nat-gateway
Implement NAT Gateways
2016-03-02 15:09:20 -05:00
Yann Lambret
a06fa082a4 Add two tests for both boto and boto3 as the problem only affects boto3 client 2016-03-02 12:15:47 +01:00
Steve Pulec
a737fbed48 create methods 2016-03-01 18:50:06 -05:00
Yann Lambret
3afd4e0ea9 Correct a typo in DESCRIBE_ROUTE_TABLES_RESPONSE string (duplicate tagSet) that causes buggy responses 2016-03-02 00:34:45 +01:00
Brian Cavagnolo
6bab725b36 add dynamodb pagination 2016-03-01 15:00:23 -08:00
Hugo Lopes Tavares
6222f335f3 Refactor NatGateways methods to use _get_param() 2016-03-01 13:57:41 -05:00
Steve Pulec
45f92fb4c7 base rest api endpoints. 2016-03-01 12:03:59 -05:00
Hugo Lopes Tavares
c689816337 Add CloudFormation support to NatGateway model 2016-03-01 12:02:57 -05:00
Hugo Lopes Tavares
21fb961c6a Implement NAT Gateway resource 2016-03-01 12:02:57 -05:00
Steve Pulec
9b0be24b28 Merge pull request #550 from 2rs2ts/boto3-cloudformation
Add XML support for cloudformation commands that lacked it
2016-03-01 11:36:23 -05:00
Steve Pulec
2e27e9edfb remove apigateway 2016-02-29 17:11:32 -05:00
Steve Pulec
ca6ec4478d try out unpinning boto. 2016-02-29 17:09:54 -05:00
Andrew Garrett
39d9fbcd02 Added resource deletion upon stack deletion
Only implemented for ASGs and LCs since they're all we cared about for
our particular problem. It should be easy to follow this pattern for
other resource types, though.

Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-02-29 19:50:29 +00:00
Andrew Garrett
993087f2bb Fix AutoScalingGroup tags in DescribeAutoScalingGroups
I'm not certain that this is the approach that's desired. It'd be nice
to dynamically convert the keys one way or the other. Looking for
feedback.

Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-02-29 19:50:28 +00:00
Andrew Garrett
99af8bdb79 Convert VPCZoneIdentifier list in template resource to csv
Although the boto docs say to use a csv, CloudFormation templates use a
list instead:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#aws-properties-as-group-prop

Without this change, templates specifying VPCZoneIdentifier will break
as the identifier will be the repr of the list.

Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-02-29 19:50:27 +00:00
Andrew Garrett
da98052b18 Add support for DescribeStackResource
Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-02-29 19:50:25 +00:00
Andrew Garrett
ec10699c38 Add XML support for cloudformation commands that lacked it
This lets boto3's cloudformation API work with moto.

fixes #444

Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-02-29 19:50:23 +00:00
Andrew Garrett
06b173abe4 Pin boto3 and botocore
botocore 1.3.29 (new as of yesterday) breaks a few of the s3 and
lambda tests; something about a StringIO being closed prematurely.

¯\_(ツ)_/¯

boto3 doesn't pin the botocore version; as a result the new version of
botocore gets pulled in transitively, breaking today's builds.

Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-02-29 19:50:14 +00:00