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
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
a0e484fa6d
Move setup_workflow() test function in test utils
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
eadc07bf61
Reorganize SWF tests so they're shorter and easier to use
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
558b84fb6a
Add checks for *DecisionAttributes within RespondDecisionTaskCompleted
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
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
8d435d8afe
Refactor SWF exceptions testing so responses tests get simpler
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
6a8636ad21
Remove unused import in SWF test
2015-11-19 11:45:23 +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
33c478bc62
Move SWF Domain related tests with other models tests
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
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
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
9440531d0c
Move SWF domain related tests in their own file
...
It will simplify other objects integration
2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
5392978eaf
Check parameters are strings on SWF endpoints
...
SWF endpoints raise a 400 Bad Request for non-string types, and boto
doesn't enforce it as of today, so better have some safety nets in moto
to avoid this common mistake.
Example exception raised by Boto:
SWFResponseError: SWFResponseError: 400 Bad Request
{u'Message': u'class java.lang.Short can not be converted to an String',
u'__type': u'com.amazon.coral.service#SerializationException'}
2015-11-19 11:45:21 +01:00
Jean-Baptiste Barth
8e3fd6c7de
Add SWF endpoints: RegisterDomain, DeprecateDomain, ListDomains, DescribeDomain
2015-11-19 11:45:20 +01:00
Akira Chiku
7a11500171
Implement JSON responses for EMR (for Boto3)
2015-11-15 17:24:36 +09:00
Steve Pulec
c38731ecbb
Add ACL support for S3 buckets.
2015-11-11 20:26:29 -05:00
Ian Dees
5115e50bd0
The message has to be bigger
2015-11-10 11:39:00 -05:00
Ian Dees
a4e86494e1
Add a test for a message that is too long
2015-11-10 11:24:55 -05:00
Steve Pulec
8d41d0019b
Add basic support for AttributeUpdates in Dynamo update_item. Closes #449 .
2015-11-07 16:45:24 -05:00
Steve Pulec
18d63a6cfe
Add basics of S# website configuration. Closes #442 .
2015-11-04 18:55:41 -05:00
Steve Pulec
cddf139bbc
Add ability to create EBS volumes from snapshots. Closes #447 .
2015-11-03 09:37:02 -05:00
Steve Pulec
d3e4c2c4b5
Add ability for specific backends to enable template escaping. Closes #441 .
2015-11-03 09:25:47 -05:00
Steve Pulec
73452c79f7
Add milliseconds to EC2 launch time. Closes #445 .
2015-11-02 23:33:39 -05:00
Steve Pulec
d9faab3e5e
Fix error for describing kinesis stream that has not been created.
2015-11-02 13:25:31 -05:00
Steve Pulec
1c95de421d
Merge pull request #446 from spulec/firehose
...
firest draft of firehose support.
2015-10-30 10:55:25 -04:00
Steve Pulec
fe2126b727
py26 fix
2015-10-30 10:04:08 -04:00
Steve Pulec
ac1bb336c8
firest draft of firehose support.
2015-10-30 09:59:57 -04:00
Steve Pulec
3622fd172e
Merge pull request #437 from gvlproject/master
...
Set snapshots to be in a completed state after being created and added
2015-10-17 23:10:14 -04:00
nuwan_ag
0b3ad166c0
Set snapshots to be in a completed state after being created and added
...
test case
2015-10-14 02:34:36 +11:00
Mike Kaplinskiy
131d44f0ad
Add S3 ACL supprt.
2015-10-07 00:14:37 -07:00
milesoc
b3096af098
Set tags in response, fix tests for tags
2015-10-06 18:07:58 +00:00
Miles O'Connell
3c38a551b2
Adding tags to AutoScalingGroups
2015-10-06 09:21:26 -07:00
Steve Pulec
37f86626cc
Merge pull request #425 from ZuluPro/random_key_pair
...
Remade ec2.utils.random_key_pair for be really random
2015-10-05 18:25:17 -04:00
Steve Pulec
507c03a0c7
Merge pull request #424 from ZuluPro/keypairs
...
Implemented import key pair
2015-10-05 18:24:21 -04:00
Hugo Lopes Tavares
e5675e9533
Change CloudFormationResponse.get_template() to return GetTemplateResponse/GetTemplateResult/TemplateBody
2015-10-05 15:21:30 -04:00
ZuluPro
b85b415977
Implemented import key pair
2015-09-24 17:34:08 +02:00
Steve Pulec
f72613cc47
Fix queue urls for other regions. Closes #411 .
2015-09-19 09:18:16 -04:00
Steve Pulec
5a8f3bd616
Merge pull request #412 from ybastide/master
...
Tweak ResponseObject to let bucket.delete_keys work with s3bucket_path.
2015-09-19 09:04:17 -04:00
Steve Pulec
d58afc13fd
Merge pull request #413 from jszwedko/master
...
Add support for latency based route53 records
2015-09-19 09:03:38 -04:00
Hugo Lopes Tavares
dafddb094b
Implement CloudFormation's physical_resource_id for Data Pipeline
2015-09-17 15:29:14 -04:00
Hugo Lopes Tavares
8623483c0f
Change data pipeline responses to start with lowercase characters
2015-09-17 15:26:35 -04:00
Steve Pulec
66dce44214
Update cloudformation test for previous commit.
2015-09-16 18:17:20 -04:00
Steve Pulec
65dd7f7639
Change fields to be start with lower case based on examing of real AWS calls.
2015-09-16 18:13:44 -04:00
Hugo Lopes Tavares
25f9e8b588
Change CloudFormation to support Data Pipelines
2015-09-16 17:49:13 -04:00