Commit Graph

903 Commits

Author SHA1 Message Date
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
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
mfranke
7220969feb typo 2015-11-17 18:18:02 +01:00
Akira Chiku
7a11500171 Implement JSON responses for EMR (for Boto3) 2015-11-15 17:24:36 +09:00
Steve Pulec
32dd72f6b7 Change BaseResponse action parsing to be a bit more generic.
Some service like SWF have action headers like
com.amazonaws.swf.service.model.SimpleWorkflowService.<action>. By using
-1 instead of 1, we can accomodate both scenarios.
2015-11-14 13:42:22 -05:00
mfranke
f93b9a86e9 add put_records API
fix create_stream API to get right response in case of stream already exists
2015-11-12 10:05:02 +01:00
Steve Pulec
4aa14960d2 Add support for partial updates and SS in dynamodb. 2015-11-11 21:59:55 -05:00
Steve Pulec
c38731ecbb Add ACL support for S3 buckets. 2015-11-11 20:26:29 -05:00
Ian Dees
27e7767883 Remove stuff that doesn't need to change 2015-11-09 20:19:51 -05:00
Ian Dees
97b7781c13 Include XML response template 2015-11-09 20:09:08 -05:00
Ian Dees
f8cbcfc098 How about in the SQSResponse object 2015-11-09 20:03:52 -05:00
Ian Dees
b732e116a4 Try the length of the body 2015-11-09 19:53:14 -05:00
Ian Dees
540ee79ad9 Put the size check in the queue 2015-11-09 19:51:17 -05:00
Ian Dees
5b2a724219 Check SQS message size 2015-11-09 19:29:08 -05:00
Steve Pulec
ab3682a55c py3 fix. 2015-11-07 16:58:39 -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
0061eb77d7 0.4.18 2015-11-03 14:01:09 -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
99a4bcf98f 0.4.17 2015-11-02 10:11:14 -05:00
Steve Pulec
fcaa8fbce7 0.4.16 2015-11-02 10:09:17 -05:00
Steve Pulec
1d58aae42a Merge pull request #438 from ZuluPro/instancetypes
Added describe instance types
2015-11-01 14:30:32 -05:00
Steve Pulec
976c470fa3 Merge pull request #443 from gvlproject/master
When adding security group rules, allow a source group only to be spe…
2015-11-01 14:25:42 -05:00
Steve Pulec
1b1cf40af8 handle optional compression format. 2015-10-30 14:18:29 -04: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
7fcf84b32a easier fallback. 2015-10-30 10:13:57 -04:00
Steve Pulec
127625bdc3 fix typo. 2015-10-30 10:10:49 -04:00
Steve Pulec
015e7ea9a2 py3 fix. 2015-10-30 10:05:53 -04:00
Steve Pulec
ac1bb336c8 firest draft of firehose support. 2015-10-30 09:59:57 -04:00
Enis Afgan
e07894c6e4 When adding security group rules, allow a source group only to be specified - as per boto docs & functionality 2015-10-29 07:27:35 +01:00
Yoriyasu Yano
f0cc561aa7 Use correct kwarg when creating database 2015-10-20 09:12:59 -07: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
Steve Pulec
96cf5eabc4 Merge pull request #434 from milesoc/master
Add tag support on create/read for autoscaling groups
2015-10-06 20:29:05 -04:00
Steve Pulec
11cb2fba16 0.4.15 2015-10-06 15:20:21 -04: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
123d1e3965 Merge pull request #431 from araines/master
Fixes #430: MD5 hashing should be done to the real body, not an escaped one
2015-10-05 18:28:34 -04: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
Andy Raines
76bce7954a Fixes #430: MD5 hashing should be done to the real body, not an escaped one 2015-10-05 14:14:56 +01:00
ZuluPro
b85b415977 Implemented import key pair 2015-09-24 17:34:08 +02:00
Anthony Monthe
0999a49b5b Added describe instance types 2015-09-23 14:50:47 +02:00
Steve Pulec
f72613cc47 Fix queue urls for other regions. Closes #411. 2015-09-19 09:18:16 -04:00
Steve Pulec
bee2b5a891 Merge pull request #414 from 2mf/master
DynamoDB2 is overwriting the table instead of returning an error
2015-09-19 09:05:08 -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
Steve Pulec
967c778390 0.4.14 2015-09-17 17:21:57 -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
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
Hugo Lopes Tavares
0cef332840 Add support to ListPipelines 2015-09-16 15:49:15 -04:00
Steve Pulec
1b811e6949 0.4.13 2015-09-16 11:29:03 -04:00
Steve Pulec
db23b7d24c Fix state to start as PENDING and only become SCHEDULED on activation. 2015-09-16 11:22:52 -04:00
Steve Pulec
b0ea9f2859 Fix tests for server mode. 2015-09-16 10:11:43 -04:00
Steve Pulec
95169c6011 First version of datapipelines. 2015-09-16 10:00:38 -04:00
ZuluPro
23c2e7835e Remade ec2.utils.random_key_pair for be really random 2015-09-15 20:09:35 -04:00
Michael
31d30c8ea4 return the correct response tryin to re-create a table 2015-09-10 11:31:46 +02:00
Jesse Szwedko
14ec3531ff Add support for latency based route53 records
Store and marshal the region field of records

Signed-off-by: Kevin Donnelly <kevin.donnelly@getbraintree.com>
2015-09-08 21:36:32 +00:00
zeb
b59a77d5bb Tweak bucket.delete_keys for s3bucket_path. 2015-09-04 19:02:26 +02:00
Steve Pulec
8b0f42afed 0.4.12 2015-08-31 16:56:07 -04:00
Steve Pulec
1dcfcbca57 Add cloudformation tags. 2015-08-31 16:48:36 -04:00
Dustin J. Mitchell
00e40c487e Return messages once they are gathered
If one or more messages are available, stop waiting and return them.
2015-08-31 11:27:42 -04:00
Steve Pulec
b55600ce42 0.4.11 2015-08-26 22:58:34 -04:00
Steve Pulec
984e221cab Merge pull request #408 from pitluga/elb_boto3_support
Make all existing ELB endpoints compatible with boto3
2015-08-26 22:55:29 -04:00
Tony Pitluga
1d8252feea Make all existing ELB endpoints compatible with boto3 2015-08-24 15:07:14 +00:00
Pior Bastida
43ceb8b06a Fix incorrect dynamodb2 delete_item response
Attribute field must be a mapping (not a list)
2015-08-20 17:06:10 -04:00
Pior Bastida
2650eab295 Implement XML responses for SNS (for Boto3) 2015-08-20 14:57:17 -04:00
Jot
178d1c3a93 Added support for WaitTimeSeconds in SQS #392 2015-08-13 02:58:14 +02:00
Steve Pulec
73f03d1ccf Add redshift support for cloudformation. 2015-08-08 13:29:37 -04:00
Steve Pulec
323f720cb5 Fix S3 bucket policy delete. Closes #396. 2015-08-07 22:43:24 -04:00
Steve Pulec
6b2f54604e 0.4.10 2015-08-03 22:17:19 -04:00
Steve Pulec
df6ff57d24 Fix ASG instance_type. 2015-08-03 21:52:43 -04:00
Steve Pulec
1814db3dfb Fix launch configuration instance types. 2015-08-03 21:48:17 -04:00
Steve Pulec
92c96b6788 Fix bug in creating SecurityGroups for nics. Closes #391. 2015-08-03 20:56:05 -04:00
Steve Pulec
ed38a296db Merge pull request #390 from jotes/iam_sns_server
Added server backends with tests for IAM and SNS services.
2015-08-03 18:58:53 -04:00
Jot
930ac58a4d Added sns backend to servers, added some tests to check backend 2015-08-04 00:20:04 +02:00
Ilya Sukhanov
9904193d66 Merge branch 'master' into sns_regions 2015-08-03 10:22:55 -04:00
Ilya Sukhanov
e08796bcf4 Keep current region when creating SNS ARN topic 2015-08-03 10:19:04 -04:00
Jot
42b95023f5 Added iam backend to servers, added some tests to check backend 2015-08-03 00:31:36 +02:00
Steve Pulec
84c9dd03d2 Merge pull request #387 from jotes/server_cloudformation
Enabled cloudformation in server mode, added some tests
2015-08-02 11:34:46 -04:00
Steve Pulec
4576f2873e Allow passing of region name to s3bucket_path url for eu-central-1. cc ##348. 2015-08-02 11:26:29 -04:00
Jot
b2570d901e Enabled cloudformation in server mode with some tests 2015-08-02 16:31:16 +02:00
Steve Pulec
8573333932 0.4.8 2015-08-02 10:04:13 -04:00
Steve Pulec
519726a70a Cleaning up SQS for boto3. Closes #385. 2015-08-02 09:45:40 -04:00
Steve Pulec
ac4aef87a1 Unused exception. 2015-08-01 19:44:37 -04:00
Steve Pulec
4543db567c Merge pull request #384 from rocky4570/volmods
volmods
2015-08-01 19:37:25 -04:00
Steve Pulec
e4408152d1 Add KeyConditionExpression to dynamo. 2015-08-01 19:32:33 -04:00
Rob Walker
e33777b60c tidy up imports. 2015-07-26 09:51:37 +10:00
Rob Walker
2bb79824ce Volume attachments to show in instance.
Volumes and Snapshots to be searchable by their id
Placement of instance to match region connection
Times for creation and attachment to show based on api call
2015-07-26 09:37:20 +10:00
Steve Pulec
9c81b7340c Merge pull request #383 from spg/s3_policy
S3: Bucket policy
2015-07-25 17:09:00 -04:00
Steve Pulec
1e195d0e7a Merge pull request #381 from spg/kms/alias
KMS: aliases
2015-07-25 17:06:05 -04:00
Simon-Pierre Gingras
dc0557205d S3: Bucket policy 2015-07-23 17:33:52 -04:00
Simon-Pierre Gingras
6b501a39a7 KMS: aliases 2015-07-23 10:56:33 -04:00
Steve Pulec
3a81982cce 0.4.7 2015-07-22 22:01:11 -04:00
Ilya Sukhanov
9bf5c2e706 CloudWatch DescribeAlarm filters.
Adds support for filtering by:
action_prefix
alarm_name_prefix
alarm_names

And throw NotImplementedError when filtering by:
state_value
2015-07-22 21:08:39 -04:00
Steve Pulec
9f02da4c56 Update ELBs to use newer querystring querying methods. 2015-07-18 09:08:27 -04:00
Andrew Harris
ea2fe6f290 change usages of long conversion to int for python3 2015-07-16 18:23:13 -07:00
Steve Pulec
a611010f86 Revert "Move RRSet parsing inside models so that cloudformation works better."
This reverts commit c7090a2b54.
2015-07-16 15:33:00 -07:00
Steve Pulec
e47147510b Move RRSet parsing inside models so that cloudformation works better. 2015-07-16 15:33:00 -07:00
Steve Pulec
c8bf862826 Fix for dynamodb2 attribute response. Closes #374. 2015-07-16 15:33:00 -07:00
Steve Pulec
b67e02cceb Better value error 2015-07-16 15:33:00 -07:00
Steve Pulec
75461cb110 Fix dynamo item not found. 2015-07-16 15:33:00 -07:00
Andrew Harris
bbb021d06d implement mocking for lb policies 2015-07-16 15:32:51 -07:00
Steve Pulec
7f2abc41a5 0.4.6 2015-07-13 19:31:23 -04:00
Steve Pulec
4020141478 Fix cloudformation subnet tagging. 2015-07-13 19:27:00 -04:00
Steve Pulec
de29762a65 Cleanup parsing. 2015-07-13 15:28:29 -04:00
Steve Pulec
53fff2eb84 Add UpdateStack functionality for Cloudformation. 2015-07-13 13:56:46 -04:00
Steve Pulec
7f73d7e26d Add cloudformation list_stack_resources. 2015-07-13 11:05:36 -04:00
Steve Pulec
8b41af84a8 0.4.5 2015-07-13 10:51:56 -04:00
Steve Pulec
c45968b79f Template in the ASG instance lifecycle states. 2015-07-13 10:47:45 -04:00
Akira Chiku
91edbb21bf Make EMR multi-region 2015-07-12 19:32:16 +09:00
Steve Pulec
af45424b9e Merge pull request #371 from apjaffe/master
Adds the ConditionalCheckFailedException to put_item
2015-07-08 20:54:53 -04:00
Shulman Evgeny
e498c95807 feature emr: set_termination_protection call implementation
feature emr: support for instance_groups param in run_jobflow
2015-07-08 10:26:58 +03:00
Alan Jaffe
690402ccb3 Python 3 compatibility 2015-07-07 15:38:08 -04:00
Alan Jaffe
e3c859868c Adds the ConditionalCheckFailedException to put_item
If the Item‘s original data is inconsistent with what's in DynamoDB,
the request should fail (unless overwrite is set to True).

http://boto.readthedocs.org/en/latest/ref/dynamodb2.html#boto.dynamodb2.table.Table.put_item
2015-07-07 15:07:32 -04:00
Steve Pulec
abb3357925 Merge pull request #369 from MurphyMarkW/byteranges
Improves range request support.
2015-07-06 21:27:43 -04:00
Steve Pulec
ff5161ebf9 Fix for py26. 2015-06-30 05:55:43 -04:00
Steve Pulec
70aafc1fd3 Add basic KMS key endpoints. 2015-06-30 05:44:39 -04:00
MurphyMarkW
b82d0264dc Fixes suffix range requests to truncate ranges. 2015-06-30 02:04:30 -05:00
MurphyMarkW
723b743381 Modifies check for last-byte-pos. 2015-06-30 00:26:42 -05:00
MurphyMarkW
2cdab4cab9 Fixes last-byte-pos interpretation. 2015-06-29 20:25:22 -05:00
Steve Pulec
0ec6f87268 0.4.4 2015-06-29 21:03:09 -04:00