Commit Graph

776 Commits

Author SHA1 Message Date
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
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
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
Scott Leishman
3fd33c03bf boto3 SQS set attributes fix. 2016-02-19 23:32:01 -08: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
b8d8844286 [lambda] Renamed test file to follow the convention 2016-02-17 16:16:50 -05:00
Hugo Lopes Tavares
45d91bf963 [lambda] Do not use ZipFile as a context manager (it is not supported in Python 2.6) 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
4c10e54a36 [lambda] Add 404 test for DeleteFunction 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
9c4d07fb6a [lambda] Add more meaningful names to tests 2016-02-17 16:13:58 -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
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
andy
7120b5e4b1 Support placement when starting new instances 2016-02-10 17:59:48 +00:00
Ian Fillion-de Kiewit
0fa7f83270 Fix time checking and tests 2016-02-05 17:33:33 -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
Ian Fillion-de Kiewit
93120927f7 Add list_open_workflow_executions endpoint 2016-02-04 17:14:33 -05:00
Ian Fillion-de Kiewit
129b4faff8 Fix style issues 2016-02-02 14:02:37 -05:00
Steve Pulec
eba9033cc9 cleanup flask paths with trailing slashes. 2016-01-24 17:13:32 -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
Denver Janke
ee33ff582c Add filter for volume-id on volumes. 2016-01-20 12:24:33 +10: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
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
6bc4a8b38a Adds support for authorizing and revoking egress permissions 2016-01-15 12:36:11 -08: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
dd6cc305cd Updated more tests. 2016-01-14 14:51:47 -08:00
Ian Auld
06af5365ed Updated tests 2016-01-14 14:25:04 -08:00
Ian Auld
582db74dee Added test for creating a table with a local index. 2016-01-14 11:35:23 -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
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
72bda6d901 Don't do python 2 things in python 3 2016-01-09 18:29:21 -08:00
Joshua Inkenbrandt
33f31652ea Reverse before limit 2016-01-09 17:58:06 -08:00
Paul Craciunoiu
7a6e85517a Quick fix for test in python3.3 2016-01-08 17:46:55 -07:00
Paul Craciunoiu
f1099dd006 Support update_item with map and numeric types. 2016-01-08 17:33:14 -07:00
Paul Craciunoiu
fef748b1c1 Add test. 2016-01-08 17:28:06 -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
159e88db53 Added test for supporting partial_save 2015-12-31 10:17:08 -08: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
3737b39e15 create, list, delete for cluster, task and service 2015-12-17 17:13:00 +00:00
jbencook
38c1ae6bc0 specify region 2015-12-15 19:18:30 +00:00
jbencook
5aca483849 Fix default HealthCheckGracePeriod 2015-12-15 18:58:53 +00:00
Paul Craciunoiu
2a367ca4bf Add boto3 GSI and query tests.
* Test query and condition ordering
* Test GSI create/update/delete
* Test throughput
2015-12-14 17:13:35 -07:00
Oleksandr Shulgin
ef4332d892 Fix dict syntax for python-2.6 in test_elb 2015-12-14 12:55:34 +01:00
Oleksandr Shulgin
1ed5f50d56 Fix ELB.describe_tags with multiple LoadBalancerNames. 2015-12-14 12:38:10 +01: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
Marco Rucci
c8b7511341 Manage instances of ELBs attached to autoscaling group. 2015-12-09 21:40:48 +01:00
mfranke
cace459167 add endpoint tests for AddTags, RemoveTags and DescribeTags to test_elb.py
update sure requirement to 1.2.24
fix assert int to float compare in test_swf/responses/test_timeouts.py
2015-12-09 21:33:42 +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
84b9a7d101 fix integer division in testcase for py3 2015-12-05 12:46:31 +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
1d1bac1958 typo 2015-12-04 09:15:19 +00:00
root
8ae17479d6 add testcases for add, list and remove tags 2015-12-04 09:13:08 +00:00
Chris Henry
2448c4eced Add tests for scheme 2015-12-03 11:25:04 -05:00
earthmant
e98dfb1648 corrected unused import in test_vpn_connectins 2015-12-03 13:51:48 +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
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
d6af1b9ae5 Merge remote-tracking branch 'upstream/master' 2015-11-28 18:50:32 +09: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
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
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
Jean-Baptiste Barth
566a90800e Make SWF events formatting more generic
(suggested in @spulec review)
2015-11-23 14:52:16 +01:00
Jean-Baptiste Barth
a06f8b15f5 Add moto.core.utils.underscores_to_camelcase() 2015-11-23 14:09:31 +01:00
Jean-Baptiste Barth
a4dfdc8274 Add basic tests for moto.core.utils.camelcase_to_underscores() 2015-11-23 14:04:14 +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
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
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
e32fef50b6 Fix random list ordering bugs on python 3.x in moto/swf tests 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
f4feec4727 Fix timestamps in tests as Travis builds run on GMT time
When launched manually, tests should be launched with the environment
variable TZ=GMT. Maybe this could be useful to add that explicitly
somewhere in the README or in the Makefile.
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