Commit Graph

1347 Commits

Author SHA1 Message Date
Paul Carleton
21c3775cb1 Add health status to autoscaling instances 2017-10-20 11:26:23 -07:00
Terry Cain
629503398c
Added JobDefinition to cloudformation 2017-10-20 19:10:31 +01:00
Terry Cain
dce81cf875 Fixed typos ;-)
Thanks @hwine
2017-10-20 14:52:24 +01:00
Terry Cain
bca8e11290 Fixes #1276 SNS Subject validation 2017-10-20 13:19:55 +01:00
Argishti Rostamian
f02f4646ea add test 2017-10-19 17:47:21 -07:00
Terry Cain
9805a279c7
Added JobQueue to cloudformation 2017-10-20 01:06:30 +01:00
Terry Cain
453da4c8b3
Added CreateEnvironment to cloudformation 2017-10-20 00:51:04 +01:00
Terry Cain
d67ef8d128
Merge branch 'master' into batch 2017-10-19 21:16:40 +01:00
Terry Cain
b40c5e557e Fixed S3 versioning bug + minor cleanup (#1272)
* Fixed S3 versioning bug + minor cleanup

Fixes 1271

* flake8
2017-10-18 16:22:35 -07:00
John Kerkstra
b8bb6c2dcf Fix bug with update_attached_elbs (#1266)
* fixed bug where we were using elb_backend.describe_load_balancers
incorrectly, returning all available load balancers when we wanted none.

* improve skip, clean up tests
2017-10-16 22:04:47 -07:00
John Kerkstra
0af3427c15 Add autoscaling load balancer methods (#1265)
* add attach_load_balancers, detach_load_balancers,
describe_load_balancers methods

* prefer using amzn_request_id decorator to generate unique request ids
2017-10-16 19:07:00 -07:00
John Kerkstra
5ef236e966 Add attach_ and detach_instances methods to autoscaling service (#1264)
* add detach_instances functionality to autoscaling service

* use ASG_NAME_TAG constant

* cleanup models method a bit, add mocked DetachInstancesResult to
response template

* add attach_instances method
2017-10-16 17:09:51 -07:00
Terry Cain
49ddb500a8 AWS X-Ray client mock. (#1255)
* X-Ray Client SDK patched

Fixes #1250

* Fixed flake8

* Fixed some issues

* Fixed flake8

* Fixed more typos

* Fixed python2 string

* Fixed aws-sdk patch order

* Added more test cases to test the patching
2017-10-16 17:06:22 -07:00
Terry Cain
2bb3e841d1 Fixed #1261 dynamodb FilterExpression bugs (#1262)
* Fixed #1261 dynamodb FilterExpression bugs

FilterExpression was incorrectly handling numbers, stupid typo there. Also >= <= and <> was not being parsed correctly.

* Switched up logic a bit for better end result. Fixes #1263

* Fixed another bug
2017-10-16 13:56:03 -07:00
Tom Elliff
a6c38913a7 Add more tests for task count of container instance 2017-10-13 09:37:39 +01:00
Terry Cain
f3623e3cd3 Fix for #1258 (#1260)
* Fix for #1258

* Updated doc link
2017-10-12 13:59:02 -07:00
Tom Elliff
51afd54229 Fix runningTasksCount ECS container instance attribute
ECS container instances have attributes of 'runningTasksCount' and 'pendingTasksCount'.
See Boto3 docs here: http://boto3.readthedocs.io/en/latest/reference/services/ecs.html#ECS.Client.describe_container_instances
REST API docs here: http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeContainerInstances.html#API_DescribeContainerInstances_ResponseSyntax
2017-10-12 13:26:19 +01:00
Terry Cain
e3024ae1ba
Implemented Terminate, Cancel and List jobs 2017-10-11 23:46:27 +01:00
Terry Cain
ddd52a5a97
Merge branch 'master' into batch 2017-10-11 23:02:47 +01:00
Jack Danger
aa46795ade Merge pull request #1252 from JackDanger/jack/implement-sqs-queuedoesnotexist-error
implement SQS QueueDoesNotExist error
2017-10-10 13:36:45 -07:00
Jack Danger
dc40fce146 implement SQS QueueDoesNotExist error 2017-10-10 13:05:48 -07:00
Terry Cain
77fcafca18
Cleaned up code 2017-10-08 04:18:25 +01:00
Terry Cain
c86bece382
Added FilterExpression to dynamodb scan 2017-10-07 21:57:14 +01:00
William Johansson
88fb732302 Support wildcard tag filters on SecurityGroups 2017-10-06 21:55:01 +02:00
David Morrison
fa3268b7b7 fix tests 2017-10-06 08:07:21 -07:00
David Morrison
3d3d0e916e minor bugfixes and added tests 2017-10-05 18:46:58 -07:00
Terry Cain
e135344f0c
Added simple SubmitJob and DescribeJobs 2017-10-06 01:21:29 +01:00
David Morrison
8ca7ccfcb5 add support for the modify_spot_fleet_request operation 2017-10-05 12:50:42 -07:00
Terry Cain
0ca3fcc7a2
Added DescribeJobDefinitions 2017-10-05 00:00:40 +01:00
Terry Cain
558f246115
Added RegisterJobDefinition 2017-10-04 20:17:29 +01:00
Terry Cain
4a45acc216
Implemented Update and Delete job queue 2017-10-04 18:52:12 +01:00
Terry Cain
b8f24298fd
Added filtering test part 2017-10-03 23:28:10 +01:00
Terry Cain
15218df12f
Added CreateJobQueue and DescribeJobQueue 2017-10-03 23:21:06 +01:00
Terry Cain
88a11b21ae
Added DeleteComputeEnvironment and UpdateComputeEnvironment 2017-10-03 22:35:30 +01:00
Terry Cain
a027f86cc8
Merge branch 'master' into batch 2017-10-03 19:37:53 +01:00
Chris Keogh
9bb07e6b6e add awslambda.add_permission 2017-10-03 20:02:23 +13:00
Chris Keogh
b994cf5291 add more realistic policy 2017-10-03 14:52:00 +13:00
Chris Keogh
fc9c250922 add basic awslambda get_policy 2017-10-03 13:33:50 +13:00
Jack Danger
068c0617da fixing last pep8 violations on elbv2 test 2017-10-02 12:38:36 -07:00
Jack Danger
f6166f841a running autopep8 against test_elbv2.py 2017-10-02 12:36:47 -07:00
Jack Danger
04542dccc0 implement elbv2 ResourceInUseError 2017-10-02 12:35:52 -07:00
Jack Danger
0c07c4467a Merge pull request #1224 from JackDanger/jack/implement-attached-group-policies
Implement IAM attached group policies
2017-10-01 17:00:27 -07:00
Jack Danger
353f8387a2 implementing detach_group_policy 2017-10-01 15:05:33 -07:00
Jack Danger
cdb1ebf666 pep8 fixes 2017-10-01 15:02:06 -07:00
Jack Danger
9f02a84d8d test attaching group policies 2017-10-01 15:02:00 -07:00
Brian Pandola
ab595279ad Fix boto/boto3 multi-param discrepancies
boto uses the param.member.N syntax, but boto3 replaces the generic
.member with a more specific identifier.

Example:
boto: ClusterSecurityGroups.member.N
boto3: ClusterSecurityGroups.ClusterSecurityGroupName.N

This commit addresses this issue for the ClusterSecurityGroups, SubnetIds,
and VpcSecurityGroupIds parameters.
2017-09-30 21:51:05 -07:00
Terry Cain
f95d72c37c
Finialised create compute environment + describe environments 2017-09-29 23:29:36 +01:00
Terry Cain
ea10c4dfb6
Merge branch 'master' into batch 2017-09-29 22:11:15 +01:00
Brian Pandola
5bb6b98f6d Implement Redshift Taggable Resources (#1217)
- Implement create_tags, describe_tags, and delete_tags endpoints
- Clusters, Parameter Groups, Security Groups, Snapshots, and Subnet Groups can all be tagged
- Test Suite updated
- Minor clean-up of restore_from_cluster_snapshot endpoint
- Miscellaneous typo fixes
2017-09-27 17:18:28 -07:00
Alexander Mohr
9008b85299 lambda + SNS enhancements (#1048)
* updates

- support lambda messages from SNS
- run lambda in docker container

* decode output

* populate timeout

* simplify

* whoops

* skeletons of cloudwatchlogs

* impl filter log streams

* fix logging

* PEP fixes

* PEP fixes

* fix reset

* fix reset

* add new endpoint

* fix region name

* add docker

* try to fix tests

* try to fix travis issue with boto

* fix escaping in urls

* fix environment variables

* fix PEP

* more pep

* switch back to precise

* another fix attempt

* fix typo

* fix lambda invoke

* fix more unittests

* work on getting this to work in new scheme

* fix py2

* fix error

* fix tests when running in server mode

* more lambda fixes

* try running with latest docker

adapted from aiodocker

* switch to docker python client

* pep fixes

* switch to docker volume

* fix unittest

* fix invoke from sns

* fix zip2tar

* add hack impl for get_function with zip

* try fix

* fix for py < 3.6

* add volume refcount

* try to fix travis

* docker test

* fix yaml

* try fix

* update endpoints

* fix

* another attempt

* try again

* fix recursive import

* refactor fix

* revert changes with better fix

* more reverts

* wait for service to come up

* add back detached mode

* sleep and add another exception type

* put this back for logging

* put back with note

* whoops :)

* docker in docker!

* fix invalid url

* hopefully last fix!

* fix lambda regions

* fix protocol

* travis!!!!

* just run lambda test for now

* use one print

* fix escaping

* another attempt

* yet another

* re-enable all tests

* fixes

* fix for py2

* revert change

* fix for py2.7

* fix output ordering

* remove this given there's a new unittest that covers it

* changes based on review

- add skeleton logs test file
- switch to docker image that matches test env
- fix mock_logs import

* add readme entry
2017-09-27 16:04:58 -07:00
Jack Danger
f09162038d Merge pull request #1194 from terrycain/bug_1189
SNS Publish by phone number
2017-09-27 11:52:03 -07:00
Jack Danger
7fb8eb3434 Merge pull request #1195 from terrycain/polly
AWS Polly implementation
2017-09-27 11:20:55 -07:00
Nuwan Goonasekera
5b01071bd4 Fix for regression in get_console_output() 2017-09-27 20:26:45 +05:30
Terry Cain
cecbbb70e1
Added server testcase 2017-09-27 09:54:46 +01:00
Terry Cain
56e4300ad4
Added preliminary CreateComputeEnvironment 2017-09-26 22:22:59 +01:00
Terry Cain
993e74dc77
Added tests 2017-09-26 19:42:37 +01:00
Terry Cain
bba6d23eae Started on batch 2017-09-26 17:37:26 +01:00
Terry Cain
fcacecbef0 Nearly finished Polly implementation 2017-09-26 16:46:18 +01:00
Terry Cain
56c65bc67c
Added in publish by phone number 2017-09-26 00:21:07 +01:00
Jack Danger
8e79fadb0f Merge pull request #1174 from terrycain/acm
ACM Implementation
2017-09-25 14:36:08 -07:00
Jack Danger
84e4f1ff92 Merge pull request #1182 from mikegrima/s3bug
Fixed bug in S3 put_bucket_tagging. Closes #1181.
2017-09-25 14:06:36 -07:00
Jack Danger
d41bb2e875 Merge pull request #1183 from terrycain/xray
AWS X-Ray
2017-09-25 14:06:24 -07:00
Jack Danger
c91cdee603 Merge pull request #1187 from dbfr3qs/master
Return consumed capacity correctly for dynamodb2.get_item, put_item, update_item
2017-09-25 13:59:33 -07:00
Loukas Leontopoulos
4393a4f76c Change checks for handling same layer name un different stack 2017-09-25 14:49:08 +03:00
Loukas Leontopoulos
7599fd5dc0 Add test_case for layer per stack
Add a new test case for creating a layer with the same name under a different stack.
2017-09-25 14:31:29 +03:00
Chris Keogh
6cf74742f8 add test for get_item return consumed capacity 2017-09-25 11:45:49 +13:00
Chris Keogh
631252dd50 Merge branch 'master' of https://github.com/spulec/moto 2017-09-25 11:40:02 +13:00
Chris Keogh
84bd16d2a2 get_item update_item return capacity consumed correctly 2017-09-25 11:39:09 +13:00
Terry Cain
0bd3899cb3
Finished X-Ray + fixed routing bug 2017-09-23 11:02:25 +01:00
Terry Cain
a401b4f36d
Merge branch 'master' into xray 2017-09-22 23:56:43 +01:00
Terry Cain
edd10aaa19
Started Work on X-Ray
Could help #1006
2017-09-22 23:36:26 +01:00
Mike Grima
7167e09ca5 Fixed bug in S3 put_bucket_tagging. Closes #1181. 2017-09-22 13:35:00 -07:00
Jack Danger
d692219927 Merge pull request #1180 from terrycain/sqs_improvement
SQS Cleanup, and fix #1105
2017-09-22 13:23:20 -07:00
Terry Cain
a91c025398
Cleanup, and fix #1105 2017-09-22 20:08:20 +01:00
Jack Danger
eeda0cd28e re-enabling tests 2017-09-22 10:57:06 -07:00
Jack Danger
ea66a71765 supporting signed urls for private keys 2017-09-22 10:44:37 -07:00
Jack Danger
eb220cc6fb Merge pull request #1177 from terrycain/cloudwatch
Cloudwatch Implementation
2017-09-22 10:10:02 -07:00
Terry Cain
c965fdd47f Added dashboard methods + tests 2017-09-22 16:38:20 +01:00
Terry Cain
e3034275db Finished ACM + tests 2017-09-22 14:26:05 +01:00
Terry Cain
edbbbf6d20 Nearly finished implementation and tests 2017-09-22 11:21:36 +01:00
Jack Danger
4213f88c6b Merge pull request #1166 from terrycain/sns_full
Complete SNS API
2017-09-21 22:30:32 -07:00
Chris Keogh
d0f38407a1 update expression attribute test 2017-09-22 15:52:32 +12:00
Chris Keogh
87d7cacda6 Merge branch 'master' of https://github.com/spulec/moto 2017-09-22 15:44:44 +12:00
Chris Keogh
8840495f77 add AttributeValueNames for basic ProjectionExpressions on query 2017-09-22 15:40:30 +12:00
Chris Keogh
037b357029 add basic projection expressions 2017-09-22 13:12:24 +12:00
Terry Cain
283b67cb9b
Added nearly all ACM method implementations
Added cryptography>=2.0.0 to install deps
Created base backend and certificate objects
Implemented most of the methods
Added pregenerated certs
2017-09-22 00:20:26 +01:00
Terry Cain
18cb0bce54
General tidy up 2017-09-21 21:16:00 +01:00
Jack Danger
1bd842499e Merge pull request #1169 from JackDanger/jack/public-read-for-public-bucket
S3 keys inherit bucket ACL
2017-09-21 10:40:59 -07:00
Jack Danger
5fc87f8b2b Merge pull request #1165 from JackDanger/jack/import-all-aws-managed-policies
Adding all 278 AWS-managed policies
2017-09-20 19:09:59 -07:00
Jack Danger
ca7661bc1e S3 keys inherit bucket ACL 2017-09-20 19:04:23 -07:00
Terry Cain
19074c535c
Added ConfirmSubscription + Tests + checks
For now subscriptions do nothing, but if we go the route of handing out subscribe tokens, I
have layed the groundwork for validating that
2017-09-20 21:47:02 +01:00
Terry Cain
ef8a97f6c3
Implemented Add/RemovePermission + Tests 2017-09-20 21:13:26 +01:00
Terry Cain
f7f80293c7
Implemented OptInPhoneNumber + Tests 2017-09-20 20:56:37 +01:00
Chris Keogh
51c3fec6dd fix scan return CapacityUnits 2017-09-20 13:57:26 +12:00
Terry Cain
1281ac86d5
Implemented ListPhoneNumbersOptedOut + Tests 2017-09-20 00:03:58 +01:00
Terry Cain
ba8a2ccfc5
Implemented CheckIfPhoneNumberIsOptedOut + Tests + Error code 2017-09-19 23:54:13 +01:00
Terry Cain
57d94d56c3
Implemented SNS.SetSMSAttributes & SNS.GetSMSAttributes + Filtering
TODO:
AddPermission / RemovePermission
CheckIfPhoneNumberIsOptedOut
ConfirmSubscription
ListPhoneNumbersOptedOut
OptInPhoneNumber
2017-09-19 22:48:46 +01:00
Jack Danger
8f2f7fa20d Adding a script to import all of AWS' managed policies
fixes #1118
2017-09-19 14:01:08 -07:00
Terry Cain
16e0326fe7
Fixed #1162 2017-09-19 21:43:55 +01:00
Jack Danger
066382fabc Merge pull request #1156 from terrycain/master
Added SSM GetParameter support
2017-09-18 14:00:05 -07:00