Commit Graph

1232 Commits

Author SHA1 Message Date
Steve Pulec
66032ad37c Merge pull request #560 from jstewmon/boto3-ses
update SES backend to support domain identities and multiple recipients
2016-03-10 08:57:29 -05:00
Steve Pulec
f797f17e5c Merge pull request #561 from andyjones/task/iam-instance-profile-roles
Add roles to the list instance profiles response
2016-03-10 08:55:25 -05:00
andy
71358603ac Add roles to the list instance profiles response 2016-03-10 09:27:52 +00:00
Jonathan Stewmon
fb06c6517e update SES backend to support domain identities and multiple recipients
includes test cases for ses client with boto3
2016-03-09 10:18:50 -06:00
Andrew Garrett
2c72a86778 Support HostedZoneId in RecordSet templates
Signed-off-by: Jesse Szwedko <jesse.szwedko@getbraintree.com>
2016-03-07 19:25:25 +00:00
Steve Pulec
ad2dca607f Merge pull request #557 from 2rs2ts/cf-delete-record-sets
Allow cloudformation to delete Route 53 RecordSets
2016-03-05 18:11:13 -05:00
Steve Pulec
aebc7c8ea3 Merge pull request #558 from spulec/apigateway
Apigateway
2016-03-05 18:07:20 -05:00
Steve Pulec
88f64deff9 fix py3 2016-03-05 18:01:57 -05:00
Steve Pulec
ba70d8fe8d implement http integration. 2016-03-05 10:54:19 -05:00
Steve Pulec
95f9b3fb35 add integration responses. 2016-03-05 09:48:37 -05:00
Steve Pulec
e3ff8dc510 Add deployments 2016-03-04 18:35:03 -05:00
Steve Pulec
bd57233b10 add integrations. 2016-03-04 18:02:07 -05:00
Andrew Garrett
7779678e2c Allow cloudformation to delete Route 53 RecordSets
While there isn't an API method exposed for directly deleting a Route 53
RecordSet (it's performed via POST that acts more like a PATCH than
anything
else)[http://docs.aws.amazon.com/Route53/latest/APIReference/API_ChangeResourceRecordSets.html],
CloudFormation can have templates which contain RecordSets which refer
to zones that don't exist inside the template. Ergo, we need a way to
effect a delete upon these RecordSets when we don't have a direct
reference to the zone.

This exposes a delete method that isn't hooked up to any response (and
rightfully so), it just enables the ~polymorphic deletion behavior that
we've written into the CloudFormation implementation.

Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-03-03 17:53:05 +00:00
Steve Pulec
b5d5c02d75 0.4.23 2016-03-02 15:40:21 -05:00
Steve Pulec
630c668651 Merge pull request #556 from spulec/fixboto
Fixboto
2016-03-02 15:39:49 -05:00
Steve Pulec
75a40e4571 Wrap botocore patching in tyr/except since we do not require it to be installed. 2016-03-02 15:20:35 -05:00
Steve Pulec
d8a277ed55 Merge pull request #555 from yannlambret/fix-describe-route-tables-response
Fix a typo in DESCRIBE_ROUTE_TABLES_RESPONSE
2016-03-02 15:10:33 -05:00
Steve Pulec
8f80d0ecaa Merge pull request #554 from bcavagnolo/master
add dynamodb pagination
2016-03-02 15:10:12 -05:00
Steve Pulec
a737fbed48 create methods 2016-03-01 18:50:06 -05:00
Yann Lambret
3afd4e0ea9 Correct a typo in DESCRIBE_ROUTE_TABLES_RESPONSE string (duplicate tagSet) that causes buggy responses 2016-03-02 00:34:45 +01:00
Brian Cavagnolo
6bab725b36 add dynamodb pagination 2016-03-01 15:00:23 -08:00
Hugo Lopes Tavares
6222f335f3 Refactor NatGateways methods to use _get_param() 2016-03-01 13:57:41 -05:00
Steve Pulec
45f92fb4c7 base rest api endpoints. 2016-03-01 12:03:59 -05:00
Hugo Lopes Tavares
c689816337 Add CloudFormation support to NatGateway model 2016-03-01 12:02:57 -05:00
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
Steve Pulec
2e27e9edfb remove apigateway 2016-02-29 17:11:32 -05:00
Steve Pulec
ca6ec4478d try out unpinning boto. 2016-02-29 17:09:54 -05:00
Andrew Garrett
39d9fbcd02 Added resource deletion upon stack deletion
Only implemented for ASGs and LCs since they're all we cared about for
our particular problem. It should be easy to follow this pattern for
other resource types, though.

Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-02-29 19:50:29 +00: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
99af8bdb79 Convert VPCZoneIdentifier list in template resource to csv
Although the boto docs say to use a csv, CloudFormation templates use a
list instead:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#aws-properties-as-group-prop

Without this change, templates specifying VPCZoneIdentifier will break
as the identifier will be the repr of the list.

Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-02-29 19:50:27 +00:00
Andrew Garrett
da98052b18 Add support for DescribeStackResource
Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-02-29 19:50:25 +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
Steve Pulec
274a7f48a2 Merge pull request #549 from beeva-antonioirizar/remove_nexttoken_list_function
remove NextMarker in response list_functions (Lambda)
2016-02-27 20:28:24 -05:00
Steve Pulec
b719032279 Merge pull request #546 from scttl/sqs_attribs_fix
boto3 SQS set attributes fix.
2016-02-27 20:27:33 -05:00
Steve Pulec
7ec468b988 Merge pull request #545 from beeva-antonioirizar/cloudwatch_support_multiple_regions
Cloudwatch support multiple regions
2016-02-27 20:26:47 -05:00
Steve Pulec
941d057146 sort querystring so that tags will get matched up properly for later zip. Closes #541. 2016-02-27 20:22:46 -05:00
beeva-antonioirizar
143a8f85ee remove NextMarker in response list_functions 2016-02-23 17:34:49 +01:00
Scott Leishman
3fd33c03bf boto3 SQS set attributes fix. 2016-02-19 23:32:01 -08:00
beeva-antonioirizar
4bbd2a11a7 Cloudwatch support multiple regions 2016-02-18 18:35:32 +01:00
Steve Pulec
a9d161e58e 0.4.22 2016-02-17 16:44:57 -05:00
Steve Pulec
e051fa779d Merge pull request #544 from beeva-antonioirizar/fix_route53
Fix route53
2016-02-17 16:43:33 -05: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
39a57195a2 [lambda] Make JSON load python 3-compatible 2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
2d744c6626 [lambda] Do not duplicate defaults for LambdaFunction objects.
The duplication caused a bug before and this commit is a bugfix and will prevent similar bugs in the future.
2016-02-17 16:13:58 -05:00
Hugo Lopes Tavares
ac66a8eb87 [lambda] Change string format to use {0} instead of {} 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
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
75c6f6f660 [lambda] Make NextMarker a real UUID 2016-02-17 16:13:57 -05:00
Hugo Lopes Tavares
ca3babc606 [lambda] Add comment about Publish parameter 2016-02-17 16:13:57 -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
beeva-antonioirizar
84753aeac5 fix name method in the last commit 2016-02-17 17:44:20 +01:00
beeva-antonioirizar
b91596db32 add responses for methods don't have implemented in route53 2016-02-17 17:36:55 +01:00
beeva-antonioirizar
a621c83bf7 Comment's params is optional in create_hosted_zones. It is fix to support and templates adapted to it. 2016-02-17 15:32:38 +01:00
beeva-antonioirizar
1ac40cbaf6 add private zone in templates. Because it should have. It is always to False because it doesn't support for private zones. 2016-02-17 15:24:11 +01:00
beeva-antonioirizar
1448cf3541 add Istruncated to False in template list_hosted_zones_response in route53. Because it always has it. 2016-02-17 15:14:59 +01:00
beeva-antonioirizar
d8ed18aaac add tag (<DescribeAlarmsResult>) to describe_alarms_template. Because it is miss and it can't work with boto3 2016-02-15 13:02:04 +01:00
Steve Pulec
63296049f1 More explicit SQS message checking. Closes #519. 2016-02-14 17:10:17 -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
Steve Pulec
117a79e103 Merge pull request #535 from beeva-antonioirizar/master
Add method describe_clusters and fix create_cluster,  list_clusters, list_task_definitions,  list_services for service ecs
2016-02-14 16:53:26 -05:00
Steve Pulec
ccc1cb42dd Merge pull request #534 from ianfdk/master
Add SWF's list_open_workflow_executions and list_closed_workflow_executions
2016-02-14 16:50:53 -05:00
Steve Pulec
800f2403cf Merge pull request #533 from kevgliss/boto3DescribeInstancesSecurityGroups
Ensuring boto3 can correctly identify instance security groups
2016-02-14 16:47:01 -05:00
Steve Pulec
76941dc48d Merge pull request #531 from kevgliss/launchConfig
Adding additional params to response
2016-02-14 16:46:08 -05:00
andy
7120b5e4b1 Support placement when starting new instances 2016-02-10 17:59:48 +00:00
beeva-antonioirizar
d13199ba06 remove nextToken if the library doesn't support pagination, because it doesn't send nextToken if it doesn't exceed maxResults. See documentation http://docs.aws.amazon.com/cli/latest/reference/ecs/list-clusters.html 2016-02-09 18:08:55 +01:00
beeva-antonioirizar
e7d469f21d when create_cluster without name it should create a cluster with name default. Reference documentation http://docs.aws.amazon.com/cli/latest/reference/ecs/create-cluster.html 2016-02-09 17:03:25 +01:00
beeva-antonioirizar
f89721328a add method describe_clusters for service ecs 2016-02-09 16:59:16 +01:00
Ian Fillion-de Kiewit
4e0affc734 Fix date validation 2016-02-08 10:33:33 -05:00
Ian Fillion-de Kiewit
7fd3daa524 Fix python 3.3 tests 2016-02-08 10:14:07 -05:00
Ian Fillion-de Kiewit
0fa7f83270 Fix time checking and tests 2016-02-05 17:33:33 -05:00
Ian Fillion-de Kiewit
2389b95ee6 remove leftover ipdb 2016-02-05 15:38:36 -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
kevgliss
c5016d9ddb ensuring boto3 can correctly identify instance security groups 2016-02-04 16:03:20 -08:00
Ian Fillion-de Kiewit
93120927f7 Add list_open_workflow_executions endpoint 2016-02-04 17:14:33 -05:00
kevgliss
3ce6627826 adding additional params 2016-02-03 15:38:58 -08:00
gigimon
1ff24981ee * add filter by instance-id for describeAdresses 2016-02-03 18:05:25 +03:00
gigimon
cd062fc5fa * fix one place 2016-02-03 14:53:18 +03:00
Ian Fillion-de Kiewit
129b4faff8 Fix style issues 2016-02-02 14:02:37 -05:00
gigimon
52eb16d765 * change api version to 2013-10-15 2016-02-02 16:15:18 +03:00
Steve Pulec
ac4ce7d53f 0.4.21 2016-01-24 17:21:19 -05:00
Steve Pulec
31dbe61233 Fix s3 url regex. Closes #516. 2016-01-24 17:15:21 -05:00
Steve Pulec
eba9033cc9 cleanup flask paths with trailing slashes. 2016-01-24 17:13:32 -05:00
Steve Pulec
a7938ed9ec Fix s3 url regex to ensure path-based bucket and key does not catch. 2016-01-24 16:33:50 -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
Daniel Miller
35a89da273 Fix delete keys with werkzeug request 2016-01-22 12:44:57 -05:00
Daniel Miller
89d5c72d86 Fix delete keys detection with werkzeug request 2016-01-22 12:44:12 -05:00
Denver Janke
ee33ff582c Add filter for volume-id on volumes. 2016-01-20 12:24:33 +10:00
Steve Pulec
595259a99d 0.4.20 2016-01-17 18:11:00 -05: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
075d008509 Change s3 urls to ordereddict to fix python3 issues. 2016-01-17 17:19:53 -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
093a64c1c8 adding error checking on cidrs 2016-01-15 12:57:43 -08:00
kevgliss
6bc4a8b38a Adds support for authorizing and revoking egress permissions 2016-01-15 12:36:11 -08:00
Paul Craciunoiu
aacdde7adc When hash/range key overlap, fix query logic. 2016-01-15 11:53:45 -07: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
9400cc3ba4 Added LocalSecondaryIndexes to describe property 2016-01-14 11:30:18 -08:00
Ian Auld
5c7f01ab29 Merge branch 'master' into Bug-Fix-Secondary-Indexes-Ignored 2016-01-13 15:29:59 -08:00
Ian Auld
3cbaed9734 Added support for local senondary indexes in DynamoDB2 2016-01-13 15:27:02 -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
Paul Craciunoiu
f3c1e21391 Delete missing attribute results in KeyError. 2016-01-11 11:16:15 -07: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
33f31652ea Reverse before limit 2016-01-09 17:58:06 -08:00
Paul Craciunoiu
c9f43c885a Support Select=COUNT when querying. 2016-01-08 17:35:14 -07:00
Paul Craciunoiu
f5406ad212 Handle delete updates. 2016-01-08 17:34:53 -07:00
Paul Craciunoiu
f1099dd006 Support update_item with map and numeric types. 2016-01-08 17:33:14 -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
33f023fdaf Added comments for clarity 2015-12-31 10:46:54 -08:00
Ian Auld
a0ed89c92d Added support for partial_save on tables with a hash and range key; Issue #498 2015-12-31 10:28:06 -08:00
Steve Pulec
6a13e0e226 Merge pull request #489 from gilzellner/master
fix issue 488
2015-12-21 15:19:57 -05:00
Steve Pulec
42423f47e7 Merge pull request #466 from EarthmanT/support_get_all_dhcp_options_set
Adding Support for Get All DHCP Options
2015-12-21 15:18:41 -05: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
3d6d3bfa27 python3 fixes 2015-12-17 17:43:16 +00:00
jbencook
3737b39e15 create, list, delete for cluster, task and service 2015-12-17 17:13:00 +00:00
jbencook
5aca483849 Fix default HealthCheckGracePeriod 2015-12-15 18:58:53 +00:00
Paul Craciunoiu
2cea05bd19 More support for GSI
* Support query via multiple KeyConditionExpressions
* Support GSI updates via table.update()
2015-12-14 15:42:18 -07:00
gilzellner
d273fa15f3 fix issue 488 2015-12-14 15:38:40 +02:00
Oleksandr Shulgin
1ed5f50d56 Fix ELB.describe_tags with multiple LoadBalancerNames. 2015-12-14 12:38:10 +01:00
Paul Craciunoiu
4fa7d6283d Add query index support. 2015-12-13 23:16:25 -07: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
mfranke
73467e3b71 fix format 2015-12-10 18:22:03 +01:00
mfranke
faee9e2d72 fix 2015-12-09 23:04:34 +01:00
mfranke
bc89e7eedc compatibility fix for python 2.6.9 2015-12-09 22:25:59 +01:00
Marco Rucci
c8b7511341 Manage instances of ELBs attached to autoscaling group. 2015-12-09 21:40:48 +01:00
mfranke
5d47aa8c84 add AddTags, RemoveTags and DescribeTags endpoints to ELB 2015-12-09 21:30:40 +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
89e46d87bd fix unicode encoding 2015-12-05 12:42:57 +00:00
root
b2af81eab5 use six.string_types instead of basestring 2015-12-05 12:39:03 +00:00
root
6eaea9aa6e fix integer division for Py3 2015-12-05 12:31:58 +00:00
root
480a30e922 fix for python 3 compatibility 2015-12-05 11:27:16 +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
fca96c935d exception must be raise instead returning a response 2015-12-04 08:56:49 +00:00
Steve Pulec
587893f0c7 Duplicate user needs to be EntityAlreadyExists error code. 2015-12-03 21:59:55 -05:00
Steve Pulec
3a38a2a1a7 Cleanup IAM exceptions. Closes #476. 2015-12-03 20:56:28 -05:00
Chris Henry
e59a0b7fa9 Remove debug print statements 2015-12-03 11:24:55 -05:00
root
70171e8ef9 Merge https://github.com/spulec/moto 2015-12-03 11:57:34 +00:00
root
03cd1e47c1 add kinesis API:
- AddTagsToStream
 - ListTagsForStream
 - RemoveTagsFromStream
2015-12-03 11:53:57 +00:00
earthmant
c5bf9d8c94 replacing the usage
of dhcp_opt_ids_from_querystring with sequence_from_querystring
2015-12-03 13:49:08 +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
Chris Henry
6017a481cf Initial implementation of elb scheme 2015-12-02 17:46:24 -05: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
0c910864d3 Use requests.header instead of plain dict 2015-11-28 19:26:17 +09:00
Akira Chiku
9b3fa83730 Use content-type for detecting client 2015-11-28 19:25:10 +09:00
Akira Chiku
d6af1b9ae5 Merge remote-tracking branch 'upstream/master' 2015-11-28 18:50:32 +09:00
Steve Pulec
704110d9c7 0.4.19 2015-11-27 14:46:50 -05: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
Steve Pulec
025445d23e Merge pull request #467 from EarthmanT/support_default_filter_network_acl
Support Associate NetworkACL and Filtering in Describe
2015-11-26 09:41:13 -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
earthmant
39c3c5c8aa Adding Support for VPN Connections
support create, delete, describe
2015-11-25 16:38:02 +02:00
earthmant
41873b59f7 Adding Support for Get All DHCP Options
add DescribeDhcpOptionsResponse
support filtering describe_dhcp_options
add get_all_dhcp_options
2015-11-25 11:50:58 +02: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
earthmant
18fe3e41e9 Support default ACL in a VPC
a vpc usually has a default acl
this makes sure that moto flags it
and that the describe response has it in there
2015-11-23 18:07:51 +02:00
Jean-Baptiste Barth
566a90800e Make SWF events formatting more generic
(suggested in @spulec review)
2015-11-23 14:52:16 +01:00
earthmant
4b59c6b907 Support Associate Network ACL
add the new_association_id property to NetworkACL object so that the template render for replace adds the ID and the associate_network_acl receives a response
2015-11-23 15:16:46 +02:00
Jean-Baptiste Barth
a06f8b15f5 Add moto.core.utils.underscores_to_camelcase() 2015-11-23 14:09:31 +01:00
Jean-Baptiste Barth
45437368b2 Move SWF type checks to response object
(suggested in @spulec review)
2015-11-23 12:41:44 +01:00
Jean-Baptiste Barth
78ea7967ad Remove overriden SWFResponse.call_action() thanks to 32dd72f
Not necessary anymore: 32dd72f6b7
2015-11-19 11:46:54 +01:00
Jean-Baptiste Barth
26980f41a6 Replace globals() call with a static mapping
(suggested in @spulec review)
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
6b581edb55 Use datetime.utcnow() instead of datetime.now()
(suggested in @spulec review)
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
5f0684fca5 Use dict.values() instead of dict.items() where possible
(suggested in @spulec review)
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
de646cf7ac Fix python 3 compatibility: filter() returns an iterator now 2015-11-19 11:45:27 +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
7f2cbb79b0 Refactor SWF workflow execution to ease next timeout change 2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
6027bf15c1 Move some timeout conditionals to concerned models 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
9c3996ff58 Add WorkflowExecution.open to clarify code in some places 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
b386495520 Use list comprehensions instead of filter() for easier moto/swf python 3.x compatibility 2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
3a5f679783 Fix python 3.3 compatibility in moto/swf regarging string types detection 2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
c0b4aadd92 Fix python 3.x compatibility regarding json loading
Error on travis-ci was:

    TypeError: can't use a string pattern on a bytes-like object
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
e9732140e5 Fix python 2.6 compatibility for moto/swf 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
Jean-Baptiste Barth
98948a01c8 Add missing attributes in DescribeWorkflowExecution responses 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
fd12e317f8 Add SWF endpoint RespondActivityTaskFailed 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
c9e8ad03f8 Add SWF endpoint RespondActivityTaskCompleted 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
08643945df Add SWF endpoint CountPendingActivityTasks 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
761ab816f9 Add SWF endpoint PollForActivityTask 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
d650f71d9c Simplify decision task handling in SWF backend 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
be71909a8c Rework task lists for activity/decision tasks 2015-11-19 11:45:25 +01:00
Jean-Baptiste Barth
83c08b7655 Remove unused import 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
a713005882 Simplify implementation of ScheduleActivityTask decision 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
5e086223c2 Implement ScheduleActivityTask decision 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
53630dc061 Add a Domain to WorkflowExecution objects
This will be needed later for finding an activity type for instance.
2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
fa4608be98 Add basic ActivityTask model 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
49e44c8ee6 Fix openDecisionTasks counter not updated when we complete a DecisionTask 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
918cf8a4e3 Fix decision parameters: attributes are in foo*Decision*Attributes 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
417f732b53 Implement FailWorkflowExecution decision 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
6810973b76 Update obsolete comment about SWF decisions completion 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
558b84fb6a Add checks for *DecisionAttributes within RespondDecisionTaskCompleted 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
507351612e Fix missing space in decision validation error 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
0749b30fb4 Add some basic checks on SWF decisions, more to come later 2015-11-19 11:45:24 +01:00
Jean-Baptiste Barth
381eb5eb0f Implement CompleteWorkflowExecution decision 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
d97c770849 Add first version of SWF endpoint RespondDecisionTaskCompleted
There's just the structure for now, for now the workflow execution
doesn't know how to handle any decision type.
2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
c72c198208 Fix WorkflowExecution event ids not increasing 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
a137e5c5c9 Add SWF endpoint CountPendingDecisionTasks 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
4e223d2318 Fix PollForDecisionTask not respecting requested task list 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
1ccadb169f Simplify WorkflowExecution model since it always has a task list 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
c310a04c74 Remove obsolete command about DefaultUndefinedFault
(already implemented a few commits ago)
2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
aa4adbb76e Implement reverseOrder option for GetWorkflowExecutionHistory and PollForDecisionTask 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
c16da9da2d Add SWF endpoint PollForDecisionTask and associated DecisionTask model 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
464aef293c Add SWF endpoint GetWorkflowExecutionHistory and associated HistoryEvent model 2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
3ce5b29356 Handle WorkflowExecution/WorkflowType options inheritance
... and potential resulting DefaultUndefinedFault errors.
2015-11-19 11:45:23 +01:00
Jean-Baptiste Barth
1026fb819f Split SWF models into their own file
Given the docs[1] we will implement a hundred models or so if we want to
have a full implementation of the SWF API, so better not have a 3k lines
long models.py file, too hard to manipulate.

[1] http://docs.aws.amazon.com/amazonswf/latest/apireference/API_DecisionTask.html
2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
2878252816 Add SWF endpoint: DescribeWorkflowExecution 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
a589dc08b5 Make workflow_id a required property of WorkflowExecution
Given the response of DescribeWorkflowExecution endpoint, the
WorkflowExecution has to know about its own workflowId.
2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
c08c20d197 Move SWF Domain full dict representation to model 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
92cf64c2ad Add SWF endpoint: StartWorkflowExecution 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
fbcdd5f2bd Use dict[] to document required keys in SWF responses 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
168f61c6a8 Remove useless usage of templating in SWF responses implementation 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
036ab194ba Add 'status' to SWF *Type string representation 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
8b02c0b85e Move *Type __repr__ to GenericType 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
080b79338d Simplify how we store SWF types inside a SWF domain 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
5c02fcd94b Abstract away SWF *Type models logic into a GenericType class 2015-11-19 11:45:22 +01:00
Jean-Baptiste Barth
9483355584 Prepare SWF objects representations directly via json.dumps()
... instead of jinja2 templates that are absolutely not suited for this
purpose, and hard to test.
2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
6e6b325225 Deduplicate logic between ActivityType's and WorkflowType's 2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
c4e903706c Add SWF endpoints: RegisterWorkflowType, DeprecateWorkflowType, ListWorkflowTypes, DescribeWorkflowType 2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
b680b2ec3c Add SWF endpoints: RegisterActivityType, DeprecateActivityType, ListActivityType, DescribeActivityType 2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
cb46eac513 Implement naive reverseOrder option for SWF's ListDomains endpoint 2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
3e2c7dec83 Fix json template for listing SWF domains 2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
2c3b286b6b Improve SWF Domain representation 2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
49bbd7399e Add some TODO comments in SWF mocks 2015-11-19 11:45:21 +01:00