Commit Graph

4589 Commits

Author SHA1 Message Date
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 () 2017-11-20 17:13:47 +00:00
Toshiya Kawasaki
49a2724d76 Set default value to elbv2 FakeTargetGroup () 2017-11-20 11:18:21 +00:00
justinsr20
17b8396a9c updated rds status from shutdown to stopped to match aws () 2017-11-20 09:07:36 +00:00
Jessie Nadler
04c5198a0c Add default ecs attributes and format in response obj ()
* 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 () 2017-11-17 08:57:11 +00:00
Terry Cain
2609f6cd3a
Added support for dynamo update_item on nested dicts () 2017-11-17 08:49:59 +00:00
Waldemar Hummer
cdb7305dac use S3 path style addressing when running in kubernetes () 2017-11-15 19:37:39 +00:00
Hugo Lopes Tavares
aa6a0765c1 Move target group default values to model FakeTargetGroup ()
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 () 2017-11-15 15:11:11 +00:00
Terry Cain
8ee05e22af
[WIP] Resource tagging ()
* 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 ()
* 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 ()
* SNS create_topic should only accept valid characters

Closes 

* 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 ()
* 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 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 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 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 ()
* 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 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 ()
* 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 ()
* 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 () 2017-11-07 13:29:24 +00:00
Jack Danger
eccc8f97f8
Merge pull request 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 ()
* 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 ()
Make creating SNS topics idempotent

Closes 
2017-11-06 14:19:03 -08:00
Kai Xia(夏恺)
70e7f08d8f Added support for SSM get_parameters_by_path. ()
* 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 ()
* 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 ()
Make creating SNS topics idempotent

Closes 
2017-11-06 19:06:55 +00:00
Kai Xia(夏恺)
3740db8059 Added support for SSM get_parameters_by_path. ()
* 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
Steve Pulec
2d9e622e79
Merge pull request from terrycain/fix_1311
CloudWatch: Added SetAlarmState and filter
2017-11-04 15:50:56 -04:00
Steve Pulec
b2c3a6ba01
Merge pull request from karthikax/asg-arn
ASG and LC arn fix
2017-11-04 15:17:26 -04:00
Steve Pulec
adf41244cd
Merge pull request from terrycain/lotsa_stuff
Lotsa stuff
2017-11-04 15:15:20 -04:00
Karthik Bhat
886bf1c2d0 ASG and LC arn fix 2017-11-03 19:06:25 +05:30
Jack Danger
fd4b5de68b
Merge pull request from bpandola/fix-1318
Fix 
2017-11-03 12:34:34 +01:00
Brian Pandola
68a1e41286 Fix 2017-11-02 23:03:54 -07:00
Terry Cain
f120343d44 Fixed TargetGroup Matcher after #dfd41d8c00d1b4b8e1e2b294ca6be27e46833731 2017-10-29 19:31:15 +00:00
Terry Cain
c4273c9da1 Merge branch 'master' into lotsa_stuff 2017-10-29 19:26:27 +00:00
Terry Cain
e2bdaa07ea Fix test cases that manipulate time 2017-10-29 19:11:52 +00:00
Terry Cain
75f0deb828 Completed SQS Implementation 2017-10-29 18:59:40 +00:00
Terry Cain
5c02085d3a Fixed testcases after nonglobaling dynamo 2017-10-29 16:25:17 +00:00
Terry Cain
f6961b7108 flake8 2017-10-29 16:10:30 +00:00