Commit Graph

2780 Commits

Author SHA1 Message Date
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
Steve Pulec
2d9e622e79
Merge pull request #1313 from terrycain/fix_1311
CloudWatch: Added SetAlarmState and filter
2017-11-04 15:50:56 -04:00
Steve Pulec
b2c3a6ba01
Merge pull request #1320 from karthikax/asg-arn
ASG and LC arn fix
2017-11-04 15:17:26 -04:00
Steve Pulec
adf41244cd
Merge pull request #1316 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 #1319 from bpandola/fix-1318
Fix #1318
2017-11-03 12:34:34 +01:00
Brian Pandola
68a1e41286 Fix #1318 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
Terry Cain
ab767416fe Completed DynamoDBv2 endpoints 2017-10-29 16:06:09 +00:00
Terry Cain
92a0d96101 Fixed testcase 2017-10-29 16:06:03 +00:00
Terry Cain
2a52a0f91b Completed ELBv2 implementation 2017-10-29 14:14:17 +00:00
Terry Cain
a6e5ffb99b Completed events 2017-10-28 20:17:34 +01:00
Terry Cain
6e28c58e26 Added ecs attributes methods 2017-10-28 19:18:39 +01:00
Terry Cain
eccb536d8a ACM ~100% coverage 2017-10-28 17:07:34 +01:00