Commit Graph

2848 Commits

Author SHA1 Message Date
Ben Slusky
796fa6647b modify_db_instance should be able to rename DB instances (#1367) 2017-11-30 11:41:25 +00:00
Kai Xia(夏恺)
9e1a233549 fix KeyError in delete_alias in the KmsBackend. (#1359)
* fix KeyError in delete_alias in the KmsBackend.

If there're several aliases in the backend, previously we will bump into
a KeyError here.

Signed-off-by: Kai Xia <xiaket@gmail.com>

* add doc to make travis try one more time.

Signed-off-by: Kai Xia <xiaket@gmail.com>
a

* add another key and alias before the deletion of an alias.

This was done to make sure that we can correctly handle the deletion
when there are more than one alias defined.

Signed-off-by: Kai Xia <xiaket@gmail.com>
2017-11-27 10:36:25 +00:00
Terry Cain
d5ee48eedd
Lambda improvements (#1344)
* Revamped the lambda function storage to do versioning.

* Flake8

* .

* Fixes

* Swapped around an if
2017-11-26 21:28:28 +00:00
Toshiya Kawasaki
cfc994d0ae Add publish operation to iotdata (#1362)
* add publish operation to iotdata

* restart ci
2017-11-24 17:22:53 +00:00
Jack Danger
172396e6a8 Updating CONTRIBUTING with release instructions 2017-11-20 13:17:24 -08:00
Jack Danger
e227a30aa9
Merge pull request #1352 from JackDanger/version-1.1.25
bumping to version 1.1.25
2017-11-20 12:09:01 -08:00
Jack Danger
0f3c6df836 Updating implementation coverage 2017-11-20 12:07:37 -08:00
Jack Danger
360d497885 Updating implementation coverage 2017-11-20 12:05:29 -08:00
Jack Danger
a8ebb25efc sorting implementation coverage 2017-11-20 12:05:25 -08:00
Jack Danger
2b9e834e84 sorting implementation coverage 2017-11-20 10:34:07 -08:00
Jack Danger
6e840022fb Changelog entry for 1.1.25 2017-11-20 10:31:47 -08:00
Jack Danger
81053e84fa Updating implementation coverage 2017-11-20 10:29:04 -08:00
Jack Danger
1744f4340f bumping to version 1.1.25 2017-11-20 10:26:59 -08:00
Toshiya Kawasaki
871625998c tweak ecrv2 FakeTargetgroups's default value (#1351) 2017-11-20 17:13:47 +00:00
Toshiya Kawasaki
49a2724d76 Set default value to elbv2 FakeTargetGroup (#1349) 2017-11-20 11:18:21 +00:00
justinsr20
17b8396a9c updated rds status from shutdown to stopped to match aws (#1347) 2017-11-20 09:07:36 +00:00
Jessie Nadler
04c5198a0c Add default ecs attributes and format in response obj (#1346)
* Initialize EC2ContainerServiceBackend and ContainerInstance objects with region_name

* Initialize ContainerInstance with default attributes
  * These attributes are automatically applied by ECS when a container is registered
  * Docs: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html#attributes

* Format container_instance.attributes for response_object

* Python3

* Only use available ECS regions for ecs_backends

* Sort dictionaries on key='name' using lambda

* Sort all dicts in tests using lambda
2017-11-17 18:25:08 +00:00
Victor Hiairrassary
caec929506 Improve SSM PutParameter & DescribeParameters actions (#1348) 2017-11-17 08:57:11 +00:00
Terry Cain
2609f6cd3a
Added support for dynamo update_item on nested dicts (#1345) 2017-11-17 08:49:59 +00:00
Waldemar Hummer
cdb7305dac use S3 path style addressing when running in kubernetes (#1315) 2017-11-15 19:37:39 +00:00
Hugo Lopes Tavares
aa6a0765c1 Move target group default values to model FakeTargetGroup (#1343)
Before this commit everything that needs to create target groups
had to handle the default values (i.e., cloudformation call & ELBV2Response call)
2017-11-15 19:36:53 +00:00
Hugo Lopes Tavares
7b1ec157b8 Add proper CFN attribute handling to elbv2.FakeLoadBalancer (#1341) 2017-11-15 15:11:11 +00:00
Terry Cain
8ee05e22af
[WIP] Resource tagging (#1332)
* Ran scaffold

* Made a start on get_resources.

* Added more EC2 to tag list

* More stuff

* Added more methods

* Added S3 region name

* Added values test

* Some final touchups
2017-11-15 00:03:00 +00:00
Archa91
474023f9a1 fix EC2 instances ebsOptimized not handled (#1340)
* fix EC2 instances ebsOptimized not handled

* add test_create_instance_ebs_optimized
2017-11-14 14:31:54 +00:00
Adam Gilman
2ad0f2fc1c SNS create_topic should only accept valid characters (#1329)
* SNS create_topic should only accept valid characters

Closes #1328

* Fix flake8 errors

* Updated regex to match full TopicName constraints

Fixed test_server as it contained invalid TopicNames’ per constraints

* fix error message for invalid topic name
2017-11-13 18:27:11 +00:00
Seiro Ogasawara
abd4d09afe fix error response on iot/iot-data (#1337)
* fix iot/iot-data's:
- format of response body xml to json
- status code 400 to 404 on ResourceNotFound

* for ci test
2017-11-13 08:54:10 +00:00
Jack Danger
5f8c7d372e
Merge pull request #1336 from spulec/jack/renegerate_implementation_coverage
Updating implementation coverage
2017-11-12 10:27:30 -08:00
Jack Danger
988511fc38 Updating implementation coverage 2017-11-12 10:23:29 -08:00
Jack Danger
5a204993af
Merge pull request #1335 from captainkerk/rename-autoscaling-internal-methods-to-match-boto
AutoScalingBackend / Implementation Coverage quirk
2017-11-12 09:04:02 -08:00
captainkerk
64adbe5852 boto uses auto_scaling, not autoscaling 2017-11-12 16:15:21 +00:00
Jack Danger
068417b1f2
Merge pull request #1334 from reinecke/fix/dynamo_projection_mutation
dynamodb2: Fix for ProjectionExpressions changing the data in storage
2017-11-12 08:05:33 -08:00
Terry Cain
bd8c1e4567
adding owner id to amis v2 (#1331)
* Adding owner-id/OwnerId to the AMI classes to allow the value to be specified to test filtering images based on owner.

* Added default AMIs and filtering by owner-id

* Fixed some tests

* Fixed more random tests

* Updated MANIFEST

* .
2017-11-12 11:18:25 +00:00
Jack Danger
123f369e6e
Merge pull request #1333 from terrycain/fix_1043
DynamoDB: Fixed requiring optional parameter
2017-11-11 14:06:51 -08:00
Eric Reinecke
64fb0207e2 dynamodb2 was evaluating ProjectionExpression on the wrong local result set 2017-11-10 21:57:16 -08:00
Eric Reinecke
06492026c3 dynamodb2 items are copied when using ProjectionExpression to avoid mutating originals 2017-11-10 21:35:01 -08:00
Terry Cain
5858289596
Fixed Bug 2017-11-10 21:07:22 +00:00
Terry Cain
bca97b3772
Update IMPLEMENTATION_COVERAGE.md 2017-11-10 10:07:29 +00:00
Toshiya Kawasaki
0de2e55b13 Support iot and iot-data (#1303)
* append appropriate urls when scaffolding

* make dispatch for rest-api

* fix dispatch for rest-json

* fix moto/core/response to obtain path and body parameters

* small fixes

* remove unused import

* fix get_int_param

* Add features of things and thing-types

* fix scaffold

* basic crud of cert

* support basic CRUD of policy

* refactor

* fix formatting of scaffold

* support principal_pocicy

* support thing_principal

* update readme

* escape service to handle service w/ hyphen like iot-data

* escape service w/ hyphen

* fix regexp to extract region from url

* escape service

* Implement basic iota-data feature

* iot-data shadow delta

* update readme

* remove unused import

* remove comment

* fix syntax

* specify region when creating boto3 client for test

* use uuid for seed of generating cert id

* specify region_name to iotdata client in test

* specify region to boto3 client in moto response

* excude iot and iotdata tests on server mode

* fix handling of thingTypeName in describe-thing

* test if server is up for iot
2017-11-10 09:44:02 +00:00
Terry Cain
884fc6f260
Adds FilterExpression to dynamodb.query (#1326)
* Added FilterExpression for dynamodb.query

* flake8

* Fixes using mutable default argument values
2017-11-08 22:53:31 +00:00
Florent Rivoire
6e199d35b3 Use pkg_resources to keep the package zip-safe (#1308) 2017-11-07 13:29:24 +00:00
Jack Danger
eccc8f97f8
Merge pull request #1312 from JackDanger/jack/validate-protocol-on-target-group-creation
validate protocol on target group creation
2017-11-06 18:08:25 -08:00
Jack Danger
73f28d6ba8 adding elbv2 utils.py for arn generation 2017-11-06 17:49:45 -08:00
Jack Danger
7c3d78e7c5 validate protocol on target group creation 2017-11-06 14:19:03 -08:00
Terry Cain
d4745a575b utf 8 in key deletions V2 (#1321)
* supporting utf-8 in key deletions

* Fixed decoding of version body when regexing

* Fixed some more random errors

* Possible fix

* Fixed unused import

* Added UTF comment Py2
2017-11-06 14:19:03 -08:00
Adam Gilman
d0a285536d Makes Creating SNS topics idempotent (#1324)
Make creating SNS topics idempotent

Closes #1323
2017-11-06 14:19:03 -08:00
Kai Xia(夏恺)
70e7f08d8f Added support for SSM get_parameters_by_path. (#1299)
* Added support for SSM get_parameters_by_path.

Signed-off-by: Kai Xia <xiaket@gmail.com>

* add logic to handle trailing '/'.

Also, fix pep8.

Signed-off-by: Kai Xia <kai.xia@sportsbet.com.au>

* add tests for parameter value in response.

Signed-off-by: Kai Xia <kai.xia@sportsbet.com.au>
2017-11-06 14:19:03 -08:00
Terry Cain
d447929d29 utf 8 in key deletions V2 (#1321)
* supporting utf-8 in key deletions

* Fixed decoding of version body when regexing

* Fixed some more random errors

* Possible fix

* Fixed unused import

* Added UTF comment Py2
2017-11-06 13:39:08 -08:00
Adam Gilman
307ef8ead1 Makes Creating SNS topics idempotent (#1324)
Make creating SNS topics idempotent

Closes #1323
2017-11-06 19:06:55 +00:00
Kai Xia(夏恺)
3740db8059 Added support for SSM get_parameters_by_path. (#1299)
* Added support for SSM get_parameters_by_path.

Signed-off-by: Kai Xia <xiaket@gmail.com>

* add logic to handle trailing '/'.

Also, fix pep8.

Signed-off-by: Kai Xia <kai.xia@sportsbet.com.au>

* add tests for parameter value in response.

Signed-off-by: Kai Xia <kai.xia@sportsbet.com.au>
2017-11-06 09:44:54 +00:00
Terry Cain
c186733129
Merge branch 'master' into jack/validate-protocol-on-target-group-creation 2017-11-05 01:58:40 +00:00