Commit Graph

4115 Commits

Author SHA1 Message Date
Andrii Piasetskyi
d414ecd211 More consistent **kwargs 2017-04-21 21:29:40 +03:00
Andrii Piasetskyi
e749858041 Added DataPipeline Tags. Implemented delete_pipeline. Added tests for delete_pipeline 2017-04-21 21:24:52 +03:00
Michael van Tellingen
783a1d73b4 Implement support for SSM parameter store
This commit adds initial support for the Simple System Manager client.

It currently only mocks the following api endpoints:
 - delete_parameter()
 - put_parameter()
 - get_parameters()
2017-04-18 19:09:10 +02:00
Steve Pulec
df84675ae6 Merge pull request #897 from gjtempleton/TaskDraining
ContainerInstance deregistration
2017-04-15 23:47:47 -04:00
Steve Pulec
e9bf74d8e3 Merge pull request #904 from ambrusadrianz/master
Fixed S3 copyObject compatibility with the Java AWS SDK
2017-04-15 23:46:21 -04:00
Steve Pulec
a83a235637 Merge pull request #903 from mvantellingen/ecs-deployments
Add deployments to the ecs services (describe_services)
2017-04-15 23:46:02 -04:00
Steve Pulec
cc123dafb9 Merge pull request #902 from mvantellingen/ecs-revision
Return the revision in ecs.register_task_definition
2017-04-15 23:45:42 -04:00
GuyTempleton
47bc23f481
Move agent_connected assignation 2017-04-15 16:31:19 +01:00
Ambrus Adrian
121a68be49 Fixed compatibility issue with the Java AWS SDK
Issue is described here: https://github.com/spulec/moto/issues/900
2017-04-15 01:06:28 +03:00
Michael van Tellingen
0ae6e404d0 Add deployments to the ecs services (describe_services) 2017-04-14 18:40:47 +02:00
Michael van Tellingen
18ed73292c Return the revision in ecs.register_task_definition
This matches boto, see
http://boto3.readthedocs.io/en/latest/reference/services/ecs.html#ECS.Client.register_task_definition
2017-04-14 18:16:24 +02:00
Dmytro Milinevskyy
6e61ee4caa s3: handle WebsiteRedirectLocation
spulec/moto#821
2017-04-14 13:32:52 +02:00
Steve Pulec
34c711189f Cleanup IAM user create format. Closes #898. 2017-04-13 21:39:07 -04:00
Steve Pulec
d35e143a20 Merge pull request #899 from smarlowucf/master
Add list user policies endpoint to iam backend.
2017-04-13 21:18:43 -04:00
Sean Marlow
9a2f2fcd4b
Add list user policies endpoint to iam backend.
- Add response and endpoint methods.
- Add test covering put, get, delete and list user policy.
2017-04-13 15:09:23 -06:00
GuyTempleton
69b86b2c7a
Fix indentation of ContainerInstance response object 2017-04-13 18:41:29 +01:00
GuyTempleton
f3aff0f356
Switch ContainerInstance model to snake case 2017-04-13 17:53:23 +01:00
GuyTempleton
acb6c3ce01
Implement container instance deregistration 2017-04-13 17:46:15 +01:00
GuyTempleton
71e8f6ef5b
First cut of container instance deregistration 2017-04-13 08:54:25 +01:00
Steve Pulec
30b1de507c Make ELB created_time dynamic. Closes #887. 2017-04-12 22:25:07 -04:00
Steve Pulec
b62015b27d Add Iam User CreateDate. Closes #886. 2017-04-12 22:19:48 -04:00
Steve Pulec
bf935c210b Fix cloudwatch events delete_rule. Closes #884. 2017-04-12 22:15:23 -04:00
Steve Pulec
23f6f941b1 Merge pull request #895 from gjtempleton/ECSContainerResources
Container Instance Resource implementation
2017-04-12 20:53:06 -04:00
Steve Pulec
a664af465a Merge pull request #892 from whummer/fix/local-domain-names
Fix domain handling for local domain names in S3 API
2017-04-12 20:42:15 -04:00
Steve Pulec
03c4d9fe20 Fix standalone server headers not having HTTP_AUTHORIZATION. Closes #874. 2017-04-12 20:40:55 -04:00
Steve Pulec
11edde2eaa Merge pull request #891 from whummer/fix/sqs-wait-time-seconds
Fix SQS message polling to abort after wait_seconds_timeout
2017-04-12 20:27:54 -04:00
Steve Pulec
42f6487c88 Merge pull request #881 from smarlowucf/master
Add mfa device endpoints to iam backend.
2017-04-12 20:23:49 -04:00
GuyTempleton
880f3fb950
Container Instance Resource implementation 2017-04-12 13:30:32 +01:00
Waldemar Hummer
b8a41c5605 fix domain handling for local domain names in S3 API 2017-04-08 15:28:51 +10:00
Waldemar Hummer
a5727bf64a fix SQS message polling to abort after wait_seconds_timeout 2017-04-06 21:40:03 +10:00
Sean Marlow
8b9d685f1c
Add mfa device endpoints to iam backend.
- Add mfa device class
- Add mfa devices dictionary to user class
- Add responses, endpoints and tests
2017-03-27 13:13:40 -06:00
Valentín Gutiérrez
6e209bb14c Implement availability-zone filter for DescribeNetworkInterfaces 2017-03-22 14:36:20 +01:00
Steve Pulec
bba197e29f Make IAM ARNs more dynamic. Closes #663. 2017-03-19 11:58:24 -04:00
Steve Pulec
2d05f8a79a Add functionality for iam get-user with current user. Closes #480. 2017-03-19 11:09:30 -04:00
Steve Pulec
a0a205328d Cleanup SQS body encoding. Closes #458, #460. 2017-03-19 11:03:55 -04:00
Andrew Garrett
6f4cb512ac Allow CloudFormation stack tags to be updated
Limitations:

* does not update the tags of the resources in the stack. that can be
implemented later.
* does not support the supposed feature of clearing tags by passing an
empty value that boto3 mentions in its documentation. I could not find
anything in the request body to indicate when an empty value was passed.
2017-03-17 23:57:57 +00:00
Steve Pulec
a6e762340d Merge pull request #867 from 2rs2ts/flexible-route53-hostedzoneid-lookup
Be flexible with Route53 Hosted Zone IDs with /hostedzone/ prefix
2017-03-16 22:55:13 -04:00
Andrew Garrett
f2b7ba03b4 Forgot that lstrip works on character sets, not substrings
I suppose this is one way to do it. I could have also split and taken
the last element. Not sure which is best. 🤔
2017-03-17 02:45:58 +00:00
Steve Pulec
c207963a86 Cleanup SNS exceptions. Closes #751. 2017-03-16 22:28:30 -04:00
Steve Pulec
e7a3f3408e Add Lambda header for invoking error. Closes #770. 2017-03-16 22:00:57 -04:00
Steve Pulec
e3bff8b926 Fix cloudformation NoValue parsing to not add attribute. Closes #870 2017-03-16 21:20:01 -04:00
michael_lerch
83084bf2af Prevent 100% cpu usage while SQS long polling on an empty queue
While using moto server with a test SQS client, I noticed significant CPU usage while the client was long polling. I narrowed this down to the `receive_messages` call of the SQS service sitting in a `while True:` statement with no work to be done, thus looping forever.

To produce this issue, I do:
```
$ python3 -m venv venv
$ . ./venv/bin/activate
(venv) $ pip install moto moto[server] boto3
Collecting moto
  Downloading moto-0.4.31-py2.py3-none-any.whl (303kB)
  --snip--
(venv) $ moto_server sqs &
[1] 31727
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
(venv) $ python3
Python 3.6.0 (default, Dec 24 2016, 08:01:42)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import boto3
>>> client = boto3.client('sqs', region_name='us-east-1', endpoint_url='http://127.0.0.1:5000');
>>> client.create_queue(QueueName='testing')
127.0.0.1 - - [16/Mar/2017 13:34:20] "POST / HTTP/1.1" 200 -
{'QueueUrl': 'http://sqs.us-east-1.amazonaws.com/123456789012/testing', 'ResponseMetadata': {'RequestId': '7a62c49f-347e-4fc4-9331-6e8e7a96aa73', 'HTTPStatusCode': 200, 'HTTPHeaders': {'content-type': 'text/html; charset=utf-8', 'content-length': '343', 'server': 'Werkzeug/0.12.1 Python/3.6.0', 'date': 'Thu, 16 Mar 2017 20:34:20 GMT'}, 'RetryAttempts': 0}}
>>> client.receive_message(QueueUrl='http://sqs.us-east-1.amazonaws.com/123456789012/testing', MaxNumberOfMessages=10, WaitTimeSeconds=10)
```

At this point the moto server will run at 100% cpu for 10 seconds until the request times out waiting for a message. If multiple clients are continuously reconnected (as in mocking a normal sqs worker setup) the server will sit at 100% cpu indefinitely.

This pull request adds a simple sleep statement to the SQS `receive_messages` call when there are no messages to process. In doing so, the loop will be limited to executing once per 0.001 seconds when the queue is empty. The CPU usage is nearly 0% after this change.
2017-03-16 13:43:45 -07:00
Steve Pulec
a5da348fba Fix lint. 2017-03-15 23:43:48 -04:00
Steve Pulec
25e2af0320 Fix camelcase_to_underscore. Closes #767. 2017-03-15 23:39:36 -04:00
Steve Pulec
446843e756 Fix py3 s3 prefix decoding. 2017-03-15 23:13:09 -04:00
Steve Pulec
e25d1499c2 Update cloudformation for new list types. 2017-03-15 23:02:10 -04:00
Steve Pulec
3899eee648 Fix S3 filtering by unicode prefix. Closes #838 2017-03-15 22:53:27 -04:00
Steve Pulec
8a803cdbaf Better EC2 duplicate SG error. 2017-03-15 22:45:28 -04:00
Steve Pulec
5f3fbff627 Standardize on one account id (123456789012). 2017-03-15 22:21:04 -04:00
Steve Pulec
e9e49c5916 Fix py3 redshift encoding. 2017-03-15 22:12:16 -04:00
Steve Pulec
3cdb4afad0 Fix redshift responses to work with json or xml. 2017-03-15 21:58:37 -04:00
Steve Pulec
09a4d177f5 Add kms boto3 test. 2017-03-14 23:42:52 -04:00
Steve Pulec
0df47574ab Merge pull request #865 from adamstauffer/master
update RDS responses to return DBInstanceArn
2017-03-14 23:28:30 -04:00
Steve Pulec
2bd4567801 Do not use flask outside of server mode. 2017-03-14 23:26:31 -04:00
Steve Pulec
7eb5b60620 Merge pull request #860 from 2rs2ts/add-list-hosted-zones-by-name
Add ListHostedZonesByName
2017-03-14 23:24:03 -04:00
Andrew Garrett
6346e44c9d Be flexible with Route53 Hosted Zone IDs with /hostedzone/ prefix
We will continue to store just the unique ID, but since the AWS API
returns /hostedzone/<id>, we should accept attempts to pass that back.
For example, both just the ID as well as /hostedzone/<id> work for
specifying the HostedZoneId of a ResourceRecordSet in CloudFormation. So
we should support that too.

Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2017-03-14 19:52:36 +00:00
Adam Stauffer
c5853b48da update RDS responses to return DBInstanceArn 2017-03-13 16:48:22 -04:00
Andrew Garrett
b9ea947aa0 Add ListHostedZonesByName 2017-03-13 15:27:45 +00:00
Seamus Cawley
bd2ff89bf1 Ensure SQS property WaitTimeSeconds is an integer 2017-03-13 13:56:55 +00:00
Steve Pulec
cda553abfb Change tests to use default server port of 5000. 2017-03-12 21:04:19 -04:00
Steve Pulec
d2c56619cd Add lint to Travis. 2017-03-12 20:35:45 -04:00
Steve Pulec
5807a38092 Merge pull request #858 from spulec/dashboard
Add a dashboard
2017-03-12 20:26:42 -04:00
Steve Pulec
0e2fdf94f9 Cleanup lints. 2017-03-12 20:18:54 -04:00
Steve Pulec
3a01150154 Add about page. 2017-03-12 19:58:40 -04:00
Steve Pulec
24affc7a5f Fix py3 Model __new__. 2017-03-12 13:04:36 -04:00
Steve Pulec
4d5642ae33 Cleanup dashboard. 2017-03-12 12:59:30 -04:00
Christian Hellman
c271e31745 Fixed terraform deploy against moto fails (#857) 2017-03-12 12:40:49 -04:00
Steve Pulec
09ac3539b7 Sort dashboard attributes. 2017-03-12 12:34:54 -04:00
Steve Pulec
6d422d1f37 Add BaseModel to all models. 2017-03-11 23:41:12 -05:00
Steve Pulec
caea5f441d Fix resetting backends. 2017-03-11 23:18:58 -05:00
Steve Pulec
abe0460dc7 Merge branch 'master' into dashboard 2017-03-11 22:45:45 -05:00
Steve Pulec
1709208872 First version of dashboard. 2017-03-11 22:45:42 -05:00
Steve Pulec
cdd6e476cc If using newer dynamodb api, use version 2. 2017-03-11 20:50:24 -05:00
Steve Pulec
3b4ef2cf15 Merge in master. 2017-03-05 09:58:39 -05:00
Matt Chamberlin
0393c384ad fix etag metadata field name in key response dict (etag --> ETag) (#855) 2017-03-04 23:17:18 -05:00
Andrew Garrett
e7735c3ee1 Add event IDs to CF Stack events (#852)
So that events can be uniquely identified.

I tried to match the format documented here:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-listing-event-history.html
2017-03-04 23:12:55 -05:00
Andrew Garrett
e7ea6b350c Fix lambda stdout/stderr mocking (#851)
Originally, the code was setting sys.stdout and sys.stderr back to the
original, official forms, but this breaks idioms like mocking stdout to
capture printing output for tests. So instead, we will reset sys.stdout
and sys.stderr to what they were before running the lambda function, so
that in case someone is mocking stdout or stderr, their tests won't
break.
2017-03-04 23:01:50 -05:00
Andrew Garrett
f6465df630 Return CF Stack events in reverse chronological order (#853)
This is how the AWS API works:
http://boto3.readthedocs.io/en/latest/reference/services/cloudformation.html#CloudFormation.Client.describe_stack_events
2017-03-04 23:00:25 -05:00
Léo Cavaillé
9b6d3983d2 iam: add group policy methods (#849)
Implemented mocks for:
* get_all_group_policies
* list_group_policies (boto3)
* get_group_policy
* put_group_policy
2017-03-04 22:56:36 -05:00
Chris LaRose
56f9409ca9 Use request URL to generate SQS queue URLs; fixes #626 (#827) 2017-03-04 22:53:14 -05:00
William Richard
f46a24180f Cast desired capacity for cloudformation asg to int (#846)
Cloudformation passes MaxSize, MinSize and DesiredCapacity as strings, but
we want to store them as ints.  Also includes tests of this fix, to help
avoid regression.
2017-03-04 22:51:01 -05:00
David Wilcox
a9554924df make cloudformation update stack use parameters provided (#843) 2017-03-04 22:48:51 -05:00
Andy Freeland
783242b696 Elastic IP PhysicalResourceId should always be its public IP (#841)
According to the [CloudFormation `Ref` docs][docs], the `Ref` return
value (and physical ID of the resource) for an Elastic IP is its public
IP address.

[docs]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html
2017-03-04 22:40:43 -05:00
Andy Freeland
a30ba2b597 EC2 tags specified in CloudFormation should be applied to the instances (#840)
Fixes #839.
2017-03-04 22:37:53 -05:00
David Wilcox
1b6007e2b2 Correct IAM list_server_certs template that was based off incorrect docs (#836)
The documentation for this method is here https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListServerCertificates.html

The docs say the return type is this  ServerCertificateMetadataList.member.N

but the sample response incorrectly include a <ServerCertificateMetadata>. I've sent feedback to the AWS docs telling them to fix their stuff but this also needs to be fixed. I haven't checked other templates with <member> tags in them, as they may be prone to this same problem.
2017-03-04 22:36:25 -05:00
David Wilcox
8d737eb59d Route53: allow hosted zone id as well when creating record sets (#833)
* add test that creates r53 record set from hosted zone id (not name)

* pass test to enable creating record sets by hosted zone ids
2017-03-04 22:31:45 -05:00
Guy Templeton
7d75c3ba18 Feat: ECS container status updating (#831)
* Uptick boto3 version to version supporting ECS container instance state changes

* Add initial status update

* Only place tasks on active instances

* PEP8 cleanup
2017-03-04 22:30:36 -05:00
David Wilcox
bcc3e57949 Cloudformation ResourceMaps incorrectly share namespaces for Conditions and Resources (#828)
* add tests to check CF's conditions and resources have distinct namespace

* separate the resource and condition namespaces for CF
2017-03-04 22:26:23 -05:00
Steve Pulec
1287d53817 Fix tests for py26 and py3. 2017-02-27 20:53:57 -05:00
Steve Pulec
a22caf27ab Cleanup sns default topic. 2017-02-27 10:20:53 -05:00
Steve Pulec
b73360c187 Fix api gateway callback. 2017-02-23 22:34:43 -05:00
Steve Pulec
3c0c4c2996 Fix tests for py3. 2017-02-23 22:28:09 -05:00
Steve Pulec
0dda687762 Fix urlparse for py3. 2017-02-23 21:41:05 -05:00
Steve Pulec
f37bad0e00 Lints. 2017-02-23 21:37:43 -05:00
Steve Pulec
81836b6981 Get standalone server mode working for all tests. 2017-02-23 19:43:48 -05:00
Steve Pulec
cb28eeefbb Add moto reset API. 2017-02-20 18:25:10 -05:00
Steve Pulec
fe46b4c5b9 Remove extra line in test. 2017-02-20 15:50:49 -05:00
Steve Pulec
51df02e7cf Cleanup Server host parsing. 2017-02-20 14:31:19 -05:00
Steve Pulec
d0fe1a0956 Remove pdb. 2017-02-18 09:31:47 -05:00
Steve Pulec
6785d359d3 Cleanup apigateway callback. 2017-02-18 09:25:42 -05:00
Steve Pulec
480c1bba14 Add rest of deprecated decorators. 2017-02-18 09:24:09 -05:00
Steve Pulec
d28f083a0b Cleanup apigateway callback. 2017-02-18 09:19:08 -05:00
Steve Pulec
cad185c74d Cleanup headers and encoding. 2017-02-16 22:51:04 -05:00
Steve Pulec
678f73389f Fix package being submodule. 2017-02-15 22:45:20 -05:00
Steve Pulec
fde721bed7 Testing new version of decorator. 2017-02-15 22:35:45 -05:00
Steve Pulec
d3df810065 Generalize decorator code. 2017-02-12 00:22:29 -05:00
Steve Pulec
2d03182ae2 Migrate some sqs tests to boto3. 2017-02-11 19:41:09 -05:00
Jack Danger
53fbd7dca0 KMS encryption under Python 3 (#826)
This upgrades the KMS encrypt and decrypt endpoints to work
under both Python 2 and 3
2017-02-09 22:36:24 -05:00
David Wilcox
012dd497f2 make get_all_security_groups filter AND match group ids, not OR them (#822) 2017-02-08 21:29:37 -05:00
Jason DeTiberus
1045dca7b2 make instanceTenancy configurable for VPCs (#819)
* make instanceTenancy configurable for VPCs

* fix issue with setting tenenancy
2017-02-08 21:23:49 -05:00
Jeffrey Gelens
8fc1ad03bd Reload the server on a file change (#817)
* Added simple server reload support

* updated help text
2017-02-08 21:22:14 -05:00
Stefan Nordhausen
1a01bae74e Implement list_objects_v2() for S3 buckets (#814)
This adds/fixes the following things:
- Add missing KeyCount in result (fixes #734).
- Do not hard code MaxKeys to 1000.
- Truncate result if it has more than MaxKeys items. Set IsTruncated
    and NextContinuationToken accordingly.
- Support the StartAfter parameter.
- Return Owner information only when FetchOwner=True is given.
- "Prefix" in response is now "" instead of None when omitted in request.
- "Delimiter" is now omitted from response when not given in request.
2017-02-08 21:21:43 -05:00
Steve Pulec
ba7223f046 Fix issue for returning dynamodb floats. Closes #812. 2017-02-08 21:06:05 -05:00
Steve Pulec
4eaf5d527e 0.4.31 2017-01-24 09:48:31 -05:00
Hugo Lopes Tavares
88d5e36ffe Add resource IDs to ECS Cluster and Service models (#811) 2017-01-19 11:59:28 -05:00
Michael Nussbaum
51129f6ef3 Allow ELB policies to be set via Cloudformation. (#809)
Also more closely mirror AWS by not returning ELB
BackendServerDescriptions that don't have policies.

Signed-off-by: Michael Nussbaum <michael.nussbaum@getbraintree.com>
2017-01-18 23:02:04 -05:00
Jesse Szwedko
e1260bca06 cloudformation: Support RoleARN for create and update stack (#807)
Signed-off-by: Andrew Harris <andrew.harris@getbraintree.com>
2017-01-18 22:59:47 -05:00
Jesse Szwedko
f68b2963db sts: Implement get_caller_identity (#806)
Return a canned response

Signed-off-by: Andrew Harris <andrew.harris@getbraintree.com>
2017-01-18 22:59:04 -05:00
Jesse Szwedko
55f39265dd Upgrade to boto 2.45 (#803)
Adds support for additional regions:

* ca-central-1
* eu-west-2

Signed-off-by: Andrew Harris <andrew.harris@getbraintree.com>
2017-01-18 22:55:22 -05:00
Akhter Ali
2bf85fe25d Fix Route53 response and tests (#804)
* Fix route53 response \n Fix route53 tests

* Fixing index

* fix zone ID on test_route53_with_update
2017-01-18 21:40:04 -05:00
costypetrisor
a967ec0d39 made the Security Group backend throw the same error as AWS if the nb of sec groups limit is hit (#742)
* made the Security Group backend throw the same error as AWS if the security group limit is hit

* included in the security group limit the count of grants to other security groups & updated the unit tests to cover these

* refactored a few things about the sec group rule count limit
2017-01-18 21:37:55 -05:00
Jesse Szwedko
d42432bfef IAM: raise error if requiested instance profile does not exist (#802)
Signed-off-by: Andrew Harris <andrew.harris@getbraintree.com>
2017-01-18 21:36:50 -05:00
Steve Pulec
a292150087 Throw exception if same security group rule added twice. Closes #737. 2017-01-11 22:35:27 -05:00
Michael Nussbaum
74bbd9c8e5 Various RDS, RDS/Cloudformation, RDS/KMS improvements. (#789)
We need to mock out deploying RDS instances with full disk encryption
and detailed tagging. We also need to be able do deploy these instances
with Cloudformation, and then access them with both boto and boto3.

* Join RDS and RDS2 backends - this makes RDS resources created via
  either of the two boto RDS APIs visible to both, more closely
  mirroring how AWS works
* Fix RDS responses that were returning JSON but should be returning XML
* Add mocking of RDS Cloudformation calls
* Add mocking of RDS full disk encryption with KMS
* Add mocking of RDS DBParameterGroups
* Fix mocking of RDS DBSecurityGroupIngress rules
* Make mocking of RDS OptionGroupOptions more accurate
* Fix mocking of RDS cross-region DB replication
* Add RDS tag support to:
  * DBs
  * DBSubnetGroups
  * DBSecurityGroups

Signed-off-by: Andrew Garrett <andrew.garrett@getbraintree.com>
2017-01-11 21:02:51 -05:00
Steve Pulec
201efd5773 Fix bug with listing IAM users. 2017-01-11 20:54:47 -05:00
Jia Chen
2a02259a3c Adding PolicyType to scaling policy and implementing filtering in describe_policies (#797)
* Adding PolicyType to FakeScalingPolicy

* Implement filtering for AutoScalingBackend.describe_policies(...)

* Unit test for describe_policies fuction in autoscaling
2017-01-11 20:40:57 -05:00
Brian Kruger
f212d70104 Use a sane aws sender_id from SQS. (#791) 2017-01-11 20:38:55 -05:00
Taro Sato
02324ad708 Add more availability regions and implement default VPC (#773)
Fix filter name for availability zone

Fix bug assuming dict keys are ordered

Fix tests

Fix tests

Fix bug
2017-01-11 20:37:57 -05:00
Andrew Garrett
231d3cadcb Fix the CloudFormation ValidationError message (#788)
It should be a string, not a tuple, and it has a different form.
I'm not sure if it used to be different, but in the most recent
boto3/botocore, the message is "Stack with id {id} does not exist"

```python
>>> cf = boto3.client('cloudformation', region_name='us-west-2')
>>> try:
...     cf.describe_stacks(StackName='adfgfhghg')
... except botocore.exceptions.ClientError as e:
...     print e.response['Error']['Message']
...
Stack with id adfgfhghg does not exist
```

I am on boto3 1.4.2 and botocore 1.4.82 as of this commit message.
2017-01-11 20:36:45 -05:00
Raghavendra D Prabhu
d07c646032 sqs: Use unix_time in place of time.time() (#787)
unix_time() from moto.core.utils is used as the time source through moto,
and it is identical to time.time() in output. Hence, using unix_time()
since it makes mocking easier during testing (when time is mocked out).
2017-01-11 20:35:56 -05:00
Hugo Lopes Tavares
b5ff3345be Add service ARNs support to the DescribeServices ECS API (#796) 2016-12-20 10:37:49 -05:00
Hugo Lopes Tavares
0115267f2a Add ECS CloudFormation support (#795)
* Add cloudformation support to AWS::ECS::Cluster

* Add CloudFormation support to AWS::ECS::TaskDefinition

* Add CloudFormation support to AWS::ECS::Service

* Add support to update AWS::ECS::Cluster through CloudFormation

* Fix Cluster.update_from_cloudformation_json to return original_resource if nothing changed

* Implement TaskDefinition.update_from_cloudformation_json

* Implement Service.update_from_cloudformation_json
2016-12-20 10:37:18 -05:00
Peter Gorniak
d4a31e5e50 unit tests did not catch this, but this will not work under python 2.6 2016-12-08 14:34:21 -08:00
Peter Gorniak
114de9ba0b more fixes for 2.6 and 3 2016-12-07 13:55:26 -08:00
Peter Gorniak
0c875fd268 fixes for python 2.6 and 3 2016-12-07 13:31:15 -08:00
Peter Gorniak
3c128fdb51 correct looping through update actions, value stripping, hash key regex 2016-12-07 11:47:48 -08:00
Peter Gorniak
390bef7752 fake change to force push because github was broken 2016-12-06 16:57:36 -08:00
Peter Gorniak
98a39cf4b5 account for keys potentially being substrings of other keys (e.g. #c1 and #c10) 2016-12-06 12:14:57 -08:00
Steve Pulec
a39f30ad18 Fix merge conflicts. 2016-12-03 19:40:39 -05:00
Steve Pulec
2c6a967f45 Disable strict_slashes for Flask so that S3 works in server mode. 2016-12-03 18:59:28 -05:00
Rob Walker
ed0e81fc61 Fixup lambda for ResponseRequest (#781)
* Fixup lambda for ResponseRequest

* one day will get this right
2016-12-03 18:17:15 -05:00
mfranke
5dc8e59fab Fix s3bucket_path (#784)
* check HTTP header for IPv4 or IPv6 addresses and default to path based S3

* improved IPv4 and IPv6 checking with optional ports

* typo

* subdomain bucket creation with trailing '/' did not work

* Use regex for Host field check to determine IPv4/IPv6

* add testcases for trailing slash, IPv4 and IPv6
2016-12-03 18:15:24 -05:00
Tom V
c54985a39f Fix for #748. Turn on autoescape for S3 templates. (#779) 2016-12-03 18:13:24 -05:00
Paul Cieslar
ee8e72766a Support for ecs describe_task_definition (#777)
* describe_task_definition support

* Refactor fetch_task_definition

* Add ECS Descriptors  (#772)

* Add support for "DescribeServices" in ecs mock

* Add support for "DescribeTaskDefinition" in ecs

* Let ecs responses handle baseobject for services

* Update Cloudformation/parsing#load_parameters to split commadelimitedlists into lists (#774)

* Fix JSON dump error in ecs.update_service with task_definition (#775)

* Fix s3bucketpath handling for IP based requests (#765)

* check HTTP header for IPv4 or IPv6 addresses and default to path based S3

* improved IPv4 and IPv6 checking with optional ports

* typo

* Freezetime.

* Add S3 ACL for aws-exec-read. Closes #740.

* Fixed time formatting in ec2/models.py (#778)

* Fixed time formatting in ec2/models.py

* Used freezegun on test that was failing due to time progression causing timestamp differences.

* rename duplicate rds/models db_instance_identifier to physical_resource_id (#776)

* rename duplicate db_instance_identifier to physical_resource_id

* Update create_from_cloudformation_json to use db_source_identifier str

* Update code to be more conventional.

* describe_task_definition support

* Refactor fetch_task_definition
2016-12-03 18:12:22 -05:00
Justin Wiley
c7757f953c Can't iterate over dict values in Python 3.3+. Changed Rule.targets from a dict to an array, which is probably better anyway since the dict doesn't maintain order, making API calls with the Limit parameter specified unreliable. 2016-12-01 19:52:00 -08:00
Justin Wiley
5d7a102e4c Stoopid import was still hanging around. 2016-12-01 19:24:40 -08:00
Justin Wiley
6c85a85e0d Removed OrderedDicts for 2.6 and dict.iteritems() calls for 3.3+ compatibility. 2016-12-01 19:10:59 -08:00
Justin Wiley
db0b494b4f Completed the CloudWatch Events mocking module and tests. 2016-12-01 17:23:51 -08:00
Justin Wiley
d0def03c4c Events models first draft done, need to write tests, then get responses going. 2016-11-30 17:09:58 -08:00
Justin Wiley
d0a66f2dff Begin work on mocking CloudWatch Events. 2016-11-29 17:19:26 -08:00
Peter Gorniak
2c50561563 fix decoding keys in query condition 2016-11-29 14:04:23 -08:00
Peter Gorniak
5a7c711a74 bring dynamodb2 update expression handling closer to spec 2016-11-25 21:07:24 -08:00
David Wilcox
c3c6eaf281 rename duplicate rds/models db_instance_identifier to physical_resource_id (#776)
* rename duplicate db_instance_identifier to physical_resource_id

* Update create_from_cloudformation_json to use db_source_identifier str

* Update code to be more conventional.
2016-11-23 20:07:26 -06:00
Justin Wiley
d6890640b2 Fixed time formatting in ec2/models.py (#778)
* Fixed time formatting in ec2/models.py

* Used freezegun on test that was failing due to time progression causing timestamp differences.
2016-11-23 20:06:35 -06:00
Steve Pulec
136f6d67fb Add S3 ACL for aws-exec-read. Closes #740. 2016-11-23 19:42:36 -06:00
mfranke
040c2cd8cc Fix s3bucketpath handling for IP based requests (#765)
* check HTTP header for IPv4 or IPv6 addresses and default to path based S3

* improved IPv4 and IPv6 checking with optional ports

* typo
2016-11-23 19:05:34 -06:00
Pior Bastida
09ca1c4388 Fix JSON dump error in ecs.update_service with task_definition (#775) 2016-11-23 19:01:48 -06:00
David Wilcox
4ea915fc3a Update Cloudformation/parsing#load_parameters to split commadelimitedlists into lists (#774) 2016-11-23 18:57:47 -06:00
Robert Sheehy
17584e9aa4 Add ECS Descriptors (#772)
* Add support for "DescribeServices" in ecs mock

* Add support for "DescribeTaskDefinition" in ecs

* Let ecs responses handle baseobject for services
2016-11-23 18:56:12 -06:00
Sean Marlow
fa3663c610 Add support for login profile deletion (#768)
* Add support for delete_login_profile.

Mock deletion of login profile. Set password to
none. Add tests to cover new endpoint.

* Fix typo in create_login_profile response.

Change CreateUserResult to CreateLoginProfileResult
in the CREATE_LOGIN_PROFILE_TEMPLATE. Caused KeyError
when using boto3.

Add test to cover boto3 in addition to boto.
2016-11-11 17:05:01 -05:00
Nuno Santos
71c1fbadbe Add DynamoDB tests for update_item() with UpdateExpression, support spaces in the UpdateExpression. (#758)
Fixes #745.
2016-11-11 17:04:14 -05:00
Mike Pappas
4942e74ab1 Fix SNS application endpoint to match AWS return format (#763) 2016-11-11 17:01:47 -05:00
Steve Pulec
1c61498cc8 0.4.30 2016-11-09 11:25:14 -05:00
Steve Pulec
5c3d9b4ae1 Have spot requests launch instances. 2016-11-07 23:08:30 -05:00
Steve Pulec
24035877f6 0.4.29 2016-11-07 14:55:08 -05:00
Steve Pulec
8681998e91 Nest flask import so that it is not required globally. 2016-11-07 14:54:22 -05:00
Steve Pulec
c3e0ff4fe7 0.4.28 2016-11-07 12:57:18 -05:00
Steve Pulec
5371044b6f Spot fleet (#760)
* initial spot fleet.

* Add cloudformation spot fleet support.

* If no spot fleet ids, return all.
2016-11-07 09:53:44 -05:00
Steve Pulec
9101b58934 Need to speficy how we are sorting. 2016-11-06 10:57:01 -05:00
Steve Pulec
38021c6ef5 Test Boto 2.43.0 . 2016-11-06 10:29:50 -05:00
Steve Pulec
3b98566f20 Merge pull request #757 from nfvs/dynamodb_putitem_conditional
Attempt to parse simple ConditionExpressions in DynamoDB put_item().
2016-11-06 09:53:45 -05:00
Steve Pulec
44636d1f73 Merge pull request #755 from dtenenba/master
bump tag limit from 10 to 50 to align with actual AWS limit
2016-11-06 09:52:20 -05:00
Steve Pulec
721d1b3a3f Merge pull request #736 from okomestudio/ts/botocore_update
Remove botocore version pinning
2016-11-06 09:50:28 -05:00
Steve Pulec
2fdc5498b5 Merge pull request #744 from helenst/scan-after-has-item
Fix failure of scan() after has_item()
2016-11-06 09:45:12 -05:00
Steve Pulec
ee369de3ef Merge pull request #741 from costypetrisor/sec-group-authorize-revoke-in-batch
Sec group authorize revoke in batch
2016-11-06 09:40:16 -05:00
Steve Pulec
ac89403807 Merge pull request #738 from okomestudio/ts/more_iam_endpoints
Implement IAM managed policy
2016-11-06 09:39:22 -05:00
Nuno Santos
74b56faafd Attempt to parse simple ConditionExpressions in DynamoDB put_item().
Internally these get converted into simpler Expected={} parameters, so
for now only `attribute_exists` and `attribute_not_exists` are supported;
OR is also not suported since `expected` does not support it.
2016-11-04 12:37:10 +01:00
Dan Tenenbaum
37f643ecb4 bump tag limit from 10 to 50 to align with actual AWS limit 2016-11-03 14:12:20 -07:00
Taro Sato
5538b541a8 Fix a bug with map type not properly handling multiple entries 2016-10-31 11:29:39 -07:00
Helen Sherwood-Taylor
08d07fed30 Fix failure of scan() after has_item()
Fixes #731
2016-10-25 17:09:39 +01:00
Costy Petrisor
8689b40d23 made the security group endpoints that authorize or revoke firewall rules
to support batch rules (boto doesn't expose this, but botocore/boto3 does)
2016-10-20 19:34:11 +00:00
Taro Sato
159a81723c Implement IAM managed policy.
This requires boto 2.39 for managed policy tests
2016-10-20 10:07:41 -07:00
Taro Sato
484faa54c4 Implement filters and pagers for some EMR end points 2016-10-20 10:03:17 -07:00
Taro Sato
b632df3aa4 Generate proper empty value for XML/JSON 2016-10-16 21:49:10 -07:00
Steve Pulec
2e33e2be90 Merge pull request #735 from rocky4570/dryrun-ec2
Add dry_run to a number of EC2 services
2016-10-16 19:14:57 -04:00
Steve Pulec
5dbb22265c Merge pull request #732 from JackDanger/jack/implement-kms-encryption
Implementing KMS encrypt/decrypt
2016-10-16 19:12:43 -04:00
rocky4570fft
57ab70b05c fix up indentation 2016-10-16 00:56:49 +10:00
rocky4570fft
d6f76cbb43 Add dry_run to a number of EC2 services 2016-10-16 00:34:52 +10:00
Jack Danger Canty
ea24376131 Implementing KMS encrypt/decrypt
This adds support for testing the /encrypt and /decrypt endpoints
of Amazon KMS
2016-10-14 01:04:14 -07:00
Taro Sato
7cd404808b Better EMR coverage and boto3 request/response handling
This revision includes:

- A handler for requests for which content-type is JSON (from boto3).

- A decorator (generate_boto3_response) to convert XML responses to
  JSON (for boto3). This way, existing response templates for boto can
  be shared for generating boto3 response.

- Utility class/functions to use botocore's service specification data
  (accessible under botocore.data) for type casting, from query
  parameters to Python objects and XML to JSON.

- Updates to response handlers/models to cover more EMR end points and
  mockable parameters
2016-10-13 16:48:07 -07:00
Steve Pulec
4a92f9fdb0 Fix IP setting. 2016-10-12 22:14:45 -04:00
Steve Pulec
27f1bece9b Fix assigning public ip to instances. Closes #729. 2016-10-12 22:02:13 -04:00
Rene Martin
bd9e7deb95 Merge branch 'master' of https://github.com/spulec/moto 2016-10-10 07:47:11 +01:00
Steve Pulec
fef3437db2 Throw error on terminating empty instance list. Closes #697. 2016-10-09 21:20:53 -04:00
Steve Pulec
ddf2f5a754 Fix firehose to work without Redshift config. 2016-10-09 20:24:09 -04:00
Steve Pulec
768a58671a Merge pull request #723 from rocky4570/awslambda-mods
lambderize the moto lambda
2016-10-09 19:13:02 -04:00
Steve Pulec
b3b538bbef Merge pull request #721 from rocky4570/kms-fixes
Add ARN and Alias functionality to KMS
2016-10-09 19:01:26 -04:00
Steve Pulec
81d489ce46 Merge pull request #710 from kryptek/master
Fix Route53 tagging code
2016-10-09 18:58:17 -04:00
Steve Pulec
ef42676496 Merge pull request #712 from skygeo/fix_dynamodb_batch_write
fix: change dynamodb2 batch write response
2016-10-09 18:56:29 -04:00
Steve Pulec
f7ea66c248 Merge pull request #711 from skygeo/fix_dynamodb2_conditions
fix: dynamodb2 conditions
2016-10-09 18:55:38 -04:00
rocky4570fft
c4ea3cf751 correct expletive and remove debug line 2016-10-10 01:22:16 +10:00
rocky4570fft
dc98cf6f64 argh 2 days trying to work python3 into working python2 :( 2016-10-10 01:13:52 +10:00
Rene Martin
4fa838e9fd Keep default dhcp_options id backwards compatiblity 2016-10-08 10:37:57 +01:00
Rene Martin
b06d439a81 Set the right dhcp_options id in the response
If the vpc has a dhcp_options associated with it the response should
include the right association.
2016-10-08 10:34:55 +01:00
rocky4570fft
95c90ae15f attmpt 6 is it the print statements or unicode? 2016-10-07 00:50:33 +10:00
rocky4570fft
de9d31bc0d attmpt 5 2016-10-07 00:41:31 +10:00
rocky4570fft
76266b6163 attmpt 4 thought i got rid of import StringIO - rockstar status not looking so good now 2016-10-07 00:26:00 +10:00
rocky4570fft
5500cc3e6f attmpt 3 not liking Python 3 very much at the moment 2016-10-07 00:18:39 +10:00
rocky4570fft
7c3005e582 attmpt 2 to resolve StringIO not being within Python 3 anymore 2016-10-07 00:14:47 +10:00
rocky4570fft
6c577091da lambderize the moto lambda 2016-10-06 19:52:23 +10:00
rocky4570fft
0062c8da1a Fix up models to work with Python 3 2016-10-03 01:51:59 +11:00
rocky4570fft
3a7fec4032 Add ARN and Alias functionality to KMS 2016-10-03 01:33:59 +11:00
Georges Chaudy
bd3dd23c6b fix: change dynamodb2 batch write response 2016-09-23 17:07:49 +01:00
Georges Chaudy
6b74487b31 fix: dynamodb2 conditions 2016-09-23 16:14:17 +01:00
Alfred Moreno
6560063ceb Fix tagging code. Unit tests were passing but the underlying implementation wasn't producing the expected result 2016-09-22 18:38:47 -07:00
Steve Pulec
79fe9df6cc Merge pull request #706 from kryptek/add-route53-tagging
Add support and unittests for Route53 tags
2016-09-21 21:32:22 -04:00
Steve Pulec
7a759e8f70 Merge pull request #705 from okomestudio/ts/boto3-multipart-upload
Update S3 object GET response headers with response_dict from key
2016-09-21 21:31:30 -04:00
Steve Pulec
9478b0cc0c Merge pull request #700 from monkeyrevenge/bugfix/describe_tags_issue
Invalid resource types would return all resources if no other filters were included
2016-09-21 21:29:39 -04:00
Alfred Moreno
9a7556b3af Add support and unittests for Route53 tags 2016-09-20 17:41:23 -07:00
Taro Sato
bdb9d59e46 Update response headers with response_dict from key; add tests 2016-09-20 15:42:21 -07:00
Steve Pulec
97513590c8 0.4.27 2016-09-16 18:41:11 -04:00
Steve Pulec
ea0b587791 Merge pull request #699 from tootedom/apigateway
added more api gateway coverage
2016-09-16 18:34:27 -04:00
Jeff Albert
6d7b0c9a15 Fixed issue when invalid resource type is used it would return all tags. Behavoir differed from that of AWS behavior 2016-09-15 14:52:57 -04:00
dominictootell
9e73d10e59 Not, not Non for the exception. 2016-09-14 11:52:56 +01:00
dominictootell
dd85f35f5a don't set cacheClusterSize if cache not enabled 2016-09-14 10:04:51 +01:00
dominictootell
f1454ee280 fix mutable default variables 2016-09-14 07:37:02 +01:00
Steve Pulec
fca0d3885b Merge pull request #698 from SpoonMeiser/fix-trailing-slash
Stop stripping the trailing slash off keys listed from s3 buckets
2016-09-13 21:57:03 -04:00
Steve Pulec
59be70d0e4 Merge pull request #693 from swipetospin/master
ALWAYS use utcnow(), never now()
2016-09-13 21:55:40 -04:00
Steve Pulec
4d9a0f7dc6 Merge pull request #692 from imran2140/fix-unicode-s3-key-listing
Fix unicode S3 key listing in Python 2
2016-09-13 21:54:28 -04:00
Steve Pulec
8a92cc2924 Merge pull request #689 from michael-dev2rights/master
Make testing a bit safer binding to 127.0.0.1
2016-09-13 21:53:13 -04:00
Steve Pulec
65047ce102 Merge pull request #687 from skygeo/ecs_tasks
Add support for ECS tasks
2016-09-13 21:51:42 -04:00
dominictootell
1aaafc5f07 added more api gateway coverage
added: get_stages, stage not found exception, update stage configuration, descriptions on deployments, setting stage variables on deployments and stage creating
2016-09-13 12:44:17 +01:00
Oliver Jeeves
b297b1410c Stop stripping the trailing slash off keys listed from s3 buckets
fixes #684
2016-09-13 12:21:22 +01:00
Collin RM Stocks
1b65c45b56 ALWAYS use utcnow(), never now() 2016-09-07 14:40:52 -04:00
imran
478e791c39 Fix unicode S3 key listing in Python 2 2016-09-04 04:31:03 +06:00
Michael De La Rue
bf2fdbba76 Make server use 127.0.0.1 as default address. 2016-09-01 12:14:38 +01:00
Georges Chaudy
dc75e5d6ad add ecs tasks methods 2016-08-30 00:26:13 +01:00
Steve Pulec
ea319698aa Merge pull request #669 from netors/feature/implement-iam-list-users-for-boto3
implemented iam list users (Closes #668)
2016-08-27 21:13:53 -04:00
Steve Pulec
0a11db6a8c Merge pull request #686 from mervynrussell/feature/ami_creation_date
Feature/ami creation date
2016-08-27 21:06:13 -04:00
Steve Pulec
18b6197bf2 Merge pull request #674 from IlyaSukhanov/master
Preserve Namespace and MetricName when creating cloudwatch alarm.
2016-08-27 21:05:31 -04:00
Mervyn Russell
27495e01e5 Added support for creation date to Ami 2016-08-26 13:43:17 +01:00
Waldemar Hummer
db275a1573 initial support for apigateway stages, in particular the update_stage method 2016-08-22 13:36:19 +10:00
Steve Pulec
e92a8b7492 Merge pull request #680 from SplunkStorm/setup_s3_cfn_parsing
Setup s3 cfn parsing
2016-08-19 17:29:58 -04:00
Steve Pulec
18d1bb1079 Merge pull request #681 from ronin13/queue-arn
Use region from ctor to set queue_arn.
2016-08-19 17:29:01 -04:00
Steve Pulec
811c95381a Merge pull request #679 from phobologic/master
Causes get_server_certificate to fail correctly
2016-08-19 17:28:31 -04:00
Steve Pulec
346c094007 Merge pull request #676 from whummer/feature/apigateway-req-templates
Add support for requestTemplates parameter in apigateway integrations mock
2016-08-19 17:26:45 -04:00
Raghavendra Prabhu
34a28b0fd5 Use region from ctor to set queue_arn.
Without this, any region passed to boto3.resource is ignored and unit
tests depending on it break.
2016-08-17 22:12:00 +01:00
Declan Shanaghy
1441087e5c Add S3 parsing for CloudFormation 2016-08-15 10:57:40 -07:00
Michael Barrett
4bfbcf4d03 Causes get_server_certificate to fail correctly
When no certificate with the name exists, the API should return a 404
(NoSuchEntity).
2016-08-14 17:40:39 -07:00
rocky4570fft
0161422d21 additional filters to get_all_vpcs 2016-08-14 16:58:35 +10:00
Waldemar Hummer
5075f6684f add support for requestTemplates parameter in apigateway mock 2016-08-10 13:55:59 +10:00
Ilya Sukhanov
a37838b638 Preserve Namespace and MetricName when creating cloudwatch alarm. 2016-08-01 17:31:08 -04:00
Steve Pulec
ececa8009b Merge pull request #665 from macheins/fix-broken-sqs-queue-arn-attribute
Fix broken SQS QueueArn attribute
2016-07-24 09:28:47 -04:00
Steve Pulec
d20906fcd7 Merge pull request #622 from nfvs/boto3_get_queue
Fix retrieving inexistent queue errors when using boto3
2016-07-24 09:18:32 -04:00
Andrew Gross
b4176050e2 Add volume attachment status 2016-07-22 14:23:42 -04:00
Ernesto Ruy Sanchez
e84dad6509 implemented iam list users 2016-07-20 15:12:02 -07:00
macheins
ef8b6c1f28 Fix broken format of SQS QueueArn attribute 2016-07-19 14:15:16 +02:00
Nuno Santos
8ffd4e51ec Fix retrieving inexistent queue errors when using boto3.
Handle 404 errors when trying to retrieve a SQS queue that does not
exist. Add get_queue and get_inexistent_queue tests for boto3.
2016-07-16 12:09:34 +01:00
Steve Pulec
1c8458080a Merge branch 'lambda_invoke' of https://github.com/mikegrima/moto into mikegrima-lambda_invoke 2016-07-09 21:29:41 -04:00
Steve Pulec
9d281844cd Merge pull request #661 from braintreeps/fix-s3-errors
Update format of S3 client errors
2016-07-09 21:12:57 -04:00
Steve Pulec
3e797d9c50 Merge pull request #658 from kierandoonan/master
Add encrypted attribute to Volumes/Snapshots
2016-07-09 21:11:52 -04:00
Steve Pulec
c34481a476 Merge pull request #659 from kierandoonan/fix-tag-filter
Fix tag filter
2016-07-09 21:11:12 -04:00
Steve Pulec
84d0c44bd3 Merge pull request #653 from 2rs2ts/describe-stack-events
Add CloudFormation:DescribeStackEvents
2016-07-09 21:09:37 -04:00
Steve Pulec
219ed703fb Merge pull request #645 from paulci/describe_security_groups_boto3
Support Filters in describe_security_groups() for boto3
2016-07-09 20:56:43 -04:00
Jesse Szwedko
ef10df0636 Update format of S3 client errors
To match
http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#RESTErrorResponses
which documents that it should be at the top level rather than nested
under `Errors`.
2016-07-08 19:32:34 +00:00
Kieran Doonan
619255e25a tag-key and tag-value filters now do a regex match 2016-07-05 11:44:39 +01:00
Kieran Doonan
d3dcb8d3b5 tag_filter_matches now uses regex for key/value matches 2016-07-05 11:28:35 +01:00
Kieran Doonan
af0007ad2b volumes are now encrypted if snapshots are encrypted 2016-07-04 14:40:13 +01:00
Kieran Doonan
44195a9151 added encrypted attribute to snapshots 2016-07-04 14:29:33 +01:00
Kieran Doonan
a3c16bcc77 updated ebs response 2016-07-04 14:09:41 +01:00
Kieran Doonan
f9f0d4b7d9 encrypted attribute now respected in create_volume 2016-07-04 11:30:17 +01:00
Kieran Doonan
957678d33d create volume response updated 2016-07-04 11:25:51 +01:00
Kieran Doonan
9ea06399ba describe instances response now shows encrypted status 2016-07-04 11:24:13 +01:00
Kieran Doonan
e8a564b6b4 ebs model now supports encrpyted volumes 2016-07-04 11:23:46 +01:00
Andrew Garrett
542248158f Implement the meat for DescribeStackEvents
Right now this just adds events for the stack itself via the lifecycle
methods of the FakeStack object, but it is possible to add other kinds
of events (I left a method for that should someone need inspiration
later.)
2016-06-29 21:56:39 +00:00
Andrew Garrett
2a6f607ae5 Add DescribeStackEvents endpoint
It returns nothing right now because there's no backend implementation
for events (yet.)
2016-06-29 18:41:16 +00:00
Paul Cieslar
706868c7f8 describe_security_groups() support for Boto3
Support for list of filters
2016-06-23 11:59:58 +01:00
Mike Grima
bfa079ec4e Added Lambda invoke capability. 2016-06-22 12:24:46 -07:00
Victor Blaga
69888c3baa update_item takes into account ExpressionAttributeNames and ExpressionAttributeValues
ExpressionAttributeNames and ExpressionAttributeValues
are no longer ignored during update_item.
2016-06-21 17:45:22 +02:00
Steve Pulec
a9e54482fc Merge pull request #631 from hummus/route53-private-zone-support
Route53 private zone support
2016-06-20 15:10:49 -04:00
Steve Pulec
5ed874cd6e 0.4.25 2016-06-18 20:47:49 -04:00
Steve Pulec
da14b75d0a Merge pull request #632 from jcastillocano/master
Updating RDS instance status after deleting it
2016-06-18 19:41:28 -04:00
Steve Pulec
0b8de6772d Merge pull request #639 from jessechahal/autoscale_update_and_create_tags
Autoscale update and create tags
2016-06-17 22:00:22 -04:00
Jesse Chahal
1d2042876e added update_and_create_tags() to autoscale groups 2016-06-17 18:51:28 -07:00
Steve Pulec
57167b1890 Merge pull request #635 from riccardomc/master
Introduce ContainerInstance handling in ECS
2016-06-17 18:06:04 -04:00
Steve Pulec
37ccdf02b4 Merge pull request #636 from CloverHealth/copy_result_headers_and_body
Return headers and response matching AWS specification for copy_from …
2016-06-17 18:04:01 -04:00
Steve Pulec
b6d7260f7f Merge pull request #634 from SplunkStorm/fix_cfn_error_message_and_delete_stack
Fix cfn error message and delete stack
2016-06-17 18:03:23 -04:00
Steve Pulec
ea43f41470 Merge pull request #625 from nfvs/fix_whitespace
Strip extra whitespace and newlines from SQS response templates.
2016-06-17 17:51:07 -04:00
Steve Pulec
b7a2f55afe Merge pull request #624 from mvantellingen/store-sns-message
Save the sns messages in the PlatformEndpoint
2016-06-17 17:50:37 -04:00
Jesse Chahal
0efea0af2b Implemented autoscale method create_or_update_tags 2016-06-16 17:24:50 -07:00
Riccardo M. Cefala
57f4f4aa9b itervalues() has been dropped in python 3 2016-06-15 09:24:52 +02:00
Riccardo M. Cefala
5f2255833f use ids instead of full arn to index ContainerInstances 2016-06-15 08:41:26 +02:00
Riccardo M. Cefala
dd7ae027cc rename class Failure to ContainerInstanceFailure 2016-06-15 08:40:31 +02:00
Riccardo M. Cefala
b652256c43 simplify cluster existence check in register_container_instance 2016-06-14 17:58:49 +02:00
Riccardo M. Cefala
137791e960 add ECS describe_container_instances 2016-06-14 17:58:11 +02:00
Juan Carlos Castillo Cano
2c744f2a59 Adding current date as InstanceCreateTime parameter (RDS) 2016-06-14 16:45:31 +01:00
George Leslie-Waksman
48c57384c5 Return headers and response matching AWS specification for copy_from requests. 2016-06-13 13:24:09 -07:00
Riccardo M. Cefala
115f9513f6 add ECS ContainerInstance register and list actions 2016-06-11 12:52:19 +02:00
Riccardo M. Cefala
19fab4ca25 add ContainerInstance class in ecs models 2016-06-11 12:49:08 +02:00
Riccardo M. Cefala
0ea9823397 add generate_instance_identity_document in ec2 utils 2016-06-11 12:48:01 +02:00
Hitesh Ghia
d8baa957e9 Fix cfn delete stack functionality 2016-06-09 16:23:55 -07:00
Juan Carlos Castillo Cano
cae86a8eeb Updating RDS instance status after deleting it 2016-06-09 11:33:28 +01:00
Declan Shanaghy
773a49c40d Fix typo in message variable 2016-06-03 16:30:34 -07:00
hummus
8fa53c1453 support route53 HostedZone PrivateZone=True #627 2016-06-03 11:10:04 -04:00
Nuno Santos
68eeb5948b Strip extra whitespace and newlines from SQS response templates.
Fixes #623
2016-06-02 12:26:50 +02:00
Michael van Tellingen
45ce0615e1
Save the sns messages in the PlatformEndpoint
This makes it easier to test the correct sns messages are sent
2016-06-02 11:02:43 +02:00
Matt Long
9b7902018f Respect VisibilityTimeout when calling receive_message
Previously, receive_message would always use the queue's default
visibility timeout instead of the value passed as a query parameter when
calling the receive_message method on an SQS connection.
2016-05-31 15:13:49 -07:00
Steve Pulec
4372c346d9 Merge pull request #618 from mrucci/asg-delete-after-elb
ELBs can now be deleted before their autoscaling groups.
2016-05-17 21:02:13 -04:00
Steve Pulec
00becdbed4 Merge pull request #617 from mrucci/elb-duplicate-name-exception
Disallow creation of ELBs with duplicate names.
2016-05-17 21:01:45 -04:00
Steve Pulec
d4895d588a Merge pull request #616 from mnussbaum/cloudformation_kms
Adds KMS support to mock_cloudformation
2016-05-17 21:01:12 -04:00
Marco Rucci
a330b1d346 ELBs can now be deleted before their autoscaling groups.
Also, fix name clash in autoscaling tests.
2016-05-15 21:17:59 +02:00
Marco Rucci
e47fc4cafc Disallow creation of ELBs with duplicate names. 2016-05-15 20:04:00 +02:00
mnussbaum
01e5c3a384 Adds KMS support to mock_cloudformation 2016-05-13 21:36:24 +00:00
Yann Lambret
52a5346c9e Add support for VPC attributes management, and fix a bug about the default - not default status of a VPC 2016-05-12 22:36:09 +02:00
Steve Pulec
076a6a7055 Better defaults for AMIs. 2016-05-11 18:28:34 -04:00
Steve Pulec
bd7327fca2 Fix issues around S3 deletion. Closes #606. 2016-05-08 17:14:35 -04:00
Steve Pulec
5415091d14 Merge pull request #608 from yannlambret/add-filtering-to-network-interfaces
Extend filtering support for elastic network interfaces
2016-05-08 16:41:22 -04:00
Yann Lambret
fdadd24ad3 Extend filtering support for elastic network interfaces 2016-05-08 00:19:01 +02:00
Steve Pulec
196e5a7d8d Fix dynamodb2 comparisons. Closes #601. 2016-05-05 23:39:14 -04:00
Steve Pulec
3dd44245f7 Merge pull request #604 from njl/restore_sent_messages
Add sent_messages back to SESBackend
2016-05-05 23:03:26 -04:00
Ned Jackson Lovely
93aed94bc7 Add sent_messages back to SESBackend 2016-05-05 23:01:24 -04:00
Steve Pulec
79addb8926 Add S3 functionality to copy range. Closes #526. 2016-05-05 22:52:12 -04:00
Steve Pulec
6803444d61 Fix Dynamodb table key name. Closes #524. 2016-05-05 22:14:23 -04:00
Steve Pulec
68de6feb01 Add iam remove_role_from_instance_profile. Closes #563. 2016-05-04 22:25:46 -04:00
Steve Pulec
8ce2d3c8bf Cleanup updating ASGs. Closes #603. 2016-05-04 22:10:11 -04:00
Michael van Tellingen
d34dd5b08a
Implement support for sns delete_endpoint() 2016-05-02 14:34:51 +02:00
Steve Pulec
9c176671d0 0.4.24 2016-05-01 22:35:49 -04:00
Steve Pulec
c308ef4364 Fix update_auto_scaling_group. Closes #596. 2016-05-01 22:34:16 -04:00
Steve Pulec
d82d64b8bd Add EBS snapshot filter. Closes #525. 2016-05-01 22:24:49 -04:00
Steve Pulec
0a10b2f738 Fix issues with unicode and slashes for S3. Closes #521. 2016-05-01 22:03:52 -04:00
Steve Pulec
15dc619fb2 More liberal regrex for S3 region matching. Closes #580. 2016-05-01 21:17:06 -04:00
Steve Pulec
b932343fec Break out MissingKey as separate exception. Closes #571. 2016-05-01 17:04:09 -04:00
Dan Felix
1988c957e0 Pass query to _key_response_head for versioning support. 2016-04-28 13:16:25 -07:00
Steve Pulec
7dcfa85fb8 Add physical_resource_id to Route53.RecordSet. Closes #595. 2016-04-28 09:42:10 -04:00
Jesse Szwedko
6928501973 Throw exception if an update is attempted on a stack in ROLLBACK_COMPLETE
If a stack has a status of ROLLBACK_COMPLETE and you attempt to update
it, the AWS API throws a validation error. This updates moto to have the
same behvaior. We also uncommented a test which tests updating a stack
which passed without any additional modification -- it is unclear why
this test was commented.

Signed-off-by: Jack Lund <jack.lund@getbraintree.com>
2016-04-28 09:30:42 -04:00
Steve Pulec
a600deb96a Fix merge conflicts and add EC2 Instance delete. Closes #576. 2016-04-28 09:22:31 -04:00
George Leslie-Waksman
0ed7d1bb71 Add support for src_version_id to bucket copy_key op. 2016-04-27 17:08:44 -07:00
Adam Romanek
b32fbf090a Fix security group ingress authorization for all protocols with no port spec 2016-04-26 11:00:04 +02:00
Steve Pulec
ecbb714757 Merge pull request #584 from minyoung/upsert-route53
Adding support for UPSERT'ing route53 records
2016-04-23 19:43:52 -04:00
Steve Pulec
6be53cf8c2 Merge pull request #594 from yannlambret/fix-security-groups
Fix security groups
2016-04-23 19:43:19 -04:00
Steve Pulec
224e92ba17 Merge pull request #592 from aiell0/hotifx/add-additional-instance-filters-issue-581
Added ec2 describe-instances filter: 'architecture'
2016-04-23 19:40:15 -04:00
Steve Pulec
1ff0aa4a65 Merge pull request #591 from vsudilov/feature/opsworks
Feature/opsworks
2016-04-23 19:39:34 -04:00
Steve Pulec
b6d5317b18 Merge pull request #590 from aiell0/hotfix/update-stack-response-issue-575
Fixes issue #575: cloudformation update_stack response ResponseParser…
2016-04-23 19:38:11 -04:00
Steve Pulec
419859b9be Merge pull request #585 from SplunkStorm/fix_s3_delete_path_rebase2
Fix multiple bugs encountered with boto3
2016-04-23 19:37:19 -04:00
Steve Pulec
2050d4ec84 Merge pull request #589 from leg100/add-trailing-slash-to-rrset-url
Add trailing slash to route53 rrset url path
2016-04-23 19:35:28 -04:00
Steve Pulec
1b4a9bd553 Merge pull request #588 from dhepper/elb_vpcs
Improved the ELBBackend
2016-04-23 19:34:40 -04:00
Yann Lambret
5a5f2f12c7 Remove useless statement 2016-04-22 19:12:26 +02:00
Yann Lambret
f9267cff6c Fix egress rules management to autorize or revoke a security group 2016-04-20 23:01:09 +02:00
Yann Lambret
de68c94a0a Add the default outboud rule for security groups 2016-04-19 23:50:46 +02:00
Yann Lambret
0882174126 Replace exception message by the one sent by boto, because it is used for bot ingress and egress rules 2016-04-19 23:50:12 +02:00
Lawrence Aiello
cf529ec3f9 Filter dicts have not been implemented in Moto for '%s' yet - mock_ec2 2016-04-18 16:41:57 -04:00
Vladimir Sudilovsky
768f1adb4f opsworks: py2.6 compat str.format 2016-04-18 16:36:30 -04:00
Vladimir Sudilovsky
1ce22068ea opsworks: impl start_instance, describe_instances 2016-04-18 15:44:21 -04:00
Lawrence Aiello
3017181862 Fixes issue #575: cloudformation update_stack response ResponseParserError. 2016-04-18 14:37:12 -04:00
Louis Garman
09df782447 Add trailing slash to route53 rrset url path 2016-04-18 17:12:54 +01:00
Vladimir Sudilovsky
09ca1b6e0c opsworks: impl create_instance 2016-04-15 15:44:38 -04:00
Vladimir Sudilovsky
2fe5b77861 opsworks: impl create_layers; describe_layers 2016-04-14 16:28:53 -04:00
Vladimir Sudilovsky
165bab0f97 opsworks: implement create_stack 2016-04-14 10:37:13 -04:00
Daniel Hepper
6eee995dcf Honor Tags when creating a load balancer 2016-04-14 15:50:51 +02:00
Daniel Hepper
de4dfaac55 Return default vpc when None given.
Restores default behaviour
2016-04-14 15:35:59 +02:00
Daniel Hepper
35a60fbf49 Removed unwanted whitespace 2016-04-14 14:48:57 +02:00
Daniel Hepper
ce3fdaa012 Implemented subnet handling in ELB backend
The ELB backend now honors the Subnets parameter in CreateLoadBalancer calls. When a load balancer is created with subnets, the VPC is also set to the VPC of the subnets.
2016-04-14 14:43:03 +02:00
Yann Lambret
c793e0a23d Filtering implementation for DHCP options sets 2016-04-13 23:19:46 +02:00
Declan Shanaghy
b152c00642 Fix multiple bugs encountered with boto3
* Fix path detection for deleting keys in S3 bucket
* Fix stack deletion ensure delete method exists on object
  * Previous tests were using a stack with no resources
* Fix DESCRIBE_STACK_RESOURCES_RESPONSE,
  * Previously untested code path
2016-04-12 13:58:17 -07:00
Min-Young Wu
826ba82f6e Adding support for UPSERT'ing route53 records 2016-04-12 10:51:21 -07:00
Steve Pulec
100ec4e7c8 Merge pull request #579 from roger-lai/instance-az-filter
Added availability-zone filtering to instance collections
2016-04-09 22:28:04 -04:00
Steve Pulec
608df89bde Merge pull request #578 from yannlambret/add-modify-subnet-attribute-support
Add support for 'ModifySubnetAttribute' action
2016-04-09 22:27:13 -04:00
Steve Pulec
3f61b9067b Merge pull request #577 from beeva-antonioirizar/cloudwatch_datetime
Add datetime to cloudwatch's alarms
2016-04-09 22:26:22 -04:00
RogerLai
d759f3a1ad Added availability-zone filtering to instance collections 2016-04-05 12:55:38 -04:00
Yann Lambret
6d4a48b019 Add support for 'ModifySubnetAttribute' action 2016-04-05 00:17:56 +02:00
beeva-antonioirizar
7540b5f6a6 add datetime to cloudwatch, it had in template's response but it didn't have in model and boto3 need it to work correctly 2016-04-04 15:27:34 +02:00
Jesse Vera
86b86fc066 Fixed DynamoDB 'IN' comparison function 2016-03-29 16:26:46 -05:00
Steve Pulec
1ece813131 Merge pull request #570 from digital-abyss/feature/add-private-ip-filter
Add ip-address and private-ip-address to the list of filters for instance filtering
2016-03-28 23:53:16 -04:00
Steve Pulec
fecbeb28a4 Merge pull request #567 from im-auld/query-filters-issue-164
Query filters issue 164
2016-03-28 23:52:49 -04:00
Steve Pulec
092e1b1e53 Merge pull request #566 from dmitryzv/feature-ddb-query-add-scannedcount
Added ScannedCount field to DynamoDB query response.
2016-03-28 23:51:27 -04:00
igartley
4bfb522020 Add ip-address and private-ip-address to the list of filters for
instance filtering.

These are described in
http://boto3.readthedocs.org/en/latest/reference/services/ec2.html#EC2.Client.describe_instances

and map to the instance methods of public_ip() and private_ip()
respectively
2016-03-22 18:11:20 -04: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
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
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
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
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
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
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
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
Steve Pulec
274a7f48a2 Merge pull request #549 from beeva-antonioirizar/remove_nexttoken_list_function
remove NextMarker in response list_functions (Lambda)
2016-02-27 20:28:24 -05:00
Steve Pulec
b719032279 Merge pull request #546 from scttl/sqs_attribs_fix
boto3 SQS set attributes fix.
2016-02-27 20:27:33 -05:00
Steve Pulec
7ec468b988 Merge pull request #545 from beeva-antonioirizar/cloudwatch_support_multiple_regions
Cloudwatch support multiple regions
2016-02-27 20:26:47 -05:00
Steve Pulec
941d057146 sort querystring so that tags will get matched up properly for later zip. Closes #541. 2016-02-27 20:22:46 -05:00
beeva-antonioirizar
143a8f85ee remove NextMarker in response list_functions 2016-02-23 17:34:49 +01:00
Scott Leishman
3fd33c03bf boto3 SQS set attributes fix. 2016-02-19 23:32:01 -08:00
beeva-antonioirizar
4bbd2a11a7 Cloudwatch support multiple regions 2016-02-18 18:35:32 +01:00
Steve Pulec
a9d161e58e 0.4.22 2016-02-17 16:44:57 -05:00
Steve Pulec
e051fa779d Merge pull request #544 from beeva-antonioirizar/fix_route53
Fix route53
2016-02-17 16:43:33 -05:00
Hugo Lopes Tavares
8f586d8637 [lambda] Use S3Key to figure out code size and SHA256 2016-02-17 16:24:17 -05:00
Hugo Lopes Tavares
39a57195a2 [lambda] Make JSON load python 3-compatible 2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
2d744c6626 [lambda] Do not duplicate defaults for LambdaFunction objects.
The duplication caused a bug before and this commit is a bugfix and will prevent similar bugs in the future.
2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
ac66a8eb87 [lambda] Change string format to use {0} instead of {} 2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
482751f731 [lambda] Add S3 validation for Code["S3Bucket"] and Code["S3Key"].
TODO: validate region.
2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
7c36fca1dd [lambda] Add VpcConfig to the responses 2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
5f7ea2b77f [lambda] Fix HTTP code of CreateFunction 2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
5a29ec4986 [lambda] Add support to upload functions with ZipFile 2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
75c6f6f660 [lambda] Make NextMarker a real UUID 2016-02-17 16:13:57 -05:00
Hugo Lopes Tavares
ca3babc606 [lambda] Add comment about Publish parameter 2016-02-17 16:13:57 -05:00
Hugo Lopes Tavares
576b9f683c [lambda] Add CloudFormation support for AWS::Lambda::Function 2016-02-17 16:13:57 -05:00
Hugo Lopes Tavares
bfad9b9ed6 [lambda] Implement ListFunctions, GetFunction, and DeleteFunction 2016-02-17 16:13:57 -05:00
beeva-antonioirizar
84753aeac5 fix name method in the last commit 2016-02-17 17:44:20 +01:00
beeva-antonioirizar
b91596db32 add responses for methods don't have implemented in route53 2016-02-17 17:36:55 +01:00
beeva-antonioirizar
a621c83bf7 Comment's params is optional in create_hosted_zones. It is fix to support and templates adapted to it. 2016-02-17 15:32:38 +01:00
beeva-antonioirizar
1ac40cbaf6 add private zone in templates. Because it should have. It is always to False because it doesn't support for private zones. 2016-02-17 15:24:11 +01:00
beeva-antonioirizar
1448cf3541 add Istruncated to False in template list_hosted_zones_response in route53. Because it always has it. 2016-02-17 15:14:59 +01:00
beeva-antonioirizar
d8ed18aaac add tag (<DescribeAlarmsResult>) to describe_alarms_template. Because it is miss and it can't work with boto3 2016-02-15 13:02:04 +01:00
Steve Pulec
63296049f1 More explicit SQS message checking. Closes #519. 2016-02-14 17:10:17 -05:00
Steve Pulec
b9df567445 Merge pull request #536 from andyjones/task/ec2-placement
Support placement when starting new instances
2016-02-14 16:54:05 -05:00
Steve Pulec
117a79e103 Merge pull request #535 from beeva-antonioirizar/master
Add method describe_clusters and fix create_cluster,  list_clusters, list_task_definitions,  list_services for service ecs
2016-02-14 16:53:26 -05:00
Steve Pulec
ccc1cb42dd Merge pull request #534 from ianfdk/master
Add SWF's list_open_workflow_executions and list_closed_workflow_executions
2016-02-14 16:50:53 -05:00
Steve Pulec
800f2403cf Merge pull request #533 from kevgliss/boto3DescribeInstancesSecurityGroups
Ensuring boto3 can correctly identify instance security groups
2016-02-14 16:47:01 -05:00
Steve Pulec
76941dc48d Merge pull request #531 from kevgliss/launchConfig
Adding additional params to response
2016-02-14 16:46:08 -05:00
andy
7120b5e4b1 Support placement when starting new instances 2016-02-10 17:59:48 +00:00
beeva-antonioirizar
d13199ba06 remove nextToken if the library doesn't support pagination, because it doesn't send nextToken if it doesn't exceed maxResults. See documentation http://docs.aws.amazon.com/cli/latest/reference/ecs/list-clusters.html 2016-02-09 18:08:55 +01:00
beeva-antonioirizar
e7d469f21d when create_cluster without name it should create a cluster with name default. Reference documentation http://docs.aws.amazon.com/cli/latest/reference/ecs/create-cluster.html 2016-02-09 17:03:25 +01:00
beeva-antonioirizar
f89721328a add method describe_clusters for service ecs 2016-02-09 16:59:16 +01:00
Ian Fillion-de Kiewit
4e0affc734 Fix date validation 2016-02-08 10:33:33 -05:00
Ian Fillion-de Kiewit
7fd3daa524 Fix python 3.3 tests 2016-02-08 10:14:07 -05:00
Ian Fillion-de Kiewit
0fa7f83270 Fix time checking and tests 2016-02-05 17:33:33 -05:00
Ian Fillion-de Kiewit
2389b95ee6 remove leftover ipdb 2016-02-05 15:38:36 -05:00
Ian Fillion-de Kiewit
d31105889e Add list_closed_workflow_executions and make validation/filtering on list_open_workflow_executions better 2016-02-05 15:35:46 -05:00
kevgliss
c5016d9ddb ensuring boto3 can correctly identify instance security groups 2016-02-04 16:03:20 -08:00
Ian Fillion-de Kiewit
93120927f7 Add list_open_workflow_executions endpoint 2016-02-04 17:14:33 -05:00
kevgliss
3ce6627826 adding additional params 2016-02-03 15:38:58 -08:00
gigimon
1ff24981ee * add filter by instance-id for describeAdresses 2016-02-03 18:05:25 +03:00
gigimon
cd062fc5fa * fix one place 2016-02-03 14:53:18 +03:00
Ian Fillion-de Kiewit
129b4faff8 Fix style issues 2016-02-02 14:02:37 -05:00
gigimon
52eb16d765 * change api version to 2013-10-15 2016-02-02 16:15:18 +03:00
Steve Pulec
ac4ce7d53f 0.4.21 2016-01-24 17:21:19 -05:00
Steve Pulec
31dbe61233 Fix s3 url regex. Closes #516. 2016-01-24 17:15:21 -05:00
Steve Pulec
eba9033cc9 cleanup flask paths with trailing slashes. 2016-01-24 17:13:32 -05:00
Steve Pulec
a7938ed9ec Fix s3 url regex to ensure path-based bucket and key does not catch. 2016-01-24 16:33:50 -05:00
Steve Pulec
f35986b3fc Merge pull request #517 from DenverJ/volume_snapshot_filters
Add filter for volume-id on volumes.
2016-01-24 16:19:55 -05:00
Daniel Miller
35a89da273 Fix delete keys with werkzeug request 2016-01-22 12:44:57 -05:00
Daniel Miller
89d5c72d86 Fix delete keys detection with werkzeug request 2016-01-22 12:44:12 -05:00
Denver Janke
ee33ff582c Add filter for volume-id on volumes. 2016-01-20 12:24:33 +10:00
Steve Pulec
595259a99d 0.4.20 2016-01-17 18:11:00 -05:00
Steve Pulec
a53a97d136 Cleanup SWF to use HTTP exceptions so that the standalone server will work. Closes #495. 2016-01-17 18:00:57 -05:00
Steve Pulec
075d008509 Change s3 urls to ordereddict to fix python3 issues. 2016-01-17 17:19:53 -05:00
Steve Pulec
fe090d7bb5 Merge pull request #487 from a1exsh/bugfix/include-load-balancer-name-in-describe-tags-response
Fix ELB.describe_tags with multiple LoadBalancerNames.
2016-01-17 16:34:20 -05:00
Steve Pulec
0535f445be Merge pull request #471 from spulec/combined-s3
Combined s3
2016-01-17 16:32:08 -05:00
Steve Pulec
ea097791cb Merge pull request #512 from kevgliss/sgEgressPermissions
Adds support for authorizing and revoking egress permissions
2016-01-17 15:46:53 -05:00
Steve Pulec
9596772546 Merge pull request #510 from pcraciunoiu/feature/dynamodb-add-value
Add value and UPDATE fixes
2016-01-17 15:40:07 -05:00
kevgliss
093a64c1c8 adding error checking on cidrs 2016-01-15 12:57:43 -08:00
kevgliss
6bc4a8b38a Adds support for authorizing and revoking egress permissions 2016-01-15 12:36:11 -08:00
Paul Craciunoiu
aacdde7adc When hash/range key overlap, fix query logic. 2016-01-15 11:53:45 -07:00
Paul Craciunoiu
4e9f4bfbbf Fix for ReturnValues. 2016-01-15 11:53:45 -07:00
Paul Craciunoiu
bdd4ae824b Support ADD for numeric values 2016-01-15 11:53:43 -07:00
Paul Craciunoiu
88cd009c4d Return Item even when item is not found. 2016-01-14 16:20:33 -07:00
Ian Auld
9400cc3ba4 Added LocalSecondaryIndexes to describe property 2016-01-14 11:30:18 -08:00
Ian Auld
5c7f01ab29 Merge branch 'master' into Bug-Fix-Secondary-Indexes-Ignored 2016-01-13 15:29:59 -08:00
Ian Auld
3cbaed9734 Added support for local senondary indexes in DynamoDB2 2016-01-13 15:27:02 -08:00
Steve Pulec
defd106523 Merge pull request #506 from DenverJ/volume_snapshot_filters
Add filters for describeVolumes and describeSnapshots.
2016-01-11 13:30:56 -05:00
Paul Craciunoiu
f3c1e21391 Delete missing attribute results in KeyError. 2016-01-11 11:16:15 -07:00
Denver Janke
82b0b12e45 Add filters for describeVolumes and describeSnapshots. 2016-01-11 15:46:30 +10:00
Steve Pulec
35478f3a44 Fix AZs for run_instances. Closes #490. 2016-01-10 00:54:53 -05:00
Steve Pulec
96479bf1dc Merge pull request #505 from joshink/master
Reverse before limit
2016-01-10 00:31:13 -05:00
Joshua Inkenbrandt
33f31652ea Reverse before limit 2016-01-09 17:58:06 -08:00
Paul Craciunoiu
c9f43c885a Support Select=COUNT when querying. 2016-01-08 17:35:14 -07:00
Paul Craciunoiu
f5406ad212 Handle delete updates. 2016-01-08 17:34:53 -07:00
Paul Craciunoiu
f1099dd006 Support update_item with map and numeric types. 2016-01-08 17:33:14 -07:00
Steve Pulec
9b0bce93dc Merge pull request #499 from im-auld/partial-save-support-with-range-key
Partial save support with range key
2016-01-08 17:23:04 -05:00
Steve Pulec
f7c775d7ab Revert this solution in favor of fc0fb0d40e. 2016-01-08 17:03:54 -05:00
Steve Pulec
3a2eedc03c Merge pull request #494 from jbencook/BasicECS
Basic ECS support
2016-01-08 17:02:40 -05:00
Steve Pulec
fc0fb0d40e Fix default ASG health check period. 2016-01-08 16:56:10 -05:00
Steve Pulec
d2302bae21 Add Customer Gateway Support. Closes #465 2016-01-08 16:48:01 -05:00
Steve Pulec
d6d6ff56af Merge pull request #486 from pcraciunoiu/feature/dynamodb-query-index
Add query index support for boto3 via dynamodb2
2016-01-08 16:41:55 -05:00
Ian Auld
33f023fdaf Added comments for clarity 2015-12-31 10:46:54 -08:00
Ian Auld
a0ed89c92d Added support for partial_save on tables with a hash and range key; Issue #498 2015-12-31 10:28:06 -08:00
Steve Pulec
6a13e0e226 Merge pull request #489 from gilzellner/master
fix issue 488
2015-12-21 15:19:57 -05:00
Steve Pulec
42423f47e7 Merge pull request #466 from EarthmanT/support_get_all_dhcp_options_set
Adding Support for Get All DHCP Options
2015-12-21 15:18:41 -05:00
Steve Pulec
39fef4d367 Merge pull request #468 from EarthmanT/add_support_for_vpn_connections
Adding Support for VPN Connections
2015-12-21 15:18:05 -05:00
jbencook
3d6d3bfa27 python3 fixes 2015-12-17 17:43:16 +00:00
jbencook
3737b39e15 create, list, delete for cluster, task and service 2015-12-17 17:13:00 +00:00
jbencook
5aca483849 Fix default HealthCheckGracePeriod 2015-12-15 18:58:53 +00:00
Paul Craciunoiu
2cea05bd19 More support for GSI
* Support query via multiple KeyConditionExpressions
* Support GSI updates via table.update()
2015-12-14 15:42:18 -07:00
gilzellner
d273fa15f3 fix issue 488 2015-12-14 15:38:40 +02:00
Oleksandr Shulgin
1ed5f50d56 Fix ELB.describe_tags with multiple LoadBalancerNames. 2015-12-14 12:38:10 +01:00
Paul Craciunoiu
4fa7d6283d Add query index support. 2015-12-13 23:16:25 -07:00
Steve Pulec
5d421dc343 Cleanup querying missing ELB error. 2015-12-13 22:41:17 -05:00
Steve Pulec
cac88cf3e3 Merge pull request #482 from silveregg/master
Add new endpoints to ELB (fix #479)
2015-12-13 21:50:26 -05:00
mfranke
73467e3b71 fix format 2015-12-10 18:22:03 +01:00
mfranke
faee9e2d72 fix 2015-12-09 23:04:34 +01:00
mfranke
bc89e7eedc compatibility fix for python 2.6.9 2015-12-09 22:25:59 +01:00
Marco Rucci
c8b7511341 Manage instances of ELBs attached to autoscaling group. 2015-12-09 21:40:48 +01:00
mfranke
5d47aa8c84 add AddTags, RemoveTags and DescribeTags endpoints to ELB 2015-12-09 21:30:40 +01:00
Marco Rucci
284641e8cf Add support for default VPCs and subnets.
The first VPC created will be elected as default.
All subnets of the default VPC are considered default for their availability zone.
2015-12-06 20:58:54 +01:00
Steve Pulec
be3291b758 Merge pull request #475 from silveregg/master
Add Kinesis API and fix some typo
2015-12-05 21:04:41 -05:00
root
89e46d87bd fix unicode encoding 2015-12-05 12:42:57 +00:00
root
b2af81eab5 use six.string_types instead of basestring 2015-12-05 12:39:03 +00:00
root
6eaea9aa6e fix integer division for Py3 2015-12-05 12:31:58 +00:00
root
480a30e922 fix for python 3 compatibility 2015-12-05 11:27:16 +00:00
root
80688ea2b2 - implement basic sharding scheme
- add API for merge_shards and split_shard
 - add some parater typ checking for put_record(s)
2015-12-05 11:13:34 +00:00
root
fca96c935d exception must be raise instead returning a response 2015-12-04 08:56:49 +00:00
Steve Pulec
587893f0c7 Duplicate user needs to be EntityAlreadyExists error code. 2015-12-03 21:59:55 -05:00
Steve Pulec
3a38a2a1a7 Cleanup IAM exceptions. Closes #476. 2015-12-03 20:56:28 -05:00
Chris Henry
e59a0b7fa9 Remove debug print statements 2015-12-03 11:24:55 -05:00
root
70171e8ef9 Merge https://github.com/spulec/moto 2015-12-03 11:57:34 +00:00
root
03cd1e47c1 add kinesis API:
- AddTagsToStream
 - ListTagsForStream
 - RemoveTagsFromStream
2015-12-03 11:53:57 +00:00
earthmant
c5bf9d8c94 replacing the usage
of dhcp_opt_ids_from_querystring with sequence_from_querystring
2015-12-03 13:49:08 +02:00
earthmant
76a939cee6 making requested fix
used sequence_from_querystring and removed added functon vpn_connection_ids_from_query_string
added tests
2015-12-03 13:35:48 +02:00
Chris Henry
6017a481cf Initial implementation of elb scheme 2015-12-02 17:46:24 -05:00
Steve Pulec
1bca6f2849 Merge pull request #473 from jszwedko/add-kms-policy-actions
Add KMS policy actions
2015-11-30 13:31:45 -05:00
Steve Pulec
44f0377cc4 Fix root volume to show up in other EC2 volume API calls. Closes 470 2015-11-28 09:19:45 -05:00
Akira Chiku
0c910864d3 Use requests.header instead of plain dict 2015-11-28 19:26:17 +09:00
Akira Chiku
9b3fa83730 Use content-type for detecting client 2015-11-28 19:25:10 +09:00
Akira Chiku
d6af1b9ae5 Merge remote-tracking branch 'upstream/master' 2015-11-28 18:50:32 +09:00
Steve Pulec
704110d9c7 0.4.19 2015-11-27 14:46:50 -05:00
Steve Pulec
0df03ba409 cleanup code. 2015-11-27 14:43:03 -05:00
Steve Pulec
1df454a632 first working version of s3 refactor. 2015-11-27 14:14:59 -05:00
Steve Pulec
705ec314a3 Cleanup different places using unix_time() 2015-11-27 14:14:40 -05:00
Steve Pulec
eabcb3d39c Merge pull request #451 from botify-labs/feature/add-swf
[wip] Add SWF support
2015-11-26 09:50:01 -05:00
Steve Pulec
025445d23e Merge pull request #467 from EarthmanT/support_default_filter_network_acl
Support Associate NetworkACL and Filtering in Describe
2015-11-26 09:41:13 -05:00
Andrew Garrett
136f622b3b Add KMS policy actions
Adds the following to the KMS service
* PutKeyPolicy
* GetKeyPolicy
* ListKeyPolicies

Signed-off-by: Jesse Szwedko <jesse.szwedko@getbraintree.com>
2015-11-25 19:50:55 +00:00
earthmant
39c3c5c8aa Adding Support for VPN Connections
support create, delete, describe
2015-11-25 16:38:02 +02:00
earthmant
41873b59f7 Adding Support for Get All DHCP Options
add DescribeDhcpOptionsResponse
support filtering describe_dhcp_options
add get_all_dhcp_options
2015-11-25 11:50:58 +02:00
Andrew Garrett
f1566cecf4 Add support for KMS key rotation operations
This adds support for the following KMS endpoints:

* EnableKeyRotation
* DisableKeyRotation
* GetKeyRotationStatus

Signed-off-by: Jesse Szwedko <jesse.szwedko@getbraintree.com>
2015-11-24 23:44:55 +00:00
earthmant
18fe3e41e9 Support default ACL in a VPC
a vpc usually has a default acl
this makes sure that moto flags it
and that the describe response has it in there
2015-11-23 18:07:51 +02:00
Jean-Baptiste Barth
566a90800e Make SWF events formatting more generic
(suggested in @spulec review)
2015-11-23 14:52:16 +01:00
earthmant
4b59c6b907 Support Associate Network ACL
add the new_association_id property to NetworkACL object so that the template render for replace adds the ID and the associate_network_acl receives a response
2015-11-23 15:16:46 +02:00
Jean-Baptiste Barth
a06f8b15f5 Add moto.core.utils.underscores_to_camelcase() 2015-11-23 14:09:31 +01:00
Jean-Baptiste Barth
45437368b2 Move SWF type checks to response object
(suggested in @spulec review)
2015-11-23 12:41:44 +01:00
Jean-Baptiste Barth
78ea7967ad Remove overriden SWFResponse.call_action() thanks to 32dd72f
Not necessary anymore: 32dd72f6b7
2015-11-19 11:46:54 +01:00
Jean-Baptiste Barth
26980f41a6 Replace globals() call with a static mapping
(suggested in @spulec review)
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
6b581edb55 Use datetime.utcnow() instead of datetime.now()
(suggested in @spulec review)
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
5f0684fca5 Use dict.values() instead of dict.items() where possible
(suggested in @spulec review)
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
de646cf7ac Fix python 3 compatibility: filter() returns an iterator now 2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
248975d4e6 Improve SWF timeouts processing: now processed in order, one by one 2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
7f2cbb79b0 Refactor SWF workflow execution to ease next timeout change 2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
6027bf15c1 Move some timeout conditionals to concerned models 2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
d007dfe3ff Remove process_timeouts() method in favor of timeout(<Timeout>) and a helper for tests 2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
65c35bfa69 Make timeout events appear at the right time in workflow history 2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
d618585790 Refactor timeouts processing so it will be easier to compute them in order 2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
61bb550052 Ensure activity and decision tasks cannot progress on a closed workflow
This is a second barrier because I'm a little nervous about this and I
don't want moto/swf to make any activity progress while in the real
world service, it's strictly impossible once the execution is closed.
Python doesn't seem to have any nice way of freezing an object so here
we go with a manual boundary...
2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
65c95ab5bc Ensure activity and decision tasks cannot timeout on a closed workflow 2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
9c3996ff58 Add WorkflowExecution.open to clarify code in some places 2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
f38d23e483 Implement start to close timeout on SWF workflow executions 2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
86973f2b87 Implement start to close timeout on SWF decision tasks 2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
b386495520 Use list comprehensions instead of filter() for easier moto/swf python 3.x compatibility 2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
3a5f679783 Fix python 3.3 compatibility in moto/swf regarging string types detection 2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
c0b4aadd92 Fix python 3.x compatibility regarding json loading
Error on travis-ci was:

    TypeError: can't use a string pattern on a bytes-like object
2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
2cd3d5fb45 Fix python 3.x compatibility regarding iterations on a dict
Error on travis-ci was:

    AttributeError: 'dict' object has no attribute 'iteritems'

And actually it's been removed in python 3.x in favor of dict.items()
2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
e9732140e5 Fix python 2.6 compatibility for moto/swf 2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
90c8797abd Implement heartbeat timeout on SWF activity tasks 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
f576f3765c Add SWF endpoint RecordActivityTaskHeartbeat 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
804d2e91b5 Improve workflow selection before raising a WorkflowExecutionAlreadyStartedFault 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
96d6bb056b Add SWF endpoint TerminateWorkflowExecution 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
98948a01c8 Add missing attributes in DescribeWorkflowExecution responses 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
fd12e317f8 Add SWF endpoint RespondActivityTaskFailed 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
c9e8ad03f8 Add SWF endpoint RespondActivityTaskCompleted 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
08643945df Add SWF endpoint CountPendingActivityTasks 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
761ab816f9 Add SWF endpoint PollForActivityTask 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
d650f71d9c Simplify decision task handling in SWF backend 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
be71909a8c Rework task lists for activity/decision tasks 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
83c08b7655 Remove unused import 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
a713005882 Simplify implementation of ScheduleActivityTask decision 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
5e086223c2 Implement ScheduleActivityTask decision 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
53630dc061 Add a Domain to WorkflowExecution objects
This will be needed later for finding an activity type for instance.
2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
fa4608be98 Add basic ActivityTask model 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
49e44c8ee6 Fix openDecisionTasks counter not updated when we complete a DecisionTask 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
918cf8a4e3 Fix decision parameters: attributes are in foo*Decision*Attributes 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
417f732b53 Implement FailWorkflowExecution decision 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
6810973b76 Update obsolete comment about SWF decisions completion 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
558b84fb6a Add checks for *DecisionAttributes within RespondDecisionTaskCompleted 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
507351612e Fix missing space in decision validation error 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
0749b30fb4 Add some basic checks on SWF decisions, more to come later 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
381eb5eb0f Implement CompleteWorkflowExecution decision 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
d97c770849 Add first version of SWF endpoint RespondDecisionTaskCompleted
There's just the structure for now, for now the workflow execution
doesn't know how to handle any decision type.
2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
c72c198208 Fix WorkflowExecution event ids not increasing 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
a137e5c5c9 Add SWF endpoint CountPendingDecisionTasks 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
4e223d2318 Fix PollForDecisionTask not respecting requested task list 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
1ccadb169f Simplify WorkflowExecution model since it always has a task list 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
c310a04c74 Remove obsolete command about DefaultUndefinedFault
(already implemented a few commits ago)
2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
aa4adbb76e Implement reverseOrder option for GetWorkflowExecutionHistory and PollForDecisionTask 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
c16da9da2d Add SWF endpoint PollForDecisionTask and associated DecisionTask model 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
464aef293c Add SWF endpoint GetWorkflowExecutionHistory and associated HistoryEvent model 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
3ce5b29356 Handle WorkflowExecution/WorkflowType options inheritance
... and potential resulting DefaultUndefinedFault errors.
2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
1026fb819f Split SWF models into their own file
Given the docs[1] we will implement a hundred models or so if we want to
have a full implementation of the SWF API, so better not have a 3k lines
long models.py file, too hard to manipulate.

[1] http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DecisionTask.html
2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
2878252816 Add SWF endpoint: DescribeWorkflowExecution 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
a589dc08b5 Make workflow_id a required property of WorkflowExecution
Given the response of DescribeWorkflowExecution endpoint, the
WorkflowExecution has to know about its own workflowId.
2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
c08c20d197 Move SWF Domain full dict representation to model 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
92cf64c2ad Add SWF endpoint: StartWorkflowExecution 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
fbcdd5f2bd Use dict[] to document required keys in SWF responses 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
168f61c6a8 Remove useless usage of templating in SWF responses implementation 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
036ab194ba Add 'status' to SWF *Type string representation 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
8b02c0b85e Move *Type __repr__ to GenericType 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
080b79338d Simplify how we store SWF types inside a SWF domain 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
5c02fcd94b Abstract away SWF *Type models logic into a GenericType class 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
9483355584 Prepare SWF objects representations directly via json.dumps()
... instead of jinja2 templates that are absolutely not suited for this
purpose, and hard to test.
2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
6e6b325225 Deduplicate logic between ActivityType's and WorkflowType's 2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
c4e903706c Add SWF endpoints: RegisterWorkflowType, DeprecateWorkflowType, ListWorkflowTypes, DescribeWorkflowType 2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
b680b2ec3c Add SWF endpoints: RegisterActivityType, DeprecateActivityType, ListActivityType, DescribeActivityType 2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
cb46eac513 Implement naive reverseOrder option for SWF's ListDomains endpoint 2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
3e2c7dec83 Fix json template for listing SWF domains 2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
2c3b286b6b Improve SWF Domain representation 2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
49bbd7399e Add some TODO comments in SWF mocks 2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
5392978eaf Check parameters are strings on SWF endpoints
SWF endpoints raise a 400 Bad Request for non-string types, and boto
doesn't enforce it as of today, so better have some safety nets in moto
to avoid this common mistake.

Example exception raised by Boto:

    SWFResponseError: SWFResponseError: 400 Bad Request
    {u'Message': u'class java.lang.Short can not be converted to an String',
    u'__type': u'com.amazon.coral.service#SerializationException'}
2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
8e3fd6c7de Add SWF endpoints: RegisterDomain, DeprecateDomain, ListDomains, DescribeDomain 2015-11-19 11:45:20 +01:00
mfranke
7220969feb typo 2015-11-17 18:18:02 +01:00
Akira Chiku
7a11500171 Implement JSON responses for EMR (for Boto3) 2015-11-15 17:24:36 +09:00
Steve Pulec
32dd72f6b7 Change BaseResponse action parsing to be a bit more generic.
Some service like SWF have action headers like
com.amazonaws.swf.service.model.SimpleWorkflowService.<action>. By using
-1 instead of 1, we can accomodate both scenarios.
2015-11-14 13:42:22 -05:00
mfranke
f93b9a86e9 add put_records API
fix create_stream API to get right response in case of stream already exists
2015-11-12 10:05:02 +01:00
Steve Pulec
4aa14960d2 Add support for partial updates and SS in dynamodb. 2015-11-11 21:59:55 -05:00
Steve Pulec
c38731ecbb Add ACL support for S3 buckets. 2015-11-11 20:26:29 -05:00
Ian Dees
27e7767883 Remove stuff that doesn't need to change 2015-11-09 20:19:51 -05:00
Ian Dees
97b7781c13 Include XML response template 2015-11-09 20:09:08 -05:00
Ian Dees
f8cbcfc098 How about in the SQSResponse object 2015-11-09 20:03:52 -05:00
Ian Dees
b732e116a4 Try the length of the body 2015-11-09 19:53:14 -05:00
Ian Dees
540ee79ad9 Put the size check in the queue 2015-11-09 19:51:17 -05:00
Ian Dees
5b2a724219 Check SQS message size 2015-11-09 19:29:08 -05:00
Steve Pulec
ab3682a55c py3 fix. 2015-11-07 16:58:39 -05:00
Steve Pulec
8d41d0019b Add basic support for AttributeUpdates in Dynamo update_item. Closes #449. 2015-11-07 16:45:24 -05:00
Steve Pulec
18d63a6cfe Add basics of S# website configuration. Closes #442. 2015-11-04 18:55:41 -05:00
Steve Pulec
0061eb77d7 0.4.18 2015-11-03 14:01:09 -05:00
Steve Pulec
cddf139bbc Add ability to create EBS volumes from snapshots. Closes #447. 2015-11-03 09:37:02 -05:00
Steve Pulec
d3e4c2c4b5 Add ability for specific backends to enable template escaping. Closes #441. 2015-11-03 09:25:47 -05:00
Steve Pulec
73452c79f7 Add milliseconds to EC2 launch time. Closes #445. 2015-11-02 23:33:39 -05:00
Steve Pulec
d9faab3e5e Fix error for describing kinesis stream that has not been created. 2015-11-02 13:25:31 -05:00
Steve Pulec
99a4bcf98f 0.4.17 2015-11-02 10:11:14 -05:00
Steve Pulec
fcaa8fbce7 0.4.16 2015-11-02 10:09:17 -05:00
Steve Pulec
1d58aae42a Merge pull request #438 from ZuluPro/instancetypes
Added describe instance types
2015-11-01 14:30:32 -05:00
Steve Pulec
976c470fa3 Merge pull request #443 from gvlproject/master
When adding security group rules, allow a source group only to be spe…
2015-11-01 14:25:42 -05:00
Steve Pulec
1b1cf40af8 handle optional compression format. 2015-10-30 14:18:29 -04:00
Steve Pulec
1c95de421d Merge pull request #446 from spulec/firehose
firest draft of firehose support.
2015-10-30 10:55:25 -04:00
Steve Pulec
7fcf84b32a easier fallback. 2015-10-30 10:13:57 -04:00
Steve Pulec
127625bdc3 fix typo. 2015-10-30 10:10:49 -04:00
Steve Pulec
015e7ea9a2 py3 fix. 2015-10-30 10:05:53 -04:00
Steve Pulec
ac1bb336c8 firest draft of firehose support. 2015-10-30 09:59:57 -04:00
Enis Afgan
e07894c6e4 When adding security group rules, allow a source group only to be specified - as per boto docs & functionality 2015-10-29 07:27:35 +01:00
Yoriyasu Yano
f0cc561aa7 Use correct kwarg when creating database 2015-10-20 09:12:59 -07:00
Steve Pulec
3622fd172e Merge pull request #437 from gvlproject/master
Set snapshots to be in a completed state after being created and added
2015-10-17 23:10:14 -04:00
nuwan_ag
0b3ad166c0 Set snapshots to be in a completed state after being created and added
test case
2015-10-14 02:34:36 +11:00
Mike Kaplinskiy
131d44f0ad Add S3 ACL supprt. 2015-10-07 00:14:37 -07:00
Steve Pulec
96cf5eabc4 Merge pull request #434 from milesoc/master
Add tag support on create/read for autoscaling groups
2015-10-06 20:29:05 -04:00
Steve Pulec
11cb2fba16 0.4.15 2015-10-06 15:20:21 -04:00
milesoc
b3096af098 Set tags in response, fix tests for tags 2015-10-06 18:07:58 +00:00
Miles O'Connell
3c38a551b2 Adding tags to AutoScalingGroups 2015-10-06 09:21:26 -07:00
Steve Pulec
123d1e3965 Merge pull request #431 from araines/master
Fixes #430: MD5 hashing should be done to the real body, not an escaped one
2015-10-05 18:28:34 -04:00
Steve Pulec
37f86626cc Merge pull request #425 from ZuluPro/random_key_pair
Remade ec2.utils.random_key_pair for be really random
2015-10-05 18:25:17 -04:00
Steve Pulec
507c03a0c7 Merge pull request #424 from ZuluPro/keypairs
Implemented import key pair
2015-10-05 18:24:21 -04:00
Hugo Lopes Tavares
e5675e9533 Change CloudFormationResponse.get_template() to return GetTemplateResponse/GetTemplateResult/TemplateBody 2015-10-05 15:21:30 -04:00
Andy Raines
76bce7954a Fixes #430: MD5 hashing should be done to the real body, not an escaped one 2015-10-05 14:14:56 +01:00
ZuluPro
b85b415977 Implemented import key pair 2015-09-24 17:34:08 +02:00
Anthony Monthe
0999a49b5b Added describe instance types 2015-09-23 14:50:47 +02:00
Steve Pulec
f72613cc47 Fix queue urls for other regions. Closes #411. 2015-09-19 09:18:16 -04:00
Steve Pulec
bee2b5a891 Merge pull request #414 from 2mf/master
DynamoDB2 is overwriting the table instead of returning an error
2015-09-19 09:05:08 -04:00
Steve Pulec
5a8f3bd616 Merge pull request #412 from ybastide/master
Tweak ResponseObject to let bucket.delete_keys work with s3bucket_path.
2015-09-19 09:04:17 -04:00
Steve Pulec
d58afc13fd Merge pull request #413 from jszwedko/master
Add support for latency based route53 records
2015-09-19 09:03:38 -04:00
Steve Pulec
967c778390 0.4.14 2015-09-17 17:21:57 -04:00
Hugo Lopes Tavares
dafddb094b Implement CloudFormation's physical_resource_id for Data Pipeline 2015-09-17 15:29:14 -04:00
Hugo Lopes Tavares
8623483c0f Change data pipeline responses to start with lowercase characters 2015-09-17 15:26:35 -04:00
Steve Pulec
65dd7f7639 Change fields to be start with lower case based on examing of real AWS calls. 2015-09-16 18:13:44 -04:00
Hugo Lopes Tavares
25f9e8b588 Change CloudFormation to support Data Pipelines 2015-09-16 17:49:13 -04:00
Hugo Lopes Tavares
0cef332840 Add support to ListPipelines 2015-09-16 15:49:15 -04:00
Steve Pulec
1b811e6949 0.4.13 2015-09-16 11:29:03 -04:00
Steve Pulec
db23b7d24c Fix state to start as PENDING and only become SCHEDULED on activation. 2015-09-16 11:22:52 -04:00
Steve Pulec
b0ea9f2859 Fix tests for server mode. 2015-09-16 10:11:43 -04:00
Steve Pulec
95169c6011 First version of datapipelines. 2015-09-16 10:00:38 -04:00
ZuluPro
23c2e7835e Remade ec2.utils.random_key_pair for be really random 2015-09-15 20:09:35 -04:00
Michael
31d30c8ea4 return the correct response tryin to re-create a table 2015-09-10 11:31:46 +02:00
Jesse Szwedko
14ec3531ff Add support for latency based route53 records
Store and marshal the region field of records

Signed-off-by: Kevin Donnelly <kevin.donnelly@getbraintree.com>
2015-09-08 21:36:32 +00:00
zeb
b59a77d5bb Tweak bucket.delete_keys for s3bucket_path. 2015-09-04 19:02:26 +02:00
Steve Pulec
8b0f42afed 0.4.12 2015-08-31 16:56:07 -04:00
Steve Pulec
1dcfcbca57 Add cloudformation tags. 2015-08-31 16:48:36 -04:00
Dustin J. Mitchell
00e40c487e Return messages once they are gathered
If one or more messages are available, stop waiting and return them.
2015-08-31 11:27:42 -04:00
Steve Pulec
b55600ce42 0.4.11 2015-08-26 22:58:34 -04:00
Steve Pulec
984e221cab Merge pull request #408 from pitluga/elb_boto3_support
Make all existing ELB endpoints compatible with boto3
2015-08-26 22:55:29 -04:00
Tony Pitluga
1d8252feea Make all existing ELB endpoints compatible with boto3 2015-08-24 15:07:14 +00:00
Pior Bastida
43ceb8b06a Fix incorrect dynamodb2 delete_item response
Attribute field must be a mapping (not a list)
2015-08-20 17:06:10 -04:00
Pior Bastida
2650eab295 Implement XML responses for SNS (for Boto3) 2015-08-20 14:57:17 -04:00
Jot
178d1c3a93 Added support for WaitTimeSeconds in SQS #392 2015-08-13 02:58:14 +02:00
Steve Pulec
73f03d1ccf Add redshift support for cloudformation. 2015-08-08 13:29:37 -04:00
Steve Pulec
323f720cb5 Fix S3 bucket policy delete. Closes #396. 2015-08-07 22:43:24 -04:00
Steve Pulec
6b2f54604e 0.4.10 2015-08-03 22:17:19 -04:00
Steve Pulec
df6ff57d24 Fix ASG instance_type. 2015-08-03 21:52:43 -04:00
Steve Pulec
1814db3dfb Fix launch configuration instance types. 2015-08-03 21:48:17 -04:00
Steve Pulec
92c96b6788 Fix bug in creating SecurityGroups for nics. Closes #391. 2015-08-03 20:56:05 -04:00
Steve Pulec
ed38a296db Merge pull request #390 from jotes/iam_sns_server
Added server backends with tests for IAM and SNS services.
2015-08-03 18:58:53 -04:00
Jot
930ac58a4d Added sns backend to servers, added some tests to check backend 2015-08-04 00:20:04 +02:00
Ilya Sukhanov
9904193d66 Merge branch 'master' into sns_regions 2015-08-03 10:22:55 -04:00
Ilya Sukhanov
e08796bcf4 Keep current region when creating SNS ARN topic 2015-08-03 10:19:04 -04:00
Jot
42b95023f5 Added iam backend to servers, added some tests to check backend 2015-08-03 00:31:36 +02:00
Steve Pulec
84c9dd03d2 Merge pull request #387 from jotes/server_cloudformation
Enabled cloudformation in server mode, added some tests
2015-08-02 11:34:46 -04:00
Steve Pulec
4576f2873e Allow passing of region name to s3bucket_path url for eu-central-1. cc ##348. 2015-08-02 11:26:29 -04:00
Jot
b2570d901e Enabled cloudformation in server mode with some tests 2015-08-02 16:31:16 +02:00
Steve Pulec
8573333932 0.4.8 2015-08-02 10:04:13 -04:00
Steve Pulec
519726a70a Cleaning up SQS for boto3. Closes #385. 2015-08-02 09:45:40 -04:00
Steve Pulec
ac4aef87a1 Unused exception. 2015-08-01 19:44:37 -04:00
Steve Pulec
4543db567c Merge pull request #384 from rocky4570/volmods
volmods
2015-08-01 19:37:25 -04:00
Steve Pulec
e4408152d1 Add KeyConditionExpression to dynamo. 2015-08-01 19:32:33 -04:00
Rob Walker
e33777b60c tidy up imports. 2015-07-26 09:51:37 +10:00
Rob Walker
2bb79824ce Volume attachments to show in instance.
Volumes and Snapshots to be searchable by their id
Placement of instance to match region connection
Times for creation and attachment to show based on api call
2015-07-26 09:37:20 +10:00
Steve Pulec
9c81b7340c Merge pull request #383 from spg/s3_policy
S3: Bucket policy
2015-07-25 17:09:00 -04:00
Steve Pulec
1e195d0e7a Merge pull request #381 from spg/kms/alias
KMS: aliases
2015-07-25 17:06:05 -04:00
Simon-Pierre Gingras
dc0557205d S3: Bucket policy 2015-07-23 17:33:52 -04:00
Simon-Pierre Gingras
6b501a39a7 KMS: aliases 2015-07-23 10:56:33 -04:00
Steve Pulec
3a81982cce 0.4.7 2015-07-22 22:01:11 -04:00
Ilya Sukhanov
9bf5c2e706 CloudWatch DescribeAlarm filters.
Adds support for filtering by:
action_prefix
alarm_name_prefix
alarm_names

And throw NotImplementedError when filtering by:
state_value
2015-07-22 21:08:39 -04:00
Steve Pulec
9f02da4c56 Update ELBs to use newer querystring querying methods. 2015-07-18 09:08:27 -04:00
Andrew Harris
ea2fe6f290 change usages of long conversion to int for python3 2015-07-16 18:23:13 -07:00
Steve Pulec
a611010f86 Revert "Move RRSet parsing inside models so that cloudformation works better."
This reverts commit c7090a2b54.
2015-07-16 15:33:00 -07:00
Steve Pulec
e47147510b Move RRSet parsing inside models so that cloudformation works better. 2015-07-16 15:33:00 -07:00
Steve Pulec
c8bf862826 Fix for dynamodb2 attribute response. Closes #374. 2015-07-16 15:33:00 -07:00
Steve Pulec
b67e02cceb Better value error 2015-07-16 15:33:00 -07:00
Steve Pulec
75461cb110 Fix dynamo item not found. 2015-07-16 15:33:00 -07:00
Andrew Harris
bbb021d06d implement mocking for lb policies 2015-07-16 15:32:51 -07:00
Steve Pulec
7f2abc41a5 0.4.6 2015-07-13 19:31:23 -04:00
Steve Pulec
4020141478 Fix cloudformation subnet tagging. 2015-07-13 19:27:00 -04:00
Steve Pulec
de29762a65 Cleanup parsing. 2015-07-13 15:28:29 -04:00
Steve Pulec
53fff2eb84 Add UpdateStack functionality for Cloudformation. 2015-07-13 13:56:46 -04:00
Steve Pulec
7f73d7e26d Add cloudformation list_stack_resources. 2015-07-13 11:05:36 -04:00
Steve Pulec
8b41af84a8 0.4.5 2015-07-13 10:51:56 -04:00
Steve Pulec
c45968b79f Template in the ASG instance lifecycle states. 2015-07-13 10:47:45 -04:00
Akira Chiku
91edbb21bf Make EMR multi-region 2015-07-12 19:32:16 +09:00
Steve Pulec
af45424b9e Merge pull request #371 from apjaffe/master
Adds the ConditionalCheckFailedException to put_item
2015-07-08 20:54:53 -04:00
Shulman Evgeny
e498c95807 feature emr: set_termination_protection call implementation
feature emr: support for instance_groups param in run_jobflow
2015-07-08 10:26:58 +03:00
Alan Jaffe
690402ccb3 Python 3 compatibility 2015-07-07 15:38:08 -04:00
Alan Jaffe
e3c859868c Adds the ConditionalCheckFailedException to put_item
If the Item‘s original data is inconsistent with what's in DynamoDB,
the request should fail (unless overwrite is set to True).

http://boto.readthedocs.org/en/latest/ref/dynamodb2.html#boto.dynamodb2.table.Table.put_item
2015-07-07 15:07:32 -04:00
Steve Pulec
abb3357925 Merge pull request #369 from MurphyMarkW/byteranges
Improves range request support.
2015-07-06 21:27:43 -04:00
Steve Pulec
ff5161ebf9 Fix for py26. 2015-06-30 05:55:43 -04:00
Steve Pulec
70aafc1fd3 Add basic KMS key endpoints. 2015-06-30 05:44:39 -04:00
MurphyMarkW
b82d0264dc Fixes suffix range requests to truncate ranges. 2015-06-30 02:04:30 -05:00
MurphyMarkW
723b743381 Modifies check for last-byte-pos. 2015-06-30 00:26:42 -05:00
MurphyMarkW
2cdab4cab9 Fixes last-byte-pos interpretation. 2015-06-29 20:25:22 -05:00
Steve Pulec
0ec6f87268 0.4.4 2015-06-29 21:03:09 -04:00
Steve Pulec
a3d5c771ef Merge pull request #367 from spg/fix/iam_get_role
IAM: unnecessary check for role
2015-06-29 21:00:48 -04:00
Simon-Pierre Gingras
9a2e7ad8b0 IAM: unnecessary check for role 2015-06-29 11:04:40 -04:00
Steve Pulec
185b49ad66 Merge pull request #366 from spg/fix/iam_get_role
IAM: get_role should thrown when role is unexisting
2015-06-29 10:51:47 -04:00
Simon-Pierre Gingras
db7d7a9330 IAM: get_role should thrown when role is unexisting 2015-06-29 10:46:05 -04:00
Marco Rucci
6e97bec006 Add support for alias records in Route53. 2015-06-28 17:27:24 +02:00
Steve Pulec
3ed9428cb0 Cleanup class decorator. Closes #363. 2015-06-27 19:01:01 -04:00
Steve Pulec
5ee1525cd8 Fix S3 missing key error. Closes #364. 2015-06-27 17:56:37 -04:00
Steve Pulec
20306c9b24 Set more default datetimes. 2015-06-22 17:02:10 -04:00
Steve Pulec
640cd2ce44 Better EC2 NIC Attachment datetimes. 2015-06-22 16:52:12 -04:00
Daniel O'Connell
5cc8f9ed21 S3_BUCKET_VERSIONING and S3_BUCKET_GET_VERSIONING were generating invalid XML, as the '<?xml version="1.0" encoding="UTF-8"?>' bit must be on the first line. 2015-06-12 08:56:14 +02:00
Steve Pulec
77af26987f 0.4.3 2015-06-09 22:03:50 -04:00
Steve Pulec
62f82cea03 Python3 fix. 2015-06-05 21:37:47 -04:00
Steve Pulec
57f1199b35 Fix route53 multiple values bug. Closes #358. 2015-06-05 21:29:20 -04:00
Steve Pulec
1177985e19 Python 3 fixes. 2015-06-05 19:56:43 -04:00
Steve Pulec
625b1d2ac6 Add basics of Glacier. 2015-06-05 19:36:43 -04:00
Steve Pulec
7156df1a63 Add vault operations. 2015-06-03 22:55:07 -04:00
Steve Pulec
91fffbb83b Add basics for S3 bucket lifecycles. 2015-06-02 23:11:23 -04:00
Steve Pulec
72dbd349ac Merge pull request #355 from deuxpi/cloudwatch-put-metric-data
Add put_metric_data and list_metrics
2015-05-29 23:36:23 -04:00
Steve Pulec
6a0e8df189 Merge pull request #354 from silveregg/0.4.1-threadsafe
threadsafe fix
2015-05-29 23:34:55 -04:00
Steve Pulec
8fa80b87e2 Add version to moto.__init__ Closes #353. 2015-05-29 23:32:29 -04:00
Steve Pulec
0195e04053 Allow deleting of SQS invisible messages. Closes #352. 2015-05-29 23:26:43 -04:00
Steve Pulec
6b44e41249 Add SQS purge_queue action. Closes #349. 2015-05-29 23:21:14 -04:00
Philippe Gauthier
d5d9c13975 Add put_metric_data and list_metrics 2015-05-29 17:34:36 -04:00
Jeffrey Gelens
450d14b4eb Fix ValueError for Python 2.6 2015-05-29 11:43:24 +02:00
Jeffrey Gelens
e722b67f36 Merge branch 'master' of https://github.com/spulec/moto into 0.4.1-threadsafe
* 'master' of https://github.com/spulec/moto: (25 commits)
  Add @zkourouma to authors.
  0.4.2
  Fix bug where listener certificate was not being saved correctly when creating an elb. Added test to cover that case.
  [dynamodb2] adds lookup method to Table class
  Add IAM list_groups and list_groups_for_user. Closes #343.
  Fix for deleting Route53 record sets with set identifiers. Closes #342.
  Use dummy date instead of an invalid date
  Adding support for comments on hosted zones.
  Add availability zone support to Subnets created via CloudFormation
  Make availability zone dynamic in Subnet Response templates
  Add filter "availabilityZone" to DescribeSubnets and add availability zone support too
  allow starting without reseting
  Fix bug with empty string for instance vpc_id. Closes #337.
  Fix default security group description.
  Update responses.py
  Add @mrucci to authors.
  Fix merge conflicts.
  Add support for ELB attributes.
  cast to int when doing math.
  General cleanup.
  ...
2015-05-29 11:35:14 +02:00
Jeffrey Gelens
f5c4ac0b44 Merge branch 'master' of https://github.com/silveregg/moto into 0.4.1-threadsafe
* 'master' of https://github.com/silveregg/moto: (22 commits)
  filtering the items is needed because of defaultdict is not threadsafe and returns an empty dict which results in an exception here
  add tests for list_endpoints_by_platform_application
  add mock for list_endpoints_by_platform_application method
  [S3]Only add multipart part_id to partlist if it is not already in there. Closes #324.
  Fix etag for reduced min part size.
  Add test_multipart_duplicate_upload
  Fix reduced_min_part_size so that tests run
  Fix authors
  Add @mikegrima to authors
  Fixed how parameters are passed in following clarification on GitHub comments.
  Added in test for the boto IAM method: list_instance_profiles_for_role()
  Change SecurityGroupBackend.{authorize,revoke}_security_group_ingress() methods to receive group name or id, never both
  Add support to AWS::EC2::SecurityGroupIngress creation
  Add @aaltepet to authors.
  Add publish command.
  Add support to tag filtering to Security Groups
  slight change in formatting
  fix test for ec2 instance type filter
  Update minimum support boto version.
  support 'instance_type' filter
  ...
2015-05-29 11:34:23 +02:00
Kevin Donnelly
3c75e0ef2e Fix bug where listener certificate was not being saved correctly when
creating an elb. Added test to cover that case.

Paired with @jszwedko
2015-05-20 19:42:58 +00:00
Zack Kourouma
f03ded7e90 [dynamodb2] adds lookup method to Table class
includes additional test coverage
2015-05-20 11:20:16 -04:00
Michael
5da5c571a9 filtering the items is needed because of defaultdict is not threadsafe and returns an empty dict which results in an exception here 2015-05-20 09:36:40 +02:00
Steve Pulec
be5f041416 Add IAM list_groups and list_groups_for_user. Closes #343. 2015-04-30 19:32:53 -04:00
Steve Pulec
d1c823e0d8 Fix for deleting Route53 record sets with set identifiers. Closes #342. 2015-04-30 18:51:01 -04:00
Francisco De Freitas
e320190b42 Use dummy date instead of an invalid date 2015-04-28 13:39:48 +02:00
Philip Corliss
b27f3c3d9f Adding support for comments on hosted zones.
Paired with @kpdonn
2015-04-23 19:01:20 +00:00
Steve Pulec
7382201dd7 Merge pull request #339 from porterjamesj/allow-start-without-reset
allow starting without reseting
2015-04-09 23:04:44 -04:00
Hugo Lopes Tavares
5160fac9b7 Add availability zone support to Subnets created via CloudFormation 2015-04-08 16:48:02 -04:00
Hugo Lopes Tavares
65d51a5844 Make availability zone dynamic in Subnet Response templates 2015-04-08 16:47:43 -04:00
Hugo Lopes Tavares
56cb06041c Add filter "availabilityZone" to DescribeSubnets and add availability zone support too 2015-04-08 15:07:29 -04:00
James Porter
fae22fd872 allow starting without reseting 2015-04-02 22:47:11 -05:00
Steve Pulec
82214d2bc2 Fix bug with empty string for instance vpc_id. Closes #337. 2015-03-28 14:30:30 -04:00
Steve Pulec
bdfbdd8b1c Fix default security group description. 2015-03-28 14:13:28 -04:00
Tin Tvrtković
8327055239 Update responses.py
Add a dummy NextToken to sns.list_platform_applications. Ideally the library would actually paginate, but this should be an alright change in the mean time.
2015-03-26 16:24:48 +01:00
Steve Pulec
a97beb0598 Fix merge conflicts. 2015-03-22 16:00:16 -04:00
Steve Pulec
f2bfcfb803 Merge pull request #335 from mrucci/elb-attributes-support
Add support for ELB attributes.
2015-03-22 15:55:26 -04:00
Marco Rucci
08468e5f73 Add support for ELB attributes. 2015-03-22 15:35:27 +01:00
Chris Henry
4626fc0fea cast to int when doing math. 2015-03-21 21:54:25 -04:00
Jeffrey Gelens
c2f2c16892 Fixed non threadsafe code 2015-03-16 13:13:40 +01:00
Steve Pulec
c0d19ab178 General cleanup. 2015-03-14 18:55:44 -04:00
Steve Pulec
6c9bba2ca1 Cleanup EC2 classic default security group. 2015-03-14 18:50:41 -04:00
Steve Pulec
82f19952dd Add Dynamodb2 global indexes. Closes #329. 2015-03-14 15:02:43 -04:00
Steve Pulec
ca39591ef2 Fix error string formatting for py26. 2015-03-14 09:19:36 -04:00
Steve Pulec
e2d75cba2c Remove dict comprehension for py2.6 2015-03-14 09:13:58 -04:00
Steve Pulec
706c60175b Add SNS applications and endpoints. 2015-03-14 09:06:31 -04:00
Jair Henrique
e23edaa47f add mock for list_endpoints_by_platform_application method 2015-03-06 14:10:47 -03:00
Steve Pulec
07dd6e554e [S3]Only add multipart part_id to partlist if it is not already in there. Closes #324. 2015-03-05 19:32:02 -05:00
Steve Pulec
2cd633e27d Merge pull request #323 from mikegrima/mgrima-add-boto-test-list_instance_profiles_for_role
Added in test for the boto IAM method: list_instance_profiles_for_role()
2015-02-27 15:32:16 -05:00
Mike Grima
70315fd67c Fixed how parameters are passed in following clarification on GitHub comments. 2015-02-27 12:22:31 -08:00
Mike Grima
3a357c0fe3 Added in test for the boto IAM method: list_instance_profiles_for_role() 2015-02-26 21:28:15 -08:00
Hugo Lopes Tavares
4beda26007 Change SecurityGroupBackend.{authorize,revoke}_security_group_ingress() methods to receive group name or id, never both 2015-02-25 18:11:00 -05:00
Hugo Lopes Tavares
dc351dfc9e Add support to AWS::EC2::SecurityGroupIngress creation 2015-02-25 12:20:25 -05:00
Steve Pulec
c0e80de4d3 Merge pull request #317 from spulec/ec2-security-group-tag-filtering
Add support to tag filtering to Security Groups
2015-02-24 18:00:51 -05:00
Hugo Lopes Tavares
20d8318997 Add support to tag filtering to Security Groups 2015-02-24 17:56:26 -05:00
Andy Altepeter
e17c7bbd7a support 'instance_type' filter 2015-02-23 11:03:59 -06:00
Andy Altepeter
53ec30e3ba support 'tag-key' instance type 2015-02-23 10:45:16 -06:00
John Lynn
0496d4669e Fix bucket versioning when running under moto_server 2015-02-22 22:22:41 +07:00
Konstantinos Koukopoulos
f46c2508c0 allow running mock_s3 and mock_s3bucket_path one after the other 2015-02-20 21:50:49 +02:00
Steve Pulec
747563e4ff Cleanup tag escape testing. 2015-02-17 22:18:40 -05:00
Steve Pulec
f7bd9f9f68 Merge pull request #307 from dbrandenburg/master
Escaping tags individually for building the describe_tags template
2015-02-17 22:17:07 -05:00
Hugo Lopes Tavares
8d25aa2529 Add support to create AWS::EC2::VPCPeeringConnection through the CloudFormation interface 2015-02-17 14:40:48 -05:00
Dennis Brandenburg
3bd1a62fe3 Escaping tags individually for building the describe_tags template to support get_all_tags 2015-02-17 10:23:15 +01:00
Mike Fuller
95e48336d9 Merge remote-tracking branch 'upstream/master' into adding_rds2_support 2015-02-17 07:04:33 +11:00
Chris Henry
af41f69da0 fix: put db name in quotes, if present. 2015-02-15 18:51:34 -05:00
Steve Pulec
136873d49e Cleanup public IPs for EC2 classic instances and fix some default ENI things. 2015-02-14 14:42:20 -05:00
Steve Pulec
95b1fa42b2 Add EMR clusters and tagging. 2015-02-14 12:00:14 -05:00
Steve Pulec
5ededbb297 Fix security group tags. Closes #301. 2015-02-14 08:57:14 -05:00
Steve Pulec
31bf84b363 Fix six import. Closes #299. 2015-02-14 08:43:17 -05:00
Steve Pulec
53a6d2466b Merge pull request #298 from kouk/ranged_get
support ranged get in S3
2015-02-14 08:35:23 -05:00
Steve Pulec
4d4cb39769 Merge pull request #297 from kouk/multipart_errors
Support for client supplied part order in multipart uploads
2015-02-14 08:30:10 -05:00
Steve Pulec
2bc771349a Merge pull request #302 from spulec/fix-cloudformation-vpc-gateway-attachment-creation
Attach internet gateway to VPC when it is created through CloudFormation
2015-02-11 18:26:00 -05:00
Hugo Lopes Tavares
1546635fcd Attach internet gateway to VPC when it is created through CloudFormation 2015-02-11 18:19:40 -05:00
Konstantinos Koukopoulos
e1163e5223 fix some boundary conditions 2015-02-10 19:43:24 +02:00
Konstantinos Koukopoulos
261328d449 set content-range header so boto knows this is a ranged response 2015-02-10 19:15:10 +02:00
Konstantinos Koukopoulos
418a6a118e return proper status codes in range get, fix suffix range 2015-02-10 19:14:47 +02:00
Konstantinos Koukopoulos
9efd12c43c support more range specifiers in ranged gets 2015-02-10 17:55:44 +02:00
Konstantinos Koukopoulos
dbf1e64d44 support ranged get in S3 2015-02-10 17:28:18 +02:00
Konstantinos Koukopoulos
2dd174b577 use request body in complete upload, improve exception handling 2015-02-10 16:56:56 +02:00
Konstantinos Koukopoulos
7250186c26 support multipart uploads when parts are uploaded out of order 2015-02-10 16:45:31 +02:00
Konstantinos Koukopoulos
1460a5a3c7 refactor S3 exceptions to inherit from RESTError 2015-02-10 15:33:18 +02:00
Konstantinos Koukopoulos
7c719269be create a base RESTError exception 2015-02-10 15:31:28 +02:00
Mike Fuller
abae19d273 fixing up base64 encoding for python 3 back to using base64 module 2015-02-05 17:07:08 +11:00
Mike Fuller
d0a60d8702 fixing up base64 encoding for python 3 2015-02-05 17:03:11 +11:00
Mike Fuller
d1f82b83ec Merge remote-tracking branch 'upstream/master' into adding_iam_credentials_report 2015-02-04 12:40:36 +11:00
Mike Fuller
ffff67692c encode credential_report to ascii to help the base64 encoding work. 2015-02-04 12:39:28 +11:00
Steve Pulec
ea07dd1cc7 Merge pull request #292 from mfulleratlassian/adding_rds2_support
Adding rds2 support
2015-02-03 20:26:25 -05:00
Hugo Lopes Tavares
c40437398f Add StorageType and Iops elements to DBInstance XML response 2015-02-03 16:50:14 -05:00
Mike Fuller
96e5f2875d Merge remote-tracking branch 'upstream/master' into adding_iam_credentials_report 2015-02-03 09:43:55 +11:00
Mike Fuller
5eab1901e4 added get/generate credential report to mock_iam 2015-02-03 09:42:57 +11:00
Hugo Lopes Tavares
c0cbd59167 Make RDS interface work with us-east-1 region 2015-02-02 16:37:57 -05:00
Mike Fuller
41507e4baa Fixes for tests run on python 2.6.9 2015-01-30 19:54:43 +11:00
Mike Fuller
cff5238929 Fixed up use of format using {} instead of {0} which seams to break python 2.6.x 2015-01-30 17:28:41 +11:00
Mike Fuller
d350ac438e Merge remote-tracking branch 'upstream/master' into adding_rds2_support 2015-01-30 17:14:13 +11:00
Mike Fuller
0d958e9b1c Added read replica support 2015-01-30 17:12:51 +11:00
Steve Pulec
06476ccb3a Merge pull request #291 from jbalogh/delimiter
Folder results should include the delimiter.
2015-01-29 22:49:09 -05:00
Mike Fuller
42ab9312bb Added db_subnet_group support 2015-01-30 08:18:15 +11:00
Jeff Balogh
c7bf6ffc91 Folder results should include the delimiter. 2015-01-29 09:20:40 -08:00
Josh Palmer
7e3516f997 Added support for listing multipart uploads with prefix. 2015-01-29 17:24:23 +01:00
Mike Fuller
8614b50898 Added DB Security Group Create/List/Delete/Authorize 2015-01-29 17:25:39 +11:00
Mike Fuller
3d431664f7 Added some TODOs for my memory. 2015-01-29 07:31:11 +11:00
Mike Fuller
884bd51604 Added tests add/remove/list tags on option groups 2015-01-29 07:24:03 +11:00
Mike Fuller
e42046aeda extended the list/add/delete tags functions to support more resource types. 2015-01-29 07:15:03 +11:00
Mike Fuller
15fcec9c33 Returning dymanic response for add_tags_to_resource 2015-01-28 10:24:11 +11:00
Mike Fuller
10c0ffc2f2 Added remove_tags_from_resource for rds db and add_tags_to_resource for rds db. 2015-01-28 10:17:55 +11:00
Chris Henry
f78d3b79df Fix json templates to include DBInstance element. 2015-01-27 01:53:42 -05:00
Chris Henry
df036fe207 rds2 model fixes.
* Add the endpoint data to the to_json function.
* Remove the DBInstance key from the to_json template.
2015-01-27 01:28:38 -05:00
Mike Fuller
2dde94c9be Storing tags on create db instance and getting tags back in list_tags_for_resource 2015-01-27 09:04:39 +11:00
Mike Fuller
6559d11dd5 Merge remote-tracking branch 'upstream/master' into adding_rds2_support 2015-01-27 08:24:54 +11:00
Mike Fuller
6232abfe2d Added reboot instance and list_tags_for_resource. Still need to get the tags populated. 2015-01-27 08:21:48 +11:00
Chris Henry
bba08f05b1 Change the describe subnet groups over to json. 2015-01-26 15:38:56 -05:00
Chris Henry
1ccf1191cd Instead of a regex, add a second url pattern 2015-01-26 13:54:40 -05:00
Chris Henry
2352e27c3e Remove todo. 2015-01-26 13:35:28 -05:00
Chris Henry
25d0c0926d Change CREATE_SUBNET_GROUP_TEMPLATE to json. 2015-01-26 13:34:21 -05:00
Chris Henry
850b15d849 Add a to_json method to SubnetGroup. 2015-01-26 13:33:46 -05:00
Chris Henry
4f822f58e8 Loosen the url pattern a bit. I was seeing boto send requests to rds.amazonaws.com 2015-01-26 13:33:11 -05:00
dreadpirateshawn
d631f869c1 ModifyImageAttribute: Added support for user permissions. 2015-01-23 09:43:54 -08:00
Steve Pulec
dd5cab8c63 Return random IP addresses for instances. 2015-01-21 21:58:38 -05:00
Mike Fuller
8671f1e29f Merge remote-tracking branch 'upstream/master' into adding_rds2_support 2015-01-22 07:22:50 +11:00
Mike Fuller
242e29a7c1 rds2 modify_db_instance, small code tidy ups 2015-01-22 07:21:49 +11:00
Mike Fuller
4b838f6114 Added some TODOs to ensure I dont forget. 2015-01-21 07:18:56 +11:00
Mike Fuller
6fad81aabf I have delete options for the modify_option_group method but for the life of me. I cannot work out how to use this function to add options to an option_group. 2015-01-21 07:15:47 +11:00
Mike Fuller
dfb33aaad3 Started implementing modify_option_group. 2015-01-20 21:01:34 +11:00
Mike Fuller
a43b002c3a Added describe_option_group_options. 2015-01-20 07:18:52 +11:00
Steve Pulec
b1c41820f7 Cleanup EC2 launch time code a bit. 2015-01-19 13:44:15 -05:00
Mike Fuller
503d46d36a Added decribe_option_groups and delete_option_group support 2015-01-19 20:29:32 +11:00
Mike Fuller
40db44f2cd Added Exceptions on create_option_group 2015-01-19 17:03:14 +11:00
Chris Henry
6743a41b26 Fix merge conflict, 2015-01-18 16:37:56 -05:00
Chris Henry
1f2a913d3a Merge branch 'master' of github.com:behanceops/moto into feature-instance-launch-time
Conflicts:
	moto/ec2/models.py
2015-01-18 16:37:27 -05:00
Mike Fuller
e2ed5ed733 Merge remote-tracking branch 'upstream/master' into adding_rds2_support 2015-01-19 08:22:27 +11:00
Chris Henry
19a1b74c5b Change timestamp format to ISO 8601, as per http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html 2015-01-18 16:20:59 -05:00
Chris Henry
77185f9bee Change timestamp format to ISO 8601, as per http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html 2015-01-18 16:18:34 -05:00
Mike Fuller
c6437930de fixed up tests for create_option_group, fixed return json to have major_version correct 2015-01-19 08:06:37 +11:00
Chris Henry
062256ada3 Use the current time when launching an instance. 2015-01-18 15:53:59 -05:00
Mike Fuller
8c16517f10 building out new RDS2 Mock.
completed:
 * create_db_instance()
 * create_option_group()
2015-01-19 07:38:10 +11:00
Steve Pulec
c22ea3014b Add SNS topics to cloudformation. 2015-01-17 19:48:08 -05:00
Steve Pulec
f19fdc9802 Cleaner code. 2015-01-17 19:10:19 -05:00
Steve Pulec
585ef7b768 Add route53 health checks. 2015-01-17 19:06:43 -05:00
Steve Pulec
adb26986eb Add route53 ResourceSet to Cloudformation. 2015-01-17 15:37:46 -05:00
Steve Pulec
42cd333d51 Refactor Route53 record sets. 2015-01-17 14:50:19 -05:00
Steve Pulec
5d5f241b99 Add route53 support to cloudformation. 2015-01-17 10:17:25 -05:00
Steve Pulec
4c40f39a68 Fix for py26. 2015-01-11 16:27:02 -05:00
Steve Pulec
166f4893ba Add cloudformation for RDS. 2015-01-11 16:15:08 -05:00
Steve Pulec
12118374bd Add database replicas. 2015-01-10 13:50:37 -05:00
Steve Pulec
7559fbe0d1 Add RDS Subnet groups 2015-01-09 00:17:20 -05:00
Steve Pulec
809046e00e Add RDS security groups. 2015-01-08 23:44:05 -05:00
Steve Pulec
dbe3eb5459 Add database CRUD. 2015-01-08 22:18:06 -05:00
Steve Pulec
e05a061993 Add support for Cloudformation Mappings. 2015-01-07 22:32:51 -05:00
Steve Pulec
b8a11b7b8d Python 3 fixes. 2015-01-07 21:40:03 -05:00
Steve Pulec
8da6437689 Add some support for Cloudformation Conditions. Closes #285. 2015-01-07 21:37:12 -05:00
Steve Pulec
1e4df18c42 Allow actual use of cloudformation input parameters. 2014-12-31 14:21:47 -05:00
Steve Pulec
56007660d8 Cleanup parameter parsing. 2014-12-31 13:23:08 -05:00
Steve Pulec
fceeed0c9f PY3 fixes. 2014-12-29 22:17:50 -05:00
Steve Pulec
186ee6a5a4 Add cloudformation stack parsing for S3 keys. 2014-12-29 22:12:23 -05:00
dreadpirateshawn
aff5dd408c Performance: Leverage jinja2's Environment to cache compiled Templates. (fixed merge) 2014-12-12 13:05:46 -08:00
dreadpirateshawn
7ce83082ca Merge remote-tracking branch 'origin/master' into ImproveTemplatePerformance
Conflicts:
	moto/s3/responses.py
2014-12-12 12:51:29 -08:00
dreadpirateshawn
9affa7753d Performance: Leverage jinja2's Environment to cache compiled Templates. 2014-12-12 12:46:07 -08:00
Steve Pulec
4ab3b318eb Add S3 location response. Closes #279. 2014-12-10 20:44:00 -05:00
Steve Pulec
a2e56afef8 Add special S3 bucket create logic for us-east-1. Closes #273. 2014-12-10 20:20:51 -05:00
Steve Pulec
845c468f32 Merge pull request #278 from cameron-r/master
Add filtering of instances by security group id
2014-12-10 20:11:25 -05:00
Cameron Rowshanbin
573a73aa01 With @ethome, add filtering of instances by security group id 2014-12-10 11:53:40 -06:00
Tyler Sanders
b513d69313 Add support for route table routes to target virtual private gateways. 2014-12-09 12:07:14 -06:00
Steve Pulec
3a82f089a2 Cleanup metadata setting and add fix for multipart uploads. Closes #274. 2014-12-07 12:43:14 -05:00
Steve Pulec
6331c2e1f1 IAM py3 fix. 2014-12-06 19:42:42 -05:00
Steve Pulec
20dda251f8 Updates for IAM changes. 2014-12-06 19:37:10 -05:00
Steve Pulec
7b81a0cb95 Merge branch 'enhancedIamRoleSupport' of https://github.com/kevgliss/moto into kevgliss-enhancedIamRoleSupport 2014-12-06 19:31:18 -05:00
Tyler Sanders
db7757347a Detach virtual private gateway support 2014-12-02 10:40:05 -06:00
Tyler Sanders
166fd69515 Virtual Private Gateway functionality 2014-12-02 10:28:09 -06:00
Kevin Glisson
3e45758663 Removing duplicate import 2014-11-30 20:23:56 -08:00
Kevin Glisson
cc312d29fc Adding put_role_policy, get_role_policy, and list_role_policies, update_assume_role_policy 2014-11-30 20:11:13 -08:00
Kevin Glisson
7f6af025f3 Create role does not allow for document policies to be passed to it 2014-11-30 11:16:29 -08:00
Steve Pulec
1a015d0e39 Cleanup some incorrect date formats. 2014-11-29 23:34:40 -05:00
Steve Pulec
c5487a4464 Add compat file for Py26 OrderedDict. 2014-11-29 22:43:30 -05:00
Steve Pulec
d24099c401 Add proper SNS paging. Closes #144, #145. 2014-11-29 22:37:48 -05:00
Steve Pulec
e66916d5f1 Start to add basic support for dynamodb2 item updating. Closes #16. 2014-11-29 22:03:29 -05:00
Tyler Sanders
7476c63119 Update upstream branch 'master' into instance_modify_security_groups 2014-11-27 11:14:46 -06:00
Tyler Sanders
9cbe8d57f4 Support instance security group/groupSet attribute modification and description 2014-11-27 11:05:39 -06:00
Steve Pulec
e88e3d5372 S3 Fixes for special metadata headers. 2014-11-27 10:43:10 -05:00
Kyohei Akiyama
1a61b973e4 The filter condition was added to VPC and RouteTable class. 2014-11-27 03:54:42 +00:00
Steve Pulec
45de4a46ec Better sequence start and end numbers. 2014-11-26 21:55:01 -05:00
Steve Pulec
c63b00b8ba Fixes for other python versions. 2014-11-26 21:04:44 -05:00
Steve Pulec
57d45aa4b8 Add more shard iterator types. 2014-11-26 20:49:21 -05:00
Steve Pulec
38a4734f95 Fixes for py26 and py33. 2014-11-26 11:13:43 -05:00
Steve Pulec
da15fb711d Basic Kinesis Stream CRUD. 2014-11-26 10:55:58 -05:00
Steve Pulec
5bbcc4505f Add cluster parameter groups. 2014-11-23 23:03:10 -05:00
Steve Pulec
2418c83252 Fixes for VPC security groups. 2014-11-23 22:33:53 -05:00
Steve Pulec
2e484a895b Fix for default security group. 2014-11-23 22:21:29 -05:00
Steve Pulec
25a31ee88a Add cluster security groups. 2014-11-23 22:17:36 -05:00
Steve Pulec
ef3e5448ea Add cluster subnet group CRUD. 2014-11-23 21:36:19 -05:00
Steve Pulec
72a7946126 Cleanup default parameters. 2014-11-23 18:16:22 -05:00
Steve Pulec
aceb30e530 Add basic CRUD. 2014-11-22 14:03:09 -05:00
Steve Pulec
9024066957 Fixes for some S3 Unicode issues. Closes #158. 2014-11-22 10:19:56 -05:00
Tyler Sanders
1fc32fa5cb Add support for Route Table tagging 2014-11-20 14:08:38 -06:00
Tyler Sanders
d511fd829b Add support for Network ACL tagging 2014-11-20 12:04:34 -06:00
Steve Pulec
8d6868f9d3 For S3 Key Head requests, just return the real body for now so that key length works. Closes #131. 2014-11-19 21:06:23 -05:00
Steve Pulec
8954242086 Better is_public support for AMIs including filtering. Closes #263. 2014-11-19 20:09:46 -05:00
Tyler Sanders
2a6c4c89bf Fix conflict with subnet/network ACL association during subnet creation. 2014-11-17 09:37:38 -06:00
Tyler Sanders
d89dce2583 Use items() instead of iteritems() for Python 3 compatibility 2014-11-17 08:54:06 -06:00
Steve Pulec
828ed13bde Allow for class-based decorator. Closes #157 2014-11-16 19:05:28 -05:00
Steve Pulec
16660ab72b Allow message passing to SQS queues in different regions from SNS. 2014-11-16 18:42:53 -05:00
Steve Pulec
53acdf6c76 Make SNS multi-region. 2014-11-16 18:35:11 -05:00
Steve Pulec
aa7233a2db Fixes for multi-region SQS. 2014-11-16 17:57:46 -05:00
Steve Pulec
1f8253a1a1 Cleanup the default region backends. 2014-11-15 14:21:58 -05:00
Steve Pulec
bd847bd941 Cleanup multi-region support for ELB, SQS, Cloudformation, EC2, Autoscaling. 2014-11-15 13:34:52 -05:00
Steve Pulec
c77207a8b8 More flake8. 2014-11-15 09:53:45 -05:00
Steve Pulec
8ba308bf07 EC2 flake8 fixes. 2014-11-15 09:43:35 -05:00
Steve Pulec
8bc8f09b47 Some flake8 cleanup. 2014-11-15 09:35:52 -05:00
Steve Pulec
d734bca6a5 Fix for Volumes and Snapshots to use correct region. 2014-11-15 09:17:35 -05:00
Tyler Sanders
6d2c9d9960 Move call to associate default Network ACL with a new subnet. 2014-11-14 17:31:08 -06:00
Tyler Sanders
400d12b175 Add default Network ACL during VPC creation. Associate default Network ACL with a new subnet. Add support for associating a new Network ACL with a subnet. 2014-11-14 17:23:56 -06:00
Tyler Sanders
efc8caaf48 Test Network ACL describe 2014-11-12 15:48:44 -06:00
Tyler Sanders
0f18dd597c Add basic Network ACL create, describe support 2014-11-12 15:33:31 -06:00
Peter Van Bouwel
63c7e224a2 Always use ec2_backend to get the tag information in order to have a cleaner get_tags method. 2014-11-11 19:41:16 +01:00
Peter Van Bouwel
4f0cbf9bc9 Merge remote-tracking branch 'upstream/master' 2014-11-11 10:29:35 +01:00
Peter Van Bouwel
f28ad8ee29 Alter get_tags to use the backend associated with the taggable object. Also give volume and snapshot an additional backend attribute. 2014-11-11 10:26:02 +01:00
Steve Pulec
79cd93119d Merge pull request #257 from mrucci/autoscaling-fix-multi-region
Fix bug with autoscaling in non-default region.
2014-11-10 19:26:46 -05:00
Steve Pulec
e05fc76e28 Merge pull request #256 from mrucci/route53-response-insync
Report route53 changes immediately as INSYNC.
2014-11-10 19:25:41 -05:00
Peter Van Bouwel
2f1f993793 Extend the DESCRIBE_SNAPSHOTS_RESPONSE to include the tagSet as documented by AWS. Also refactor the names of the tests I introduced in previous commits to be more descriptive. Finally some code cleanup, removing the get_tags method from classes and instead inherit from the TaggedEC2Resource class. 2014-11-09 15:00:40 +01:00
Peter Van Bouwel
17356fe56c Extend the DESCRIBE_VOLUMES_RESPONSE to include the tagSet as documented by AWS on http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeVolumesSetItemResponseType.html . This is needed to pass the test that was added in previous commit. 2014-11-09 12:21:19 +01:00
Marco Rucci
53a11c18c1 Fix bug with autoscaling in non-default region.
The bug appeared when using a region different than 'us-east-1'
and caused KeyError when accessing launch_configurations.

Rename the global autoscaling backend to reduce chances of similar naming issues.
2014-11-07 22:13:00 +01:00
Marco Rucci
0408511533 Report route53 changes immediately as INSYNC.
This avoids leaving changes in a perennial PENDING limbo.
2014-11-07 21:56:36 +01:00
Marco Rucci
99afd892a9 Add missing Id field in route 53 change response. 2014-11-07 21:40:00 +01:00
Hugo Lopes Tavares
aa3cf9c806 Move filter logic from responses.InstanceResponse to models.InstanceBackend 2014-11-05 14:20:49 -05:00
Hugo Lopes Tavares
88684f10f2 Move filter logic from responses.InternetGateways to models.InternetGatewayBackend 2014-11-05 14:02:45 -05:00
Hugo Lopes Tavares
32af875386 Implement InternetGateway filters support
More information about IGW filters: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInternetGateways.html#query-DescribeInternetGateways-filters
2014-11-05 12:26:29 -05:00
Hugo Lopes Tavares
faa55efe21 Implement vpc-id Instance filter 2014-11-05 11:06:14 -05:00
Steve Pulec
41282c9e48 Merge pull request #251 from joekiller/cfn_eni
enable cloudformation of NetworkInterface
2014-11-04 17:22:32 -05:00
Hugo Lopes Tavares
8a0a10b0d1 Add support to filtering instances by source-dest-check 2014-11-04 16:56:56 -05:00
Joseph Lawson
8299b5c312 enable cloudformation of NetworkInterface 2014-11-03 14:24:22 -05:00
Steve Pulec
ca44d4680a Py26 cloudwatch fixes. 2014-10-31 07:44:11 -04:00
Steve Pulec
93f56322d8 Fix merge conflicts for cloudwatch. 2014-10-30 23:51:09 -04:00
Steve Pulec
2d65b0a020 Some EC2 fixes for alternative regions. 2014-10-30 22:46:24 -04:00
Steve Pulec
5c9fec17b5 Merge pull request #248 from ttacon/master
Add create_login_profile for iam service
2014-10-29 20:07:33 -04:00
ttacon
5aec4d9de5 Add create_login_profile for iam service 2014-10-29 15:31:49 -04:00
Joseph Lawson
1152939ecd add notification arns to cloudformation 2014-10-29 11:59:41 -04:00
Steve Pulec
2881c9b20c Merge pull request #244 from DataDog/master
Add support for DescribeInstanceStatus' IncludeAllInstances option
2014-10-27 11:21:00 -04:00
Steve Pulec
4bfbf3bbf3 Python3 fixes for dynamodb2. 2014-10-26 21:11:03 -04:00
Steve Pulec
31b01d27cf Some fixes for dynamodb and python 3. 2014-10-26 20:55:11 -04:00
Steve Pulec
83481b589b Merge pull request #241 from DreadPirateShawn/RouteVPCPeeringConnection
Route vpc peering connection
2014-10-26 20:02:51 -04:00
Arthur Wang
31b55977c9 EC2: Add support for the IncludeAllInstances option in DescribeInstanceStatus 2014-10-24 19:48:29 +00:00
Steve Pulec
203ce6b185 Merge pull request #240 from joekiller/fix/describe_stacks_add_validation_error
Fix/describe stacks add validation error
2014-10-23 23:03:18 -04:00
Steve Pulec
d77bc3ed39 Merge pull request #243 from djmitche/regionalize_instances
Pass ec2_backend to Instance constructor
2014-10-23 23:02:15 -04:00
Dustin J. Mitchell
66c8fb2b52 Pass ec2_backend to Instance constructor
This value is used to look up things like nics and subnets in that
backend.
2014-10-23 22:44:42 -04:00
Dustin J. Mitchell
465629902c use the current ec2 backend, not the default, for subnets 2014-10-23 22:36:05 -04:00
Dustin J. Mitchell
ad200286a5 use the current ec2 backend, not necessarily us-east-1, for vpc operations 2014-10-23 22:26:52 -04:00
Joseph Lawson
0aec1d0f92 create_stack returns stack_id 2014-10-23 14:55:40 -04:00
Joseph Lawson
90191675a2 Deleted Stack Fix and ValidationError for DescribeStacks.
* stop backed from trying to iterate over empty list of deleted stacks.
  * Update DescribeStacks to throw ValidationError if stack name or id doesn't exist.
2014-10-23 14:39:15 -04:00
Joseph Lawson
94e969fed5 Enhance DescribeStacks. Keep track of deleted stacks. Stack status.
Made describe_stacks more in line with http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeStackResource.html
2014-10-22 23:58:42 -04:00
Steve Pulec
ef3fcecc87 Merge pull request #238 from DreadPirateShawn/ModifyInstanceAttributeSourceDestCheck
ModifyInstanceAttribute: Added support for 'SourceDestCheck.Value'.
2014-10-22 20:25:09 -04:00
dreadpirateshawn
4f847cfb4b ModifyInstanceAttribute: Added support for 'SourceDestCheck.Value'. 2014-10-22 15:11:37 -07:00
Joseph Lawson
ff27ef9e91 XML escape body of sqs message body prior to encoding to XML 2014-10-22 16:05:26 -04:00
Steve Pulec
c02ed667d5 Merge pull request #235 from joekiller/enhance/cloudformation_getatt_tags_and_resource_naming
Enhance/cloudformation getatt tags and resource naming
2014-10-21 22:37:01 -04:00
Steve Pulec
bcef13700d Merge pull request #234 from DataDog/add_instance_reason
EC2: Add instance state reason
2014-10-21 22:11:23 -04:00
Joseph Lawson
184d5be54a remove debug exception catch 2014-10-21 21:58:39 -04:00
Steve Pulec
9559c6f746 Merge pull request #230 from joekiller/fix_unsupported_metadata
raise NotImplementedError on unknown metadata path
2014-10-21 19:02:41 -04:00
Joseph Lawson
d4cbc71b0a fix eip physical_resource_id not returning an public_ip if it is in EC2 classic. 2014-10-21 16:37:54 -04:00
Joseph Lawson
54794651d3 implement Fn::Join 2014-10-21 16:29:51 -04:00
Joseph Lawson
d55a0b6ef0 default eip domain to 'standard' for cloudformation creations 2014-10-21 15:59:28 -04:00
Joseph Lawson
a8b967eab0 eip resources have no required properties. 2014-10-21 15:53:38 -04:00
Joseph Lawson
20a69255c3 tweak Fn::GetAtt to return resource_json if resource is not implemented. DRY
This is better than failing out with a misleading Boto 400 error which should only happen when get_cfn_attribute is called but fails.
2014-10-21 14:51:26 -04:00
Joseph Lawson
1d9ffafaa5 create CloudFormation outputs and enable 'Fn::GetAtt' to work. 2014-10-21 12:45:03 -04:00
Arthur Wang
c0049578cb Test filtering get_instances by reason code 2014-10-20 21:00:33 +00:00
Arthur Wang
6963866c7e Add ec2 instance state reason
- Add instance.reason and instance.state_reason
(http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-Item
Type-StateReasonType.html)
- Add ec2 filtering by state-reason-code and state-reason-message
2014-10-20 19:56:34 +00:00
Joseph Lawson
832769b8a7 Name resources via CloudFormation naming convention and tag EC2 resources.
* Make sure taggable resources are tagged per convention: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stack-parameters.html
  * Update CloudFormation parsing to use logical resource ids and name resources as CloudFomation would.
  * Fix tests for CloudFormation stack integration.
2014-10-20 15:16:39 -04:00
Joseph Lawson
91a74424e5 Handle Name Type resources for CloudFormation 2014-10-20 11:45:47 -04:00
Joseph Lawson
cb88b8783d raise NotImplementedError on unknown metadata path 2014-10-15 13:43:38 -04:00
dreadpirateshawn
89fd71eb16 Route Tables: Added support for associate/disassociate subnets. (fixed idempotency) 2014-10-14 14:23:14 -07:00
dreadpirateshawn
db044df0a9 Route Tables: Added support for associate/disassociate subnets. (added replace route table association) 2014-10-14 11:23:42 -07:00
dreadpirateshawn
5d046c76e5 Route Tables: Added support for associate/disassociate subnets. 2014-10-13 16:19:54 -07:00
Steve Pulec
68d2db55d4 Add VPC state. 2014-10-12 21:51:12 -04:00
Hugo Lopes Tavares
aee47395f7 Implement "name" filter to ec2.models.AMI 2014-10-10 15:14:46 -04:00
Joseph Lawson
b9f747fb4f test ip_ranges when authorizing security group ingress rules 2014-10-06 14:49:37 -04:00
Steve Pulec
b82507e41b Add instance_id to spot instance requests. Closes #210. 2014-10-05 22:55:36 -04:00
Steve Pulec
9de7969d2b Fix merge conflicts. 2014-10-05 21:55:23 -04:00
Steve Pulec
8ab284a9d2 Merge pull request #222 from ralfas/master
Added basic support for SQS MessageAttributes.
2014-10-05 21:10:48 -04:00
Ralfas
76aa9a8b22 Added basic support for SQS MessageAttributes. 2014-10-05 19:10:49 +01:00
Steve Pulec
f0724d458e Merge pull request #216 from DreadPirateShawn/ImplementCopyImage
AMI: Implement copy_image.
2014-10-05 10:55:48 -04:00
dreadpirateshawn
2dfd1799ae AMI: Implement copy_image. (part 4, minor refactor for clarity) 2014-10-01 07:59:02 -07:00
Omer Katz
efa687f41d Added tag filters to some of the entities. 2014-10-01 16:18:46 +03:00
Omer Katz
4ec95bac74 Merge branch 'feature/vpc-filters' 2014-10-01 15:56:23 +03:00
Omer Katz
298cf65569 Added the ability to filter by tag-value and refactored the filters to be generic. 2014-10-01 15:44:54 +03:00
Omer Katz
444ab96b4f Added the ability to filter by tag-key. 2014-10-01 15:33:12 +03:00
Steve Pulec
27ef345b64 Merge pull request #218 from thedrow/feature/vpc-filters
Added the cider block, dhcp options id and tag filter to the VPC backend
2014-10-01 08:04:12 -04:00
Steve Pulec
b0fd12dc35 Merge pull request #219 from joekiller/ami_filter_state
allow get_filter_value to return state of ami and test
2014-09-30 22:25:34 -04:00
Joseph Lawson
7fca88e732 Test Fixes and tag: filter.
* fixed test_ec2.test_amis.test_ami_filters to test for AMIs in the state of 'available'
  * enhanced AMI's to be able to take `tag:` filter.
  * added tag: tests for AMIs
2014-09-30 16:42:52 -04:00
Joseph Lawson
866d8b4ea8 allow get_filter_value to return state of ami and test
* updated Ami.get_filter_value to return the state value of the AMI
  * updated test_ec2.test_amis.test_ami_filters to test for AMIs in the state of 'available'
2014-09-30 16:12:23 -04:00
Omer Katz
89bd78b927 Added the ability to filter vpcs by tags. 2014-09-30 17:58:02 +03:00
Omer Katz
ecb23485d0 VPCs can now be filtered by cider block and dhcp options id 2014-09-30 17:29:50 +03:00
Omer Katz
a1be4b7f61 VPCs can now be filtered by id. 2014-09-30 17:08:36 +03:00
dreadpirateshawn
1940f7c17a AMI: Implement copy_image. (part 2, tweaked launch_permission_groups init) 2014-09-29 12:18:39 -07:00
dreadpirateshawn
a4fdce2e55 AMI: Implement copy_image. 2014-09-29 12:06:36 -07:00
Omer Katz
a63e6d2459 netbios type should be coerced to integer.
Otherwise the check always fails.
2014-09-29 18:41:50 +03:00
Steve Pulec
2650d9981f Merge pull request #208 from clorenz7/master
Make S3 Model Timestamps Consistent By Using UTC
2014-09-15 20:53:35 -04:00
Cory Lorenz
5320b39912 Make S3 Model Timestamps Consistent By Using UTC
UTC seems to be default timezone for AWS, and the time strings are reporting as GMT, yet the date time is the local time zone.
2014-09-12 15:37:22 -07:00
dreadpirateshawn
04a4ae88bf Network Interfaces: Added attach/detach support. 2014-09-12 10:53:37 -07:00
dreadpirateshawn
f4d2623a4c DescribeInstances: Added block_device_mapping to XML 2014-09-11 11:29:20 -07:00
Steve Pulec
b8afb3be90 Merge pull request #198 from DreadPirateShawn/VPCDefaultSecurityGroup
VPC: Added default security group upon creation.
2014-09-10 20:57:47 -04:00
Steve Pulec
85f9193dc7 Merge pull request #196 from DreadPirateShawn/SecurityGroupsFilteringFix
Security Groups: Fix for filtering support.
2014-09-10 20:55:47 -04:00
Steve Pulec
a703bc0dd9 Merge pull request #200 from DreadPirateShawn/CleanupDuplicateImport
Cleanup: Removed duplicate import.
2014-09-10 20:52:52 -04:00
Shawn Falkner-Horine
c2cd5b346f Routes: Fixed vpc_peering_connection_id in describe route tables. 2014-09-10 12:22:01 -07:00
Shawn Falkner-Horine
de69a58cf8 Cleanup: Removed duplicate import. 2014-09-10 11:43:27 -07:00
Shawn Falkner-Horine
2cf97ef193 VPC: Added default security group upon creation. 2014-09-10 11:15:43 -07:00
Shawn Falkner-Horine
3f266ebc2b Security Groups: Fix for filtering support. 2014-09-10 09:42:38 -07:00
Konstantinos Koukopoulos
0502427ac1 treat request.headers as a more general list of dicts 2014-09-10 17:37:20 +03:00
Steve Pulec
11dbe5c10f Fix for vpc id in eni template. 2014-09-09 21:14:16 -04:00
Steve Pulec
f0a6510ca3 Merge pull request #191 from DreadPirateShawn/ImplementNetworkInterfaces
Network Interfaces: Initial implementation.
2014-09-09 21:12:06 -04:00
Steve Pulec
1bbb7a70ad Merge pull request #188 from DreadPirateShawn/ImplementRouteTables
Route Tables / Routes: Initial implementation.
2014-09-09 20:48:43 -04:00
Steve Pulec
2cbdef663f Merge pull request #186 from bobbyi/spot_instance_tags
Spot instance tags
2014-09-08 23:22:13 -04:00
Steve Pulec
3feaa39bd3 Merge pull request #185 from bobbyi/filter_instances_by_tag
Support filtering instances by tag
2014-09-08 23:19:43 -04:00
Steve Pulec
c1497886f2 Small IAM param parsing cleanup. 2014-09-08 23:11:20 -04:00
Steve Pulec
2f66709583 Merge pull request #184 from invenia/master
Additional IAM endpoints
2014-09-08 23:06:37 -04:00
Steve Pulec
79e31e7287 Fix route53 hosted zone id parsing.
The zone id previously contained hostedzone/<zone_id>
2014-09-08 22:00:55 -04:00
Shawn Falkner-Horine
9296779999 Network Interfaces: Initial implementation. (fixed ElasticAddress cloudformation 'associate_address' call) 2014-09-08 17:02:37 -07:00
Shawn Falkner-Horine
42f8cea5e6 Network Interfaces: Initial implementation. 2014-09-08 16:50:18 -07:00
Shawn Falkner-Horine
8e330f43b2 Route Tables / Routes: Initial implementation. (Fixed iteritems reference.) 2014-09-05 08:48:44 -07:00
Shawn Falkner-Horine
02f1dc0b3e Route Tables / Routes: Initial implementation. (Fixed deletion of main route table via deletion of VPC.) 2014-09-05 08:45:36 -07:00
Shawn Falkner-Horine
534039f465 Route Tables / Routes: Initial implementation. (Fixed modification of dict while looping said dict.) 2014-09-04 17:07:00 -07:00
Shawn Falkner-Horine
22e6166e4e Route Tables / Routes: Initial implementation. 2014-09-04 16:23:59 -07:00
Bobby Impollonia
8ac549569e Add support for filtering spot instance requests 2014-09-04 12:39:14 -07:00
Bobby Impollonia
f029fe672d Add support for getting spot instance request tags 2014-09-04 12:38:09 -07:00
Rory-Finnegan
f1227e396a Fixed stupid "random_alphanumeric" typo that got repeated due to tab completion. 2014-09-04 10:34:01 -04:00
Bobby Impollonia
4403ea955f Support filtering instances by tag 2014-09-04 07:30:19 -07:00
Rory-Finnegan
c2dd4a7ee4 Fixed py33 errors. 2014-09-03 19:52:23 -04:00
Rory-Finnegan
bf996f1461 Fixed py26 errors related to using assert_raises in tests. 2014-09-03 19:24:05 -04:00
Rory-Finnegan
665beda466 Added support to get_all_security_groups endpoint to actually filter groups.
- Filters by groupnames, group_ids and a filters. However, the filters option doesn't
   support owner-id and tags since neither attribute was readily available via the SecurityGroup object.

 - Also included a basic test to confirm it works.
2014-09-03 16:57:51 -04:00
Rory-Finnegan
a3b02f3f8b Added get_user and delete_access_key endpoints. 2014-09-03 16:57:51 -04:00
Rory-Finnegan
ac74af4085 Added several new endpoints for accessing iam groups and users,
include unit tests.
2014-09-03 16:57:03 -04:00
Steve Pulec
22d9141122 Cleanup route53 local variable names. 2014-08-29 21:14:24 -04:00
Steve Pulec
c6cb503b61 Make _get_multi_param smarter. 2014-08-29 20:31:02 -04:00
Steve Pulec
ae2898b382 Merge pull request #181 from ghalib/create-existing-queue-noop
Creating a queue with existing name is now a no-op
2014-08-29 19:50:21 -04:00
Ghalib Suleiman
18bad6994d Creating a queue with existing name is now a no-op
This is more in line with Amazon's CreateQueue API
(http://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_CreateQueue.html).

Previously, calling create_queue with a name that already existed
would cause moto to overwrite the existing queue with a new empty one.
2014-08-29 15:13:59 -06:00
David Baumgold
eedb4c4b73 Support Python 3 using six 2014-08-28 10:57:43 -04:00
Steve Pulec
cfda83dcba Merge pull request #180 from DreadPirateShawn/AMIsModifyAndDescribe
AMIs: Added ModifyImageAttribute and DescribeImages filtering.
2014-08-27 21:28:15 -04:00
Steve Pulec
ca13c141d3 Merge pull request #176 from singingwolfboy/unicode_literals
Unicode literals
2014-08-27 21:19:50 -04:00
Shawn Falkner-Horine
f9246def75 AMIs: Added ModifyImageAttribute and DescribeImages filtering. 2014-08-27 11:53:44 -07:00
Shawn Falkner-Horine
acaad7026b Remove VIM swap files. 2014-08-27 08:59:51 -07:00
David Baumgold
4201e6b430 from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
Steve Pulec
b69179818c Merge pull request #175 from DreadPirateShawn/SnapshotAttributes
Implementation for ModifySnapshotAttribute and DescribeSnapshotAttribute.
2014-08-26 20:53:46 -04:00
Steve Pulec
8f79d71f3f Merge pull request #172 from DreadPirateShawn/CreateSubnetVPCValidation
Create subnet vpc validation
2014-08-26 20:36:26 -04:00
Steve Pulec
1846f28b41 Merge pull request #170 from DreadPirateShawn/DescribeSubnetsFiltering
DescribeSubnets: Added support for 'filters' parameter.
2014-08-26 20:35:19 -04:00
Hugo Lopes Tavares
bce64599f7 Get region names in a backward compatible way 2014-08-26 18:21:26 -04:00
Shawn Falkner-Horine
ebc0037659 Implementation for ModifySnapshotAttribute and DescribeSnapshotAttribute. 2014-08-26 15:16:58 -07:00
Hugo Lopes Tavares
7e69c69ae0 Add multi-region support to Autoscaling 2014-08-26 17:56:56 -04:00
Hugo Lopes Tavares
82eef28937 Add multi-region support to EC2 Instances 2014-08-26 17:56:56 -04:00
Shawn Falkner-Horine
0ecae450a1 CreateSubnet: Added VPC ID validation. 2014-08-26 14:04:34 -07:00
Shawn Falkner-Horine
c89e7c6de1 DescribeSubnets: Added support for 'filters' parameter. (fixed NotImplemented error message) 2014-08-26 13:31:08 -07:00
Shawn Falkner-Horine
d683c3b291 DescribeSubnets: Added support for 'filters' parameter. 2014-08-26 13:25:37 -07:00
Shawn Falkner-Horine
d160f2c6d6 Error handling: Model-level validations, proper error responses. (removed deprecated error template) 2014-08-25 14:02:02 -07:00
Shawn Falkner-Horine
9938995e05 Error handling: Model-level validations, proper error responses. (added coverage for new instance status call) 2014-08-25 14:00:35 -07:00
Shawn Falkner-Horine
5c46898b17 Merge remote-tracking branch 'upstream/master'
Conflicts:
	moto/ec2/responses/instances.py
2014-08-25 13:43:23 -07:00
Shawn Falkner-Horine
071c03e216 Error handling: Model-level validations, proper error responses. 2014-08-25 10:54:47 -07:00
Andres Riancho
c65ff170b2 Fix NotImplementedError: The describe_instance_status action has not been implemented #163 2014-08-20 14:52:23 -03:00
Andres Riancho
4b1b0f8514 Minor refactoring to avoid code duplication 2014-08-20 14:51:24 -03:00
Steve Pulec
195505948b Merge pull request #162 from andresriancho/master
Fix block device mapping #160
2014-08-20 07:39:24 -04:00
Steve Pulec
9d06ccf0cd Merge pull request #156 from DreadPirateShawn/VPCPeeringConnections
Add support for VPCPeeringConnections.
2014-08-20 07:38:28 -04:00
Andres Riancho
9c1032da58 Fix #160, implemented blockDeviceMapping modify_attribute set 2014-08-20 08:20:08 -03:00
Steve Pulec
64ed605c14 Ignore S3 ACL for now since we do not implement it. 2014-08-13 22:13:23 -04:00
Ghalib Suleiman
f4a2f1a51f Turn on threading for Werkzeug's run_simple()
This is now default behavior. Without this, moto is unable to deal
with simultaneous requests.
2014-08-12 15:07:29 -07:00
Steve Pulec
d2fc7bb7f9 Merge pull request #139 from kouk/backendaccess
general support for access to backend models
2014-08-02 10:43:35 -04:00
Shawn Falkner-Horine
42a305239c Add support for VPCPeeringConnections. 2014-07-31 14:41:30 -07:00
Colin Johnson
853d6768ce moto-152 - return vpc.id if exists else return nothing 2014-07-25 05:16:53 +00:00
Steve Pulec
4b5b072b27 Merge pull request #150 from kevgliss/enhanced_ssl_support
Enhanced ssl support
2014-07-18 20:55:02 -04:00
Kevin Glisson
fc30f5ba1f adding tests 2014-07-18 17:31:57 -07:00
Kevin Glisson
c8d8f00241 adding ability to delete elb listeners 2014-07-18 16:06:37 -07:00
Steve Pulec
3a063862a7 Merge pull request #148 from mrucci/fix-describe-asg
Fix retrieval of autoscaling group instances.
2014-07-14 20:37:26 -04:00
Marco Rucci
ada20cea61 Fix retrieval of autoscaling group instances. 2014-07-13 20:47:35 +02:00
Marco Rucci
9f092e6192 Route 53 GET request honors the Name parameter.
Now record sets can be retrieved by name via get_all_rrsets.
2014-07-13 19:48:20 +02:00
Steve Pulec
5e35348c0d Cleanup S3 model methods to better deal with missing buckets. 2014-07-08 21:20:29 -04:00
Steve Pulec
be25a2ba99 Fix S3 to work with other regions. 2014-07-08 20:35:48 -04:00
Steve Pulec
dc11f71ff0 Add NextToken element to appropriate SNS responses. cc #144 2014-07-01 21:14:28 -04:00
Richard Eames
4cc45c3ac5 Implementation of bucket.list_versions 2014-06-27 16:21:32 -06:00
Richard Eames
e972000bb4 Keep track of previous versions of keys 2014-06-27 15:37:51 -06:00
Richard Eames
5409d99ca2 Added basic implementation of key/bucket versioning 2014-06-27 11:34:00 -06:00
Clint Ecker
ca6a9bad4f use proper message encoding 2014-06-23 13:53:46 -05:00
Clint Ecker
a9ef2eaaf4 typos 2014-06-22 13:34:32 -05:00
Clint Ecker
67933574b9 Formatting indices for python2.6 2014-06-22 13:33:49 -05:00
Clint Ecker
0d2991d733 forgot to add new exceptions file 2014-06-20 16:31:19 -05:00
Clint Ecker
049b73485f test changing visibility improperly 2014-06-20 16:29:40 -05:00
Clint Ecker
cb52ad6da3 get total seconds that works in >2.3 2014-06-20 16:14:22 -05:00
Clint Ecker
c18e0cc82e Enhanced SQS support
- Support for delaying messages
- Support for visibility timeouts
- Support for actually deleting messages
- Support for message bodies longer than 27 characters
- Support for message attributes
- Support for accurate queue attributes

Caveats:

- All message attributes are returned regardless of whether or not
attributes were requested when reading messages
- I’m not sure why messages longer than 27 characters were breaking in
my tests. Boto seems to expect the body to be base64 encoded and bodies
less than 27 characters would be fine, but if I attempted to use a
larger body it would mangle the content. I now base64 encode the body
if the raw string is longer than 27 characters and all is fine.
2014-06-20 15:00:36 -05:00
Konstantinos Koukopoulos
fa8485b599 provide SpotRequestBackend with model accessor 2014-06-18 10:46:58 +03:00
Konstantinos Koukopoulos
76a6a86eac add Model metaclass to collect model accessor methods from backend classes 2014-06-18 10:46:20 +03:00
Steve Pulec
aec7d8e998 Merge pull request #138 from IlyaSukhanov/master
Implement internet gateway mocking
2014-06-17 22:28:16 -04:00
Konstantinos Koukopoulos
60bba47624 switch to using boto's SpotInstanceRequest in backend 2014-06-17 19:04:38 +03:00
Ilya Sukhanov
bcb0e7a3d4 Implement internet gateway mocking 2014-06-08 09:45:18 -04:00
Christian Wittwer
96843fdfe8 Attribute instance-id added to filter dict 2014-06-05 10:52:41 +02:00
Kevin Glisson
d2029c3fa3 adding - get all certificates, get certificate, and upload certificates endpoints 2014-05-29 14:25:26 -07:00
Steve Pulec
0fbe7a3940 Merge pull request #133 from kouk/server_response_headers
don't provide request headers as response headers in server
2014-05-20 08:48:48 -04:00
Konstantinos Koukopoulos
2b186511e8 don't provide request headers as response headers in server 2014-05-20 14:43:57 +03:00
Steve Pulec
e38f7d4662 Fix string formatting for py26 2014-05-11 23:07:05 -04:00
Steve Pulec
216750c05b Add basic SNS support. 2014-05-11 22:56:44 -04:00
Steve Pulec
955b4c6c4a Add tagging to all applicable EC2 objects. Closes #66. 2014-05-11 19:00:28 -04:00
Steve Pulec
06481ebe7e Require a GroupDescription for security group creation. Closes #112. 2014-05-11 17:37:00 -04:00
Chris St. Pierre
fab37942c4 Consistent _get_multi_param() function in responses
This abstracts _get_multi_param() into BaseResponse and makes it
always ensure that the string it has been given ends with a '.'.  It
had been implemented in three different places, and in use it rarely
postpended a trailing period, which could make it match parameters it
shouldn't have.
2014-05-08 10:44:41 -04:00
Chris St. Pierre
745368242e Allow passing security groups by ID when creating instances 2014-05-07 10:04:07 -04:00
Chris St. Pierre
b244457c4f Added key_name support to instances 2014-05-07 10:04:07 -04:00
Chris St. Pierre
4ba4dd5e26 Added subnet_id support to instances 2014-05-07 10:04:07 -04:00
Chris St. Pierre
5ba2b3cb9a Added instance_type support to instances 2014-05-07 10:04:07 -04:00
Gabe Rives-Corbett
9f912e7a1f Implemeted bucket.delete_keys closes #124 2014-05-06 17:21:33 -04:00
Andrew Gross
dbe17d059f Fix some merge issues, add block device parsing 2014-04-25 15:44:55 -04:00
Andrew Gross
a0e48a6cf5 [Block Device] Add block device mapping to launch config backend 2014-04-24 16:49:16 -04:00
Ilya Sukhanov
15b750a277 Implement ec2 dhcp_options 2014-04-22 17:47:40 -04:00
Ilya Sukhanov
e76b4c1250 Fix: Preseve status code in header when != 200
before:
    reply: 'HTTP/1.1 400 Bad Request\n'
    header: date: Wed, 16 Apr 2014 00:30:07 GMT
    header: content-type: text/plain; charset=utf-8
    header: content-length: 286
    header: server: Python/HTTPretty
    header: status: 200
    header: connection: close

after:
    reply: 'HTTP/1.1 400 Bad Request\n'
    header: date: Wed, 16 Apr 2014 00:32:45 GMT
    header: content-type: text/plain; charset=utf-8
    header: content-length: 286
    header: server: Python/HTTPretty
    header: status: 400
    header: connection: close

Note how status and reply http did not match before but do now.
2014-04-22 17:35:15 -04:00
Ilya Sukhanov
aa644b4340 Allow returning http errors with exceptions
before:
    def my_response_method(self):
        ...
        if error:
            return template, {'status'=400}

after:
    def my_response_method(self):
        ...
        if error:
            raise MyResponseError("bad thing happened")
where MyResponseError inherits from HTTPException
2014-04-22 17:35:15 -04:00
Konstantinos Koukopoulos
d4602b9cae support listing all multipart uploads 2014-04-02 19:09:48 +03:00
Konstantinos Koukopoulos
9954612035 add format field numbers for python 2.6 support 2014-04-02 16:34:29 +03:00
Konstantinos Koukopoulos
84ec801a52 refactor etag calculation to support a correct multipart key etag 2014-04-02 14:40:04 +03:00
Steve Pulec
1767d17018 Cleanup S3 a bit and add more coverage 2014-03-30 11:50:36 -04:00
Steve Pulec
815bb8846c Change subnets to only have a reference to the vpc_id. 2014-03-28 16:37:55 -04:00
Steve Pulec
1c10d887c0 Fix bug with Gateway Id not being required for Routes 2014-03-28 16:17:43 -04:00
Steve Pulec
ef876dd27e Fix merge conflicts. Add basic cloudformation support. Closes #111. 2014-03-27 19:12:53 -04:00
Steve Pulec
069c48b43a Merge pull request #115 from kouk/s3restore
RRD and restore support
2014-03-27 08:40:18 -04:00
Konstantinos Koukopoulos
11938dae7a fix restore header formatting 2014-03-27 10:00:50 +02:00
Konstantinos Koukopoulos
8ada1d7829 support restore operation on s3 keys 2014-03-26 19:15:08 +02:00
Konstantinos Koukopoulos
c9d5dffa24 support reduced redundancy storage 2014-03-26 17:52:31 +02:00
Konstantinos Koukopoulos
1f49148a64 when copying keys create new objects using deepcopy 2014-03-26 17:41:07 +02:00
Konstantinos Koukopoulos
2ba64e1322 support replacing key metadata when copying 2014-03-26 16:02:14 +02:00
Joe Rickerby
73602958ed Fix bug with POST uploads returning 400 client error 2014-03-26 13:53:14 +00:00
Steve Pulec
140f1c2000 Add ability to launch instances with security groups. 2014-03-22 14:02:47 -04:00
Steve Pulec
a9b48ed836 Merge pull request #109 from StartTheShift/fix_vpc_grant_permission_issue
Fix vpc grant permission to groups issue
2014-03-21 17:06:18 -04:00
Jon Haddad
77ab6d2022 removed unnecessary itertools chain.
added success test case around authorize & revoke
2014-03-21 13:31:00 -07:00
Steve Pulec
2cd5418ffa Merge pull request #110 from kouk/multipart-copy
support x-amz-copy-source in multipart uploads
2014-03-21 15:50:54 -04:00
Konstantinos Koukopoulos
c68a1d3e9d support x-amz-copy-source in multipart uploads 2014-03-21 17:33:51 +02:00
Konstantinos Koukopoulos
b3608cac66 remove whitespace in sample responses in STS get_federation_token response 2014-03-21 13:08:31 +02:00
Konstantinos Koukopoulos
bcc2aa3394 fix querystring handling in get_federation_token 2014-03-21 13:08:08 +02:00
Jon Haddad
ecaf53fd28 fix for VPC revoking of rules related to groups 2014-03-20 17:53:39 -07:00
Jon Haddad
2b4fe552d1 VPC support for adding rules improving 2014-03-20 17:52:49 -07:00
Jon Haddad
cbdc8ba183 We're getting back the correct group from get_security_group_from_id,
but hitting another issue with the source_group_name also using an id
rather than a name
2014-03-20 17:26:08 -07:00
Konstantinos Koukopoulos
fb558bb1ca add support for sts get_federation_token 2014-03-20 18:29:39 +02:00
Steve Pulec
60cd79c6e2 S3 Mock should return an HTTP 409 if trying to create a bucket that
already exists. Closes #94.
2014-03-16 21:25:54 -04:00
jexhson
8612e9d782 Use hash_key in query to filter returned items 2014-03-14 16:37:01 +01:00
Steve Pulec
2e10f46e96 Merge pull request #101 from kouk/keypairs
Basic support for KeyPairs
2014-03-04 17:53:52 -05:00
Hugo Lopes Tavares
8b6facf133 Add support to launch configuration AssociatePublicIpAddress parameter 2014-03-04 17:39:19 -05:00
Jeff Gregory
598c22528f added support for ScanIndexForward and actual range ordering on range items and not just the dictionaries 2014-03-03 13:41:07 -08:00
Konstantinos Koukopoulos
8db4097861 raise NotImplementedError when Filters are used in describe_key_pairs 2014-02-24 16:35:03 +02:00
Konstantinos Koukopoulos
e19967b7d5 support names in DescribeKeyPairs 2014-02-24 15:22:08 +02:00
Konstantinos Koukopoulos
72ae98128c really delete key pair 2014-02-24 13:38:46 +02:00
Konstantinos Koukopoulos
e7d2c2687a implement delete_key_pair, test zero case 2014-02-24 13:34:39 +02:00
Konstantinos Koukopoulos
99c6b8acbe test DescribeKeyPairs with more than one key pair 2014-02-24 13:20:47 +02:00
Konstantinos Koukopoulos
35063ca743 make duplicate key pair test pass 2014-02-24 13:13:23 +02:00
Konstantinos Koukopoulos
ddfe478479 implement test for create_key_pair 2014-02-24 13:03:26 +02:00
Konstantinos Koukopoulos
65beb30054 create KeyPairBackend in ec2 model, use in keypair test 2014-02-24 12:42:50 +02:00
Konstantinos Koukopoulos
d438b05d41 return empty key pairs response 2014-02-24 12:18:52 +02:00
Jeff Gregory
76856aadc7 Query sort keying on index values and not index hashes which was causing unexpected ording results 2014-02-23 03:11:54 -08:00
Jeff Gregory
372e2d8729 Query order/limit enforced. Scan limit enforced 2014-02-21 13:33:46 -08:00
Michael Ossareh
470ade25eb support QueueNamePrefix in the SQS Backend 2014-02-20 11:28:53 -08:00
Gilles Dartiguelongue
49ecfad6b1 Implement HEAD method due to changes in boto 2.25, closes: #91 2014-02-10 12:18:12 +01:00
Steve Pulec
403250e919 Fix S3 URL Regex to allow slashes in key names. 2014-02-06 20:47:56 -05:00
Steve Pulec
ec2de04c20 Merge pull request #84 from vrivellino/master
moto.route53.responses.rrset_response() fix for spulec/moto#83
2014-02-06 20:37:10 -05:00
sgarcialaguna
e1366165d1 Fixed typo in REQUEST_POST_INSTANCES_TEMPLATE 2014-01-29 19:41:47 +01:00
Hugo Lopes Tavares
4e88d79da2 Refactor AmiBackend.describe_images: make logic of missing image simpler 2014-01-28 18:53:12 -05:00
Hugo Lopes Tavares
90aa87d53e Fix DescribeImages to throw error if AMI requested does not exist 2014-01-28 18:15:29 -05:00
Vincent Rivellino
eb93a2bcd1 Route53 Zone.update_record() fix [spulec/moto#83]
* Zone.update_record() issues what is essentially a batched update to
   the AWS Route53 API: It's a DELETE followed by a CREATE.  This fix
   allow moto to handle that batched update.
2014-01-24 14:34:53 -05:00
Steve Pulec
262b698149 Fix for security groups with other security source groups. Closes #80. 2014-01-19 06:54:25 -05:00
Steve Pulec
f6e166c96d Merge pull request #79 from Zulunko/master
Enables the usage of special characters in keys when using s3bucket_path
2014-01-11 17:25:56 -08:00
Eric Lang
fcb2542410 Special characters now allowed in s3bucket_path keys. Fixes issue #78. 2014-01-07 13:25:14 -08:00
Sorin
776e1bc65a Merge branch 'master' into dynamov2_no_indexes 2014-01-07 11:10:24 +02:00
Steve Pulec
5e7936123c Add comments for optional argparse positional argument 2013-12-30 13:32:07 -05:00
Steve Pulec
f0c6d1124c Make service argument optional so that you can actually use all services 2013-12-30 13:30:11 -05:00
Steve Pulec
c4c342c570 Fix bug with backend_name vs backend. 2013-12-30 12:33:31 -05:00
Steve Pulec
8b278eb05d Clean up querystring logic. 2013-12-29 21:50:25 -05:00
Andres Riancho
ffcbaf366e Remove debug print 2013-12-29 21:50:05 -05:00
Andres Riancho
c6515af8bf Now we have a stand-alone server which can provide services for more than one backend at the same time 2013-12-29 21:50:05 -05:00
Andres Riancho
56357d344c Making URL a little bit more strict 2013-12-29 21:49:17 -05:00
Steve Pulec
c1f224954e Cleanup some style 2013-12-29 08:59:07 -05:00
Steve Pulec
74e2c19865 Cleanup unused imports 2013-12-29 08:40:38 -05:00
Steve Pulec
f3890ffc31 Fix for EC2Response MRO 2013-12-29 08:34:07 -05:00
Steve Pulec
ec938ef904 Convert all EC2Response Mixins to subclasses. 2013-12-29 08:25:13 -05:00
Steve Pulec
2073dc769a Clean up querystring logic. 2013-12-28 20:15:42 -05:00
Andres Riancho
d58f406de4 Fixes https://github.com/spulec/moto/issues/74 2013-12-28 20:15:42 -05:00
Andres Riancho
186b40de54 All tests pass! Fixes https://github.com/spulec/moto/issues/72 2013-12-26 13:52:03 -03:00
Andres Riancho
748fa52cca Fix for https://github.com/spulec/moto/issues/72
Need to run the whole test suite to make sure no regressions were added
2013-12-26 13:12:50 -03:00
creyer
48cfd19fe6 dynamodb v2 no indexes 2013-12-10 11:51:54 +02:00
Jon Haddad
48ee4b600b updated SC methods to work with a group_id, which must be used if it's a group in a VPC 2013-12-06 14:34:13 -08:00
Jon Haddad
0e316d8fc3 fixed spot instances creation 2013-12-05 16:45:18 -08:00
Jon Haddad
0712d40f71 added vpc_id to deletion 2013-12-05 16:39:25 -08:00
Jon Haddad
4fc7317804 Merge branch 'master' of https://github.com/spulec/moto into sg_vpc_support 2013-12-05 16:26:07 -08:00
Steve Pulec
8cc9b1acc3 Merge pull request #65 from jjofseattle/master
add route53 support
2013-11-23 07:30:45 -08:00
jjofseattle
38b26f038f handle double deletion caused by httpretty 2013-11-20 14:45:44 -08:00
jjofseattle
2d6e649245 improve coverage 2013-11-15 16:20:25 -08:00
jjofseattle
08777e4b18 pep8 2013-11-15 15:35:46 -08:00
jjofseattle
8da1d31432 fix style issues 2013-11-15 15:29:01 -08:00
Konstantinos Koukopoulos
3846c46990 replace literal ints with constants 2013-11-15 11:53:39 +02:00
jjofseattle
a11c80fe20 add route53 2013-11-14 11:14:14 -08:00
Konstantinos Koukopoulos
bdf5a9e26b convert to bytes for python 2.6 2013-11-14 17:47:03 +02:00
Konstantinos Koukopoulos
3628e40f3c Merge remote-tracking branch 'spulec/master'
Conflicts:
	moto/s3/responses.py
2013-11-14 17:17:35 +02:00
Jeff Gregory
df3155c869 when getting a key (HEAD request) return key.value instead of empty string. This is will mirror boto's method. 2013-11-08 15:36:39 -05:00
Brock Pytlik
5a475881d2 support bucket names in url paths in s3bucket_path 2013-11-08 15:36:38 -05:00
Mike Attili
d9862aaa65 Correct size check on multipart uploads. All parts except last must be > 5MB 2013-11-07 17:09:53 -05:00
Jon Haddad
c2dad5357f correctly passing vpc_id through to revoke 2013-11-01 12:56:53 -07:00
Jon Haddad
9cbac9bbf4 reworked internals, groups is now a dict of dicts. need to fix errors coming back from revoking and deleting groups 2013-10-30 20:11:15 -07:00
Jon Haddad
6ad8e109e4 more concise jinja 2013-10-30 18:59:21 -07:00
Jon Haddad
9ae144bad8 correctly getting the vpc address back 2013-10-30 18:50:42 -07:00
Jeff Gregory
c75a233f6c when getting a key (HEAD request) return key.value instead of empty string. This is will mirror boto's method. 2013-10-25 14:36:49 -07:00
Ilya Sukhanov
f8f8d25426 Implement Elastic IP 2013-10-08 22:30:21 -04:00
Ilya Sukhanov
a63601e481 Implement ImageId parameter in DescribeImages 2013-10-08 22:30:21 -04:00
Ilya Sukhanov
b5a454e0da When manipulating instance save end states instead of transitional
When starting an instance it should eventually enter running state. At
least in the normal case. So we report pending but save running, this
way when client requests state of instance a second time, we reply with
running.

Similar thing for stop/terminate/reboot.
2013-10-08 22:30:21 -04:00
Steve Pulec
d8ca75deaa Merge pull request #48 from spulec/py26
Now supporting Python 2.6 as long as we're using the very latest HTTPretty
2013-10-03 17:43:37 -07:00
Steve Pulec
3bddbb4af3 Test out py26 with new HTTPretty 2013-10-03 20:34:13 -04:00
Konstantinos Koukopoulos
b1d59c7e17 support cancelling of multipart upload 2013-09-30 18:36:25 +03:00
Konstantinos Koukopoulos
e49006c723 remove pdb 2013-09-30 16:36:51 +03:00
Konstantinos Koukopoulos
8f47355493 remove plus from id (for real this time) 2013-09-30 14:50:23 +03:00
Konstantinos Koukopoulos
4539012db6 throw proper error if multipart upload is too small 2013-09-30 14:35:24 +03:00
Konstantinos Koukopoulos
aead9bb0d5 Complete MultiPart Operation does specify a body 2013-09-30 14:34:56 +03:00
Konstantinos Koukopoulos
3630b3c21a remove plus sign from id because it doesn't get parsed correctly in query string 2013-09-30 12:10:35 +03:00
Konstantinos Koukopoulos
04789a59fa don't forget to send the etag in the headers when uploading a part 2013-09-30 12:10:05 +03:00
Konstantinos Koukopoulos
9746e72e1d implement list parts 2013-09-30 12:09:35 +03:00
Konstantinos Koukopoulos
24ff30f9fc multipart_id doesn't exist, it's upload_id 2013-09-30 11:51:18 +03:00
Konstantinos Koukopoulos
0b45622dcb render part upload response correctly 2013-09-30 11:50:41 +03:00
Konstantinos Koukopoulos
f25caa872d Merge branch 'master' of github.com:spulec/moto
Conflicts:
	moto/s3/models.py
	moto/s3/responses.py
2013-09-30 11:02:25 +03:00
Ryan Permeh
e951a7f2d7 push fixed value 2013-09-27 11:00:40 -07:00
Ryan Permeh
a5ecf26f5a updated to fix split issue with paths with slashes 2013-09-27 10:47:32 -07:00
Marcus Ahle
611b820e3d Adding HTML support for SES send_email() 2013-09-25 13:51:49 -04:00
Sylvain Fraïssé
0fd4a5a6f8 Updates a test to show the ltrip use problem 2013-09-24 00:00:52 +02:00
Sylvain Fraïssé
596b435e57 Fix the 'www.' strip changing the lstrip method by the replace 2013-09-23 23:34:33 +02:00
Steve Pulec
afad0bed14 Add ebs_optimized parameter to launch configurations 2013-09-10 16:54:57 -04:00
Steve Pulec
dc2802a238 Set __wrapped__ on MockAWS decorator to be the test function. cc #41. 2013-09-10 08:27:28 -04:00
Steve Pulec
a0e2cb3d98 Add EC2 spot instances 2013-08-17 18:11:29 -04:00
Steve Pulec
62b72377bd Add visibletoallusers and normalizedinstancehours to EMR 2013-08-10 20:03:57 -04:00
Steve Pulec
e251fd8930 Add job_flow_role param or EMR 2013-08-08 10:40:29 -04:00
Steve Pulec
ded410460f Add EMR backend 2013-08-07 20:36:58 -04:00
Steve Pulec
cea25e75c5 basic emr done 2013-08-07 20:32:29 -04:00
Steve Pulec
161a5744d1 Add more autoscaling params 2013-08-03 17:09:36 -04:00
Steve Pulec
d57157e749 Merge in autoscaling 2013-07-27 16:24:38 -04:00
Steve Pulec
674a85ba0b Cleanup backend finding 2013-07-26 15:14:34 -04:00
Steve Pulec
8ad458cd72 Fix sys.argv bug 2013-07-26 15:03:16 -04:00
Lincoln de Sousa
2d51e38eab Using argparse instead of using sys.argv directly 2013-07-26 14:46:14 -04:00
Steve Pulec
befcadc7fc Add ELB server test 2013-07-22 22:56:02 -04:00
Steve Pulec
b40d3a5629 Basic ELB support 2013-07-22 22:50:58 -04:00
Steve Pulec
421a5e60af Fix EC2 response tags. Closes #37. 2013-07-17 12:48:21 -04:00
Steve Pulec
af31744dbd If ec2 filtering exclude all instances for a reservation, remove the reservation from the results. 2013-07-08 22:25:25 -04:00
Steve Pulec
46f9430bdd Fix bug with modifying original reservations 2013-07-08 22:20:55 -04:00
Steve Pulec
257ca9f771 Add ec2 filtering by instance state 2013-07-08 21:18:05 -04:00
Steve Pulec
76ea9172da Clean up ec2 instance state 2013-07-08 20:29:13 -04:00
Steve Pulec
fda5f83f87 Properly implement ec2.get_all_instances filtering by instance id 2013-07-08 19:25:47 -04:00
Steve Pulec
b8957e0c6e Stop using deprecated md5, switch to hashlib. Closes #36 2013-07-08 12:46:36 -04:00
Steve Pulec
c6d6a0273d Fix for iam credentials in boto version < 2.9 2013-06-27 00:01:33 -04:00
Steve Pulec
7ef6a1c44e clean backend finding 2013-06-25 12:45:24 -04:00
Steve Pulec
eb70174ed5 Add port option. 2013-06-25 12:42:24 -04:00
Steve Pulec
87c86bb902 Need to reset app view functions to prevent Flask assertion error on resetting view functions. 2013-06-25 12:36:21 -04:00
Steve Pulec
212d9c7abe core sts endpoints completed 2013-05-24 17:22:34 -04:00
Steve Pulec
3bc975188f more s3 tests for posting 2013-05-17 19:41:39 -04:00
Steve Pulec
9f19662d1c allow passing user data to run_instances 2013-05-17 19:35:53 -04:00
Steve Pulec
c14b8cae74 Merge pull request #31 from Memoto/master
Support for metadata in S3 and POST:ing to a bucket
2013-05-17 06:47:30 -07:00
Dan Berglund
7de4399b93 Added tests and made current tests pass 2013-05-17 11:43:09 +02:00
Dan Berglund
d8e9301c54 Added metadata to HEAD-response, boto uses this when only metadata is fetched 2013-05-17 09:59:05 +02:00
Dan Berglund
3880be5ea9 Added support for metadata on files, and support for POST:ing files to S3 2013-05-17 09:59:04 +02:00
Steve Pulec
549cb23b7f Better error messaging for dynamodb table gets for range key tables without range keys used. cc #28 2013-05-16 22:24:26 -04:00
Steve Pulec
755fe6563b Fix missing dynamodb key status code to fix has_item. Closes #20 2013-05-07 00:19:04 -04:00
Steve Pulec
4c8244b755 Clean up code for listing s3 keys. Fix #14. 2013-05-07 00:03:05 -04:00
Steve Pulec
caf73557cd Fix issue with large S3 values. Closes #11. 2013-05-06 23:33:59 -04:00
Steve Pulec
4345077173 coverage back at 100% 2013-05-03 20:14:33 -04:00
Steve Pulec
47bd4c49a3 attempting to move to upstream httpretty 2013-05-03 19:33:13 -04:00
Steve Pulec
fd828bdb2d Revert "Switch to real version of httpretty. woot."
This reverts commit 84aeff5b06.
2013-04-30 08:33:53 -04:00
Steve Pulec
84aeff5b06 Switch to real version of httpretty. woot. 2013-04-29 23:36:24 -04:00
Steve Pulec
3b52ba687d Merge pull request #25 from antimora/moto_23
Returning None in get_queue when not found. Closes spulec/moto#23
2013-04-27 14:54:03 -07:00
dilshod.tadjibaev
64baad79b0 Returning None in get_queue when not found. Closes spulec/moto#23 2013-04-24 00:54:23 -07:00
dilshod.tadjibaev
c9fb6f1cc1 Implemented remaining Queue attributes. This closes spulec/moto#22
The following attributes were added:

  - ApproximateNumberOfMessagesDelayed
  - ApproximateNumberOfMessagesNotVisible
  - CreatedTimestamp
  - DelaySeconds
  - LastModifiedTimestamp
  - MaximumMessageSize
  - MessageRetentionPeriod
  - QueueArn
  - ReceiveMessageWaitTimeSeconds
2013-04-24 00:50:41 -07:00
Steve Pulec
dbf2368aa6 Implement SQS get_queue_url. Closes #18 2013-04-18 23:07:24 -04:00
Steve Pulec
be26daaff4 Fix S3 bucket list objects order and delimiters. Closes #14. 2013-04-13 19:23:32 -04:00
Steve Pulec
98d7a50790 Unquote s3 key names. Closes #13. 2013-04-13 19:00:37 -04:00
Steve Pulec
8fe0c91853 Fix services to work better with other regions. Closes #17. 2013-04-13 18:22:26 -04:00
Steve Pulec
d96769a91c Fix for buckets with periods in them. Closes #15. 2013-04-13 17:28:00 -04:00
Steve Pulec
b7c46ae7bf fix S3 last_modified. Closes #8 2013-03-29 17:45:33 -04:00
Lucian Branescu Mihaila
5854219a4c Upload part and complete upload. Somehow, boto doesn't like output I send it, even though it's copy-pasted from its own logs. 2013-03-26 15:50:18 +00:00
Lucian Branescu Mihaila
f557487e06 Beginning of multipart upload support. 2013-03-26 14:52:33 +00:00
Steve Pulec
e64c73efed Allow writing empty body to s3 key if content-length is zero. Better fix for #6. 2013-03-26 10:11:16 -04:00
Steve Pulec
756955b61e Temporary fix to allow for writing empty strings to s3 keys. Closes #6. 2013-03-26 09:02:04 -04:00
Steve Pulec
2b63c79c90 remove old extra dispatch method 2013-03-23 10:00:43 -04:00
Steve Pulec
e55f26a07a S3 should allow dashes in bucket names. Closes #5. 2013-03-23 09:57:20 -04:00
Steve Pulec
b03d48e6bc fixes to sqs encoding. Closes #4. 2013-03-23 09:44:53 -04:00
Steve Pulec
fe2b3518ae move back to bundled httpretty for now 2013-03-19 11:46:54 -04:00
Steve Pulec
cd518d060e move to httpretty fork instead of bundling it. 2013-03-17 18:13:21 -04:00
Steve Pulec
5bec85c6c0 make httpretty fork closed to upstream 2013-03-17 18:10:31 -04:00
Steve Pulec
46e31d1ecc pull some changes from upstream 2013-03-16 11:20:07 -04:00
Steve Pulec
893b446890 move dynamodb responses from camelcase 2013-03-16 00:33:57 -04:00
Steve Pulec
a5eaaaad51 fix for scanning without filter 2013-03-15 17:14:14 -04:00
Steve Pulec
d29ca8503e move sts handler 2013-03-15 15:45:28 -04:00
Steve Pulec
73a18b5f74 add dynamo sts handler 2013-03-15 13:57:20 -04:00
Steve Pulec
c1b9718282 move dynamo type comparison inside the dynamo type class 2013-03-15 11:10:38 -04:00
Steve Pulec
930e4c9762 fix keys to use types 2013-03-15 00:45:12 -04:00
Steve Pulec
11c1a2a4c1 add tests for tables without range keys. tests back to 100% 2013-03-14 22:52:32 -04:00
Steve Pulec
cc23453d77 add batch get 2013-03-14 00:26:55 -04:00
Steve Pulec
0398da2c8d add batch write 2013-03-13 23:41:01 -04:00
Steve Pulec
3e6f802a20 more comprehensive table scanning and querying 2013-03-13 22:44:54 -04:00
Steve Pulec
ad4b6c4ee2 add dynamodb scanning 2013-03-13 10:11:13 -04:00
Steve Pulec
58ac6c44b0 add comparisons file missed in last commit 2013-03-13 09:07:57 -04:00
Steve Pulec
621ac79f33 add table delete and update. add item ops, including querying. 2013-03-13 09:06:45 -04:00
Steve Pulec
2d98a9caef some more tests to bump coverage 2013-03-11 00:12:22 -04:00
zmsmith
c196e15cf7 Table listing now supports limits and continuations 2013-03-10 21:16:58 -04:00
Steve Pulec
9e9e057289 Mock out instance metadata. Make basic connection with iam roles work. Closes #3. 2013-03-10 16:55:41 -04:00
zmsmith
1cc0e0eac7 adding first error handling 2013-03-10 15:49:35 -04:00
Steve Pulec
316418df55 add subnets 2013-03-05 22:53:53 -05:00
Steve Pulec
584f1f01b6 add vpc commands 2013-03-05 22:33:41 -05:00
Steve Pulec
0d51349662 add get_console_output 2013-03-05 22:11:58 -05:00
Steve Pulec
e993917d4c pep8 2013-03-05 08:35:18 -05:00
Steve Pulec
a728b2581a Adding server mode 2013-03-05 08:14:43 -05:00
Steve Pulec
ab4d65959e httpretty fixes for py26 2013-02-28 22:40:26 -05:00
Steve Pulec
98fc1eeab9 update ec2 calls for boto 2.5 compat 2013-02-28 00:08:35 -05:00
Steve Pulec
6989f7ee59 add sts to dynamo for boto 2.5 backwards compat 2013-02-28 00:03:57 -05:00
Steve Pulec
db943bcdbb add other ways to call decorator 2013-02-27 22:25:15 -05:00
Steve Pulec
459697508e remove extra newline 2013-02-27 01:20:10 -05:00
Steve Pulec
51c5f66aac change all mocking to include http and https 2013-02-27 01:15:26 -05:00
Steve Pulec
b0d89bb7b7 fix s3 key list and missing key response 2013-02-27 01:12:11 -05:00
Steve Pulec
91b61c7be5 another s3 http fix 2013-02-26 15:15:20 -05:00
Steve Pulec
3542f4ec30 make s3 handle http 2013-02-26 15:12:38 -05:00
Steve Pulec
1db787e7da add url path normalization to httpretty 2013-02-26 14:47:47 -05:00
Steve Pulec
d32059f301 pep8 2013-02-26 00:31:01 -05:00
Steve Pulec
bcbec29653 start pep8 cleanup 2013-02-26 00:12:34 -05:00
Steve Pulec
dc9677e323 clean up core responses 2013-02-25 23:48:17 -05:00
Steve Pulec
935e6bd95d fix tag deletion 2013-02-25 23:37:01 -05:00
Steve Pulec
43591249ae test not implemented for sqs 2013-02-25 23:27:10 -05:00
Steve Pulec
757c45c659 replace pdbs with NotImplemented 2013-02-25 23:21:49 -05:00
Steve Pulec
1b3eca72b0 clean up old ec2 code 2013-02-25 23:09:45 -05:00
Steve Pulec
9a92e87f02 add ses core 2013-02-24 23:30:51 -05:00
Steve Pulec
41890225e6 add most of sqs features 2013-02-24 11:06:42 -05:00
Steve Pulec
67261d3125 add set_queue_attributes 2013-02-23 22:35:05 -05:00
Steve Pulec
89364ed864 Adding sqs queue creation 2013-02-23 22:26:46 -05:00
Steve Pulec
e261b82f29 add most of the snapshot implementation 2013-02-23 18:01:41 -05:00
Steve Pulec
f92a3ec00f volume attaching and detaching working 2013-02-23 17:37:55 -05:00
Steve Pulec
7464fcbbe9 clean up ec2 response init 2013-02-23 16:35:25 -05:00
Steve Pulec
0927e107fb when things arent implemented yet raise exception, not pdb 2013-02-23 16:32:40 -05:00
Steve Pulec
1c8af2881a add security group ingress rules 2013-02-23 16:27:43 -05:00
Steve Pulec
31f992fbe5 add, delete, describe security groups 2013-02-23 15:26:54 -05:00
Steve Pulec
fbd9206f23 add basic zone and region endpoints 2013-02-23 14:51:19 -05:00
Steve Pulec
351aca3c68 clean up instance attribute modification and add base AMI stuff 2013-02-23 14:22:09 -05:00
Steve Pulec
301c23a499 suppress boto logging for now for testing 2013-02-23 14:21:28 -05:00
Steve Pulec
0bd4d57ef2 raise NotImplementedError if not implemented 2013-02-22 07:55:48 -05:00
Steve Pulec
27a086409e adding ec2 stubs 2013-02-21 23:13:01 -05:00
Steve Pulec
0df2864f99 convert ugly camelcase methods to nice, clean underscores 2013-02-21 19:34:57 -05:00
Steve Pulec
f824110ceb add ec2 tags 2013-02-20 23:19:43 -05:00
Steve Pulec
568d99dd42 refactor ec2 response structure 2013-02-20 22:21:55 -05:00
Steve Pulec
1d42cc3f53 add instance rebooting 2013-02-19 23:55:01 -05:00
Steve Pulec
4fa9cac7d6 add s3 copy_key 2013-02-19 23:29:46 -05:00
Steve Pulec
1af038290d add instance attribute description and modification 2013-02-19 23:01:19 -05:00
Steve Pulec
38611c3c99 fixing core model reset 2013-02-19 23:01:19 -05:00
zmsmith
7e3aa7c8ee Adding describe table end point 2013-02-19 20:39:04 -05:00
zmsmith
81547e1bc5 PEP8 2013-02-19 20:00:57 -05:00
zmsmith
5086e6e590 Adding intitial DynamoDB setup and implementing ListTables target 2013-02-19 08:28:56 -05:00
Steve Pulec
7907585b65 make instance id parsing more generic 2013-02-18 23:06:23 -05:00
Steve Pulec
3a9c757e46 add instance stop/start 2013-02-18 21:56:22 -05:00
Steve Pulec
4283cca63c clean up urls. start to clean up responses 2013-02-18 21:22:03 -05:00
Steve Pulec
ba360daa0f add get_all_buckets 2013-02-18 17:31:15 -05:00
Steve Pulec
28a46a5a3a add more s3 functions 2013-02-18 17:17:19 -05:00
Steve Pulec
f8633cbab7 rename backends 2013-02-18 16:31:42 -05:00
Steve Pulec
d1bb638ec7 remove .pyc 2013-02-18 16:28:08 -05:00
Steve Pulec
77d6df6531 basic ec2 and s3 working 2013-02-18 16:09:40 -05:00