Commit Graph

1274 Commits

Author SHA1 Message Date
Justin Wiley
6c85a85e0d Removed OrderedDicts for 2.6 and dict.iteritems() calls for 3.3+ compatibility. 2016-12-01 19:10:59 -08:00
Justin Wiley
db0b494b4f Completed the CloudWatch Events mocking module and tests. 2016-12-01 17:23:51 -08:00
Steve Pulec
1b4bb156e4 Freezetime. 2016-11-23 19:23:47 -06:00
Pior Bastida
09ca1c4388 Fix JSON dump error in ecs.update_service with task_definition (#775) 2016-11-23 19:01:48 -06:00
Robert Sheehy
17584e9aa4 Add ECS Descriptors (#772)
* Add support for "DescribeServices" in ecs mock

* Add support for "DescribeTaskDefinition" in ecs

* Let ecs responses handle baseobject for services
2016-11-23 18:56:12 -06:00
Steve Pulec
05c6fc6738 Fix tests for py3. 2016-11-11 17:22:45 -05:00
Sean Marlow
fa3663c610 Add support for login profile deletion (#768)
* Add support for delete_login_profile.

Mock deletion of login profile. Set password to
none. Add tests to cover new endpoint.

* Fix typo in create_login_profile response.

Change CreateUserResult to CreateLoginProfileResult
in the CREATE_LOGIN_PROFILE_TEMPLATE. Caused KeyError
when using boto3.

Add test to cover boto3 in addition to boto.
2016-11-11 17:05:01 -05:00
Nuno Santos
71c1fbadbe Add DynamoDB tests for update_item() with UpdateExpression, support spaces in the UpdateExpression. (#758)
Fixes #745.
2016-11-11 17:04:14 -05:00
Mike Pappas
4942e74ab1 Fix SNS application endpoint to match AWS return format (#763) 2016-11-11 17:01:47 -05:00
Steve Pulec
5c3d9b4ae1 Have spot requests launch instances. 2016-11-07 23:08:30 -05:00
Steve Pulec
5371044b6f Spot fleet (#760)
* initial spot fleet.

* Add cloudformation spot fleet support.

* If no spot fleet ids, return all.
2016-11-07 09:53:44 -05:00
Steve Pulec
38021c6ef5 Test Boto 2.43.0 . 2016-11-06 10:29:50 -05:00
Steve Pulec
3b98566f20 Merge pull request #757 from nfvs/dynamodb_putitem_conditional
Attempt to parse simple ConditionExpressions in DynamoDB put_item().
2016-11-06 09:53:45 -05:00
Steve Pulec
44636d1f73 Merge pull request #755 from dtenenba/master
bump tag limit from 10 to 50 to align with actual AWS limit
2016-11-06 09:52:20 -05:00
Steve Pulec
721d1b3a3f Merge pull request #736 from okomestudio/ts/botocore_update
Remove botocore version pinning
2016-11-06 09:50:28 -05:00
Steve Pulec
2fdc5498b5 Merge pull request #744 from helenst/scan-after-has-item
Fix failure of scan() after has_item()
2016-11-06 09:45:12 -05:00
Steve Pulec
ee369de3ef Merge pull request #741 from costypetrisor/sec-group-authorize-revoke-in-batch
Sec group authorize revoke in batch
2016-11-06 09:40:16 -05:00
Steve Pulec
ac89403807 Merge pull request #738 from okomestudio/ts/more_iam_endpoints
Implement IAM managed policy
2016-11-06 09:39:22 -05:00
Nuno Santos
bfc664cca8 Add additional put_item test with an attribute_exists condition. 2016-11-04 13:29:53 +01:00
Nuno Santos
74b56faafd Attempt to parse simple ConditionExpressions in DynamoDB put_item().
Internally these get converted into simpler Expected={} parameters, so
for now only `attribute_exists` and `attribute_not_exists` are supported;
OR is also not suported since `expected` does not support it.
2016-11-04 12:37:10 +01:00
Dan Tenenbaum
ed7ea86f7b add positional argument for python 2.6 compatiblity 2016-11-03 14:42:23 -07:00
Dan Tenenbaum
de0a741309 syntax fix 2016-11-03 14:30:35 -07:00
Dan Tenenbaum
ffa6b1d9c1 should pass unit tests 2016-11-03 14:24:47 -07:00
Taro Sato
5538b541a8 Fix a bug with map type not properly handling multiple entries 2016-10-31 11:29:39 -07:00
Helen Sherwood-Taylor
08d07fed30 Fix failure of scan() after has_item()
Fixes #731
2016-10-25 17:09:39 +01:00
Costy Petrisor
8689b40d23 made the security group endpoints that authorize or revoke firewall rules
to support batch rules (boto doesn't expose this, but botocore/boto3 does)
2016-10-20 19:34:11 +00:00
Costy Petrisor
6f622b9689 an unit test for the bulk authorization and revokation of security group
rules
2016-10-20 18:14:22 +00:00
Taro Sato
159a81723c Implement IAM managed policy.
This requires boto 2.39 for managed policy tests
2016-10-20 10:07:41 -07:00
Taro Sato
484faa54c4 Implement filters and pagers for some EMR end points 2016-10-20 10:03:17 -07:00
Taro Sato
ed91b093cd Ignore RetryAttempts field generated by recent botocore versions 2016-10-16 21:50:21 -07:00
Taro Sato
b632df3aa4 Generate proper empty value for XML/JSON 2016-10-16 21:49:10 -07:00
Steve Pulec
2e33e2be90 Merge pull request #735 from rocky4570/dryrun-ec2
Add dry_run to a number of EC2 services
2016-10-16 19:14:57 -04:00
Steve Pulec
5dbb22265c Merge pull request #732 from JackDanger/jack/implement-kms-encryption
Implementing KMS encrypt/decrypt
2016-10-16 19:12:43 -04:00
rocky4570fft
95e9ce2d42 fixup merge issue with test_elastic_ip_addresses.py 2016-10-16 00:37:14 +10:00
rocky4570fft
d6f76cbb43 Add dry_run to a number of EC2 services 2016-10-16 00:34:52 +10:00
rocky4570fft
015c92ac44 Add dry_run to a number of EC2 services 2016-10-15 23:08:44 +10:00
Jack Danger Canty
ea24376131 Implementing KMS encrypt/decrypt
This adds support for testing the /encrypt and /decrypt endpoints
of Amazon KMS
2016-10-14 01:04:14 -07:00
Taro Sato
7cd404808b Better EMR coverage and boto3 request/response handling
This revision includes:

- A handler for requests for which content-type is JSON (from boto3).

- A decorator (generate_boto3_response) to convert XML responses to
  JSON (for boto3). This way, existing response templates for boto can
  be shared for generating boto3 response.

- Utility class/functions to use botocore's service specification data
  (accessible under botocore.data) for type casting, from query
  parameters to Python objects and XML to JSON.

- Updates to response handlers/models to cover more EMR end points and
  mockable parameters
2016-10-13 16:48:07 -07:00
Steve Pulec
27f1bece9b Fix assigning public ip to instances. Closes #729. 2016-10-12 22:02:13 -04:00
Rene Martin
bd9e7deb95 Merge branch 'master' of https://github.com/spulec/moto 2016-10-10 07:47:11 +01:00
Steve Pulec
fef3437db2 Throw error on terminating empty instance list. Closes #697. 2016-10-09 21:20:53 -04:00
Steve Pulec
ddf2f5a754 Fix firehose to work without Redshift config. 2016-10-09 20:24:09 -04:00
Steve Pulec
768a58671a Merge pull request #723 from rocky4570/awslambda-mods
lambderize the moto lambda
2016-10-09 19:13:02 -04:00
Steve Pulec
b3b538bbef Merge pull request #721 from rocky4570/kms-fixes
Add ARN and Alias functionality to KMS
2016-10-09 19:01:26 -04:00
Steve Pulec
81d489ce46 Merge pull request #710 from kryptek/master
Fix Route53 tagging code
2016-10-09 18:58:17 -04:00
Steve Pulec
f7ea66c248 Merge pull request #711 from skygeo/fix_dynamodb2_conditions
fix: dynamodb2 conditions
2016-10-09 18:55:38 -04:00
rocky4570fft
dc98cf6f64 argh 2 days trying to work python3 into working python2 :( 2016-10-10 01:13:52 +10:00
Rene Martin
b06d439a81 Set the right dhcp_options id in the response
If the vpc has a dhcp_options associated with it the response should
include the right association.
2016-10-08 10:34:55 +01:00
rocky4570fft
7c3005e582 attmpt 2 to resolve StringIO not being within Python 3 anymore 2016-10-07 00:14:47 +10:00
rocky4570fft
6c577091da lambderize the moto lambda 2016-10-06 19:52:23 +10:00
rocky4570fft
3a7fec4032 Add ARN and Alias functionality to KMS 2016-10-03 01:33:59 +11:00
Georges Chaudy
6b74487b31 fix: dynamodb2 conditions 2016-09-23 16:14:17 +01:00
Alfred Moreno
40ad92b4bc Add a unit test to make sure multiple tags were actually associated with a resourceId 2016-09-22 18:44:07 -07:00
Steve Pulec
79fe9df6cc Merge pull request #706 from kryptek/add-route53-tagging
Add support and unittests for Route53 tags
2016-09-21 21:32:22 -04:00
Alfred Moreno
9a7556b3af Add support and unittests for Route53 tags 2016-09-20 17:41:23 -07:00
Taro Sato
bdb9d59e46 Update response headers with response_dict from key; add tests 2016-09-20 15:42:21 -07:00
Steve Pulec
ea0b587791 Merge pull request #699 from tootedom/apigateway
added more api gateway coverage
2016-09-16 18:34:27 -04:00
dominictootell
dd85f35f5a don't set cacheClusterSize if cache not enabled 2016-09-14 10:04:51 +01:00
Steve Pulec
fca0d3885b Merge pull request #698 from SpoonMeiser/fix-trailing-slash
Stop stripping the trailing slash off keys listed from s3 buckets
2016-09-13 21:57:03 -04:00
Steve Pulec
59be70d0e4 Merge pull request #693 from swipetospin/master
ALWAYS use utcnow(), never now()
2016-09-13 21:55:40 -04:00
Steve Pulec
4d9a0f7dc6 Merge pull request #692 from imran2140/fix-unicode-s3-key-listing
Fix unicode S3 key listing in Python 2
2016-09-13 21:54:28 -04:00
Steve Pulec
8a92cc2924 Merge pull request #689 from michael-dev2rights/master
Make testing a bit safer binding to 127.0.0.1
2016-09-13 21:53:13 -04:00
Steve Pulec
65047ce102 Merge pull request #687 from skygeo/ecs_tasks
Add support for ECS tasks
2016-09-13 21:51:42 -04:00
dominictootell
1aaafc5f07 added more api gateway coverage
added: get_stages, stage not found exception, update stage configuration, descriptions on deployments, setting stage variables on deployments and stage creating
2016-09-13 12:44:17 +01:00
Oliver Jeeves
b297b1410c Stop stripping the trailing slash off keys listed from s3 buckets
fixes #684
2016-09-13 12:21:22 +01:00
Collin RM Stocks
1b65c45b56 ALWAYS use utcnow(), never now() 2016-09-07 14:40:52 -04:00
imran
478e791c39 Fix unicode S3 key listing in Python 2 2016-09-04 04:31:03 +06:00
Michael De La Rue
9062c654cf Hopefully break build by testing for local only default server 2016-09-01 12:05:34 +01:00
Georges Chaudy
dc75e5d6ad add ecs tasks methods 2016-08-30 00:26:13 +01:00
Steve Pulec
ea319698aa Merge pull request #669 from netors/feature/implement-iam-list-users-for-boto3
implemented iam list users (Closes #668)
2016-08-27 21:13:53 -04:00
Steve Pulec
0a11db6a8c Merge pull request #686 from mervynrussell/feature/ami_creation_date
Feature/ami creation date
2016-08-27 21:06:13 -04:00
Steve Pulec
18b6197bf2 Merge pull request #674 from IlyaSukhanov/master
Preserve Namespace and MetricName when creating cloudwatch alarm.
2016-08-27 21:05:31 -04:00
Mervyn Russell
43ff874b68 Amended test_ami_create_and_delete to include test for existence of creation date 2016-08-26 15:14:04 +01:00
Waldemar Hummer
db275a1573 initial support for apigateway stages, in particular the update_stage method 2016-08-22 13:36:19 +10:00
Steve Pulec
e92a8b7492 Merge pull request #680 from SplunkStorm/setup_s3_cfn_parsing
Setup s3 cfn parsing
2016-08-19 17:29:58 -04:00
Steve Pulec
18d1bb1079 Merge pull request #681 from ronin13/queue-arn
Use region from ctor to set queue_arn.
2016-08-19 17:29:01 -04:00
Steve Pulec
811c95381a Merge pull request #679 from phobologic/master
Causes get_server_certificate to fail correctly
2016-08-19 17:28:31 -04:00
Steve Pulec
346c094007 Merge pull request #676 from whummer/feature/apigateway-req-templates
Add support for requestTemplates parameter in apigateway integrations mock
2016-08-19 17:26:45 -04:00
Raghavendra Prabhu
34a28b0fd5 Use region from ctor to set queue_arn.
Without this, any region passed to boto3.resource is ignored and unit
tests depending on it break.
2016-08-17 22:12:00 +01:00
Declan Shanaghy
e8d245f6a1 Fix tests for python3 2016-08-15 12:36:39 -07:00
Declan Shanaghy
659efe1c21 Add tests 2016-08-15 11:28:07 -07:00
Michael Barrett
4bfbcf4d03 Causes get_server_certificate to fail correctly
When no certificate with the name exists, the API should return a 404
(NoSuchEntity).
2016-08-14 17:40:39 -07:00
rocky4570fft
0161422d21 additional filters to get_all_vpcs 2016-08-14 16:58:35 +10:00
Waldemar Hummer
5075f6684f add support for requestTemplates parameter in apigateway mock 2016-08-10 13:55:59 +10:00
Ilya Sukhanov
a37838b638 Preserve Namespace and MetricName when creating cloudwatch alarm. 2016-08-01 17:31:08 -04:00
Ernesto Ruy Sanchez
9c587ec6b1 added assert response returns Users 2016-07-25 08:59:57 -07:00
Steve Pulec
ae938223d4 Cleanup headers popping. 2016-07-24 09:50:39 -04:00
Steve Pulec
8e8f3d99f6 Merge pull request #655 from 2rs2ts/work-around-httpheaders
Remove HTTPHeaders from ResponseMetadata in some tests
2016-07-24 09:36:58 -04:00
Steve Pulec
ececa8009b Merge pull request #665 from macheins/fix-broken-sqs-queue-arn-attribute
Fix broken SQS QueueArn attribute
2016-07-24 09:28:47 -04:00
Steve Pulec
d20906fcd7 Merge pull request #622 from nfvs/boto3_get_queue
Fix retrieving inexistent queue errors when using boto3
2016-07-24 09:18:32 -04:00
Andrew Gross
b4176050e2 Add volume attachment status 2016-07-22 14:23:42 -04:00
Ernesto Ruy Sanchez
e84dad6509 implemented iam list users 2016-07-20 15:12:02 -07:00
macheins
b152996ddf Changed unit test to reflect changes 2016-07-19 14:20:33 +02:00
Nuno Santos
8ffd4e51ec Fix retrieving inexistent queue errors when using boto3.
Handle 404 errors when trying to retrieve a SQS queue that does not
exist. Add get_queue and get_inexistent_queue tests for boto3.
2016-07-16 12:09:34 +01:00
Steve Pulec
1c8458080a Merge branch 'lambda_invoke' of https://github.com/mikegrima/moto into mikegrima-lambda_invoke 2016-07-09 21:29:41 -04:00
Steve Pulec
9d281844cd Merge pull request #661 from braintreeps/fix-s3-errors
Update format of S3 client errors
2016-07-09 21:12:57 -04:00
Steve Pulec
3e797d9c50 Merge pull request #658 from kierandoonan/master
Add encrypted attribute to Volumes/Snapshots
2016-07-09 21:11:52 -04:00
Steve Pulec
c34481a476 Merge pull request #659 from kierandoonan/fix-tag-filter
Fix tag filter
2016-07-09 21:11:12 -04:00
Steve Pulec
84d0c44bd3 Merge pull request #653 from 2rs2ts/describe-stack-events
Add CloudFormation:DescribeStackEvents
2016-07-09 21:09:37 -04:00
Steve Pulec
219ed703fb Merge pull request #645 from paulci/describe_security_groups_boto3
Support Filters in describe_security_groups() for boto3
2016-07-09 20:56:43 -04:00
Jesse Szwedko
ef10df0636 Update format of S3 client errors
To match
http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#RESTErrorResponses
which documents that it should be at the top level rather than nested
under `Errors`.
2016-07-08 19:32:34 +00:00
Kieran Doonan
5f770ffabb added more wildcard test for tags 2016-07-05 11:31:47 +01:00
Kieran Doonan
20e00dd095 added tests for broken tag filter 2016-07-05 11:20:28 +01:00
Kieran Doonan
e9af4c9065 changed equal to be for booleans 2016-07-04 14:21:31 +01:00
Kieran Doonan
2d73052eef added tests for encrypted snapshots 2016-07-04 14:19:29 +01:00
Kieran Doonan
bf73cb603d added tests for unencrypted filter 2016-07-04 14:09:15 +01:00
Kieran Doonan
8ccc210eef added tests for encrypted ec2 volumes 2016-07-04 11:01:48 +01:00
Andrew Garrett
aab137ae66 Remove HTTPHeaders from ResponseMetadata in some tests
botocore 1.4.29 started adding this. I'd match against it, but it
contains a date object and it's just not worth rewriting the assertions
for a key-by-key approach.
2016-06-29 23:45:21 +00:00
Andrew Garrett
542248158f Implement the meat for DescribeStackEvents
Right now this just adds events for the stack itself via the lifecycle
methods of the FakeStack object, but it is possible to add other kinds
of events (I left a method for that should someone need inspiration
later.)
2016-06-29 21:56:39 +00:00
Paul Cieslar
8e6dd13738 Addition of region to test_security_group_tagging_boto3 2016-06-23 12:38:17 +01:00
Paul Cieslar
35d200c420 Update to test for security group tagging
Support for describe_security_groups() in boto3
2016-06-23 12:03:29 +01:00
Mike Grima
bfa079ec4e Added Lambda invoke capability. 2016-06-22 12:24:46 -07:00
Victor Blaga
cb36a8b10f Fix dynamodb_v2 update_item tests
Update expression has the wrong syntax. Something like :bar denotes a
placeholder which has to be filled by supplying an additional
ExpressionAttributeNames
2016-06-21 17:46:37 +02:00
Steve Pulec
a9e54482fc Merge pull request #631 from hummus/route53-private-zone-support
Route53 private zone support
2016-06-20 15:10:49 -04:00
Steve Pulec
0b8de6772d Merge pull request #639 from jessechahal/autoscale_update_and_create_tags
Autoscale update and create tags
2016-06-17 22:00:22 -04:00
Jesse Chahal
1d2042876e added update_and_create_tags() to autoscale groups 2016-06-17 18:51:28 -07:00
Steve Pulec
57167b1890 Merge pull request #635 from riccardomc/master
Introduce ContainerInstance handling in ECS
2016-06-17 18:06:04 -04:00
Steve Pulec
b6d7260f7f Merge pull request #634 from SplunkStorm/fix_cfn_error_message_and_delete_stack
Fix cfn error message and delete stack
2016-06-17 18:03:23 -04:00
Steve Pulec
ea43f41470 Merge pull request #625 from nfvs/fix_whitespace
Strip extra whitespace and newlines from SQS response templates.
2016-06-17 17:51:07 -04:00
Riccardo M. Cefala
27095638d9 map() returns a map object iterable instead of a list in python3 2016-06-15 10:41:34 +02:00
Riccardo M. Cefala
137791e960 add ECS describe_container_instances 2016-06-14 17:58:11 +02:00
Riccardo M. Cefala
262bf07608 add tests for ECS ContainerInstance list and register actions 2016-06-11 12:52:53 +02:00
Hitesh Ghia
d8baa957e9 Fix cfn delete stack functionality 2016-06-09 16:23:55 -07:00
hummus
8fa53c1453 support route53 HostedZone PrivateZone=True #627 2016-06-03 11:10:04 -04:00
Nuno Santos
68eeb5948b Strip extra whitespace and newlines from SQS response templates.
Fixes #623
2016-06-02 12:26:50 +02:00
Matt Long
9b7902018f Respect VisibilityTimeout when calling receive_message
Previously, receive_message would always use the queue's default
visibility timeout instead of the value passed as a query parameter when
calling the receive_message method on an SQS connection.
2016-05-31 15:13:49 -07:00
Steve Pulec
4372c346d9 Merge pull request #618 from mrucci/asg-delete-after-elb
ELBs can now be deleted before their autoscaling groups.
2016-05-17 21:02:13 -04:00
Steve Pulec
00becdbed4 Merge pull request #617 from mrucci/elb-duplicate-name-exception
Disallow creation of ELBs with duplicate names.
2016-05-17 21:01:45 -04:00
Steve Pulec
d4895d588a Merge pull request #616 from mnussbaum/cloudformation_kms
Adds KMS support to mock_cloudformation
2016-05-17 21:01:12 -04:00
Marco Rucci
a330b1d346 ELBs can now be deleted before their autoscaling groups.
Also, fix name clash in autoscaling tests.
2016-05-15 21:17:59 +02:00
Marco Rucci
e47fc4cafc Disallow creation of ELBs with duplicate names. 2016-05-15 20:04:00 +02:00
mnussbaum
01e5c3a384 Adds KMS support to mock_cloudformation 2016-05-13 21:36:24 +00:00
Yann Lambret
52a5346c9e Add support for VPC attributes management, and fix a bug about the default - not default status of a VPC 2016-05-12 22:36:09 +02:00
Steve Pulec
bd7327fca2 Fix issues around S3 deletion. Closes #606. 2016-05-08 17:14:35 -04:00
Steve Pulec
5415091d14 Merge pull request #608 from yannlambret/add-filtering-to-network-interfaces
Extend filtering support for elastic network interfaces
2016-05-08 16:41:22 -04:00
Yann Lambret
864594ab91 Add tests for new filters 2016-05-08 00:19:47 +02:00
Steve Pulec
196e5a7d8d Fix dynamodb2 comparisons. Closes #601. 2016-05-05 23:39:14 -04:00
Steve Pulec
79addb8926 Add S3 functionality to copy range. Closes #526. 2016-05-05 22:52:12 -04:00
Steve Pulec
6803444d61 Fix Dynamodb table key name. Closes #524. 2016-05-05 22:14:23 -04:00
Steve Pulec
68de6feb01 Add iam remove_role_from_instance_profile. Closes #563. 2016-05-04 22:25:46 -04:00
Steve Pulec
8ce2d3c8bf Cleanup updating ASGs. Closes #603. 2016-05-04 22:10:11 -04:00
Michael van Tellingen
d34dd5b08a
Implement support for sns delete_endpoint() 2016-05-02 14:34:51 +02:00
Steve Pulec
c308ef4364 Fix update_auto_scaling_group. Closes #596. 2016-05-01 22:34:16 -04:00
Steve Pulec
0a10b2f738 Fix issues with unicode and slashes for S3. Closes #521. 2016-05-01 22:03:52 -04:00
Dan Felix
ebb00a3bfe Test key head version_id support using boto3's head_object. 2016-04-28 13:17:33 -07:00
Jesse Szwedko
6928501973 Throw exception if an update is attempted on a stack in ROLLBACK_COMPLETE
If a stack has a status of ROLLBACK_COMPLETE and you attempt to update
it, the AWS API throws a validation error. This updates moto to have the
same behvaior. We also uncommented a test which tests updating a stack
which passed without any additional modification -- it is unclear why
this test was commented.

Signed-off-by: Jack Lund <jack.lund@getbraintree.com>
2016-04-28 09:30:42 -04:00
Steve Pulec
a600deb96a Fix merge conflicts and add EC2 Instance delete. Closes #576. 2016-04-28 09:22:31 -04:00
George Leslie-Waksman
0ed7d1bb71 Add support for src_version_id to bucket copy_key op. 2016-04-27 17:08:44 -07:00
Adam Romanek
b32fbf090a Fix security group ingress authorization for all protocols with no port spec 2016-04-26 11:00:04 +02:00
Steve Pulec
ecbb714757 Merge pull request #584 from minyoung/upsert-route53
Adding support for UPSERT'ing route53 records
2016-04-23 19:43:52 -04:00
Steve Pulec
6be53cf8c2 Merge pull request #594 from yannlambret/fix-security-groups
Fix security groups
2016-04-23 19:43:19 -04:00
Steve Pulec
224e92ba17 Merge pull request #592 from aiell0/hotifx/add-additional-instance-filters-issue-581
Added ec2 describe-instances filter: 'architecture'
2016-04-23 19:40:15 -04:00
Steve Pulec
1ff0aa4a65 Merge pull request #591 from vsudilov/feature/opsworks
Feature/opsworks
2016-04-23 19:39:34 -04:00
Steve Pulec
b6d5317b18 Merge pull request #590 from aiell0/hotfix/update-stack-response-issue-575
Fixes issue #575: cloudformation update_stack response ResponseParser…
2016-04-23 19:38:11 -04:00
Steve Pulec
419859b9be Merge pull request #585 from SplunkStorm/fix_s3_delete_path_rebase2
Fix multiple bugs encountered with boto3
2016-04-23 19:37:19 -04:00
Steve Pulec
1b4a9bd553 Merge pull request #588 from dhepper/elb_vpcs
Improved the ELBBackend
2016-04-23 19:34:40 -04:00
Yann Lambret
232b832563 Change type for IpProtocol key 2016-04-20 23:21:39 +02:00
Yann Lambret
f9267cff6c Fix egress rules management to autorize or revoke a security group 2016-04-20 23:01:09 +02:00
Yann Lambret
de68c94a0a Add the default outboud rule for security groups 2016-04-19 23:50:46 +02:00
Lawrence Aiello
cf529ec3f9 Filter dicts have not been implemented in Moto for '%s' yet - mock_ec2 2016-04-18 16:41:57 -04:00
Vladimir Sudilovsky
768f1adb4f opsworks: py2.6 compat str.format 2016-04-18 16:36:30 -04:00
Vladimir Sudilovsky
3a8268fd56 opsworks/tests: add missing region_name='us-east-1' in client init 2016-04-18 16:08:08 -04:00
Vladimir Sudilovsky
9ce1890f35 opsworks/tests: init boto3.client with region_name='us-east-1' 2016-04-18 16:03:13 -04:00
Vladimir Sudilovsky
1ce22068ea opsworks: impl start_instance, describe_instances 2016-04-18 15:44:21 -04:00
Lawrence Aiello
3017181862 Fixes issue #575: cloudformation update_stack response ResponseParserError. 2016-04-18 14:37:12 -04:00
Vladimir Sudilovsky
09ca1b6e0c opsworks: impl create_instance 2016-04-15 15:44:38 -04:00
Vladimir Sudilovsky
2fe5b77861 opsworks: impl create_layers; describe_layers 2016-04-14 16:28:53 -04:00
Vladimir Sudilovsky
165bab0f97 opsworks: implement create_stack 2016-04-14 10:37:13 -04:00
Daniel Hepper
105ba83835 Fix an assertion that was always true 2016-04-14 15:51:32 +02:00
Daniel Hepper
6eee995dcf Honor Tags when creating a load balancer 2016-04-14 15:50:51 +02:00
Daniel Hepper
35a60fbf49 Removed unwanted whitespace 2016-04-14 14:48:57 +02:00
Daniel Hepper
ce3fdaa012 Implemented subnet handling in ELB backend
The ELB backend now honors the Subnets parameter in CreateLoadBalancer calls. When a load balancer is created with subnets, the VPC is also set to the VPC of the subnets.
2016-04-14 14:43:03 +02:00
Yann Lambret
c793e0a23d Filtering implementation for DHCP options sets 2016-04-13 23:19:46 +02:00
Declan Shanaghy
b152c00642 Fix multiple bugs encountered with boto3
* Fix path detection for deleting keys in S3 bucket
* Fix stack deletion ensure delete method exists on object
  * Previous tests were using a stack with no resources
* Fix DESCRIBE_STACK_RESOURCES_RESPONSE,
  * Previously untested code path
2016-04-12 13:58:17 -07:00
Min-Young Wu
826ba82f6e Adding support for UPSERT'ing route53 records 2016-04-12 10:51:21 -07:00
Yann Lambret
6d4a48b019 Add support for 'ModifySubnetAttribute' action 2016-04-05 00:17:56 +02:00
Steve Pulec
fecbeb28a4 Merge pull request #567 from im-auld/query-filters-issue-164
Query filters issue 164
2016-03-28 23:52:49 -04:00
Ian Auld
cc1dee03f5 Reorganized tests 2016-03-16 21:32:54 -07:00
Lars Fronius
519b8e59aa Propagate stack-level tags to resources
According to
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html
"All stack-level tags, including automatically created tags, are
propagated to resources that AWS CloudFormation supports. Currently,
tags are not propagated to Amazon EBS volumes that are created from
block device mappings."
2016-03-15 15:36:02 +01:00
Ian Auld
56425c9479 Added tests for index comparisons 2016-03-14 09:39:03 -07:00
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
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
Steve Pulec
aaaddf13e8 add integraiton test. 2016-03-02 15:18:11 -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
Yann Lambret
a06fa082a4 Add two tests for both boto and boto3 as the problem only affects boto3 client 2016-03-02 12:15:47 +01:00
Steve Pulec
a737fbed48 create methods 2016-03-01 18:50:06 -05:00
Brian Cavagnolo
6bab725b36 add dynamodb pagination 2016-03-01 15:00:23 -08: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
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
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
Hugo Lopes Tavares
0cef332840 Add support to ListPipelines 2015-09-16 15:49:15 -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
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
1dcfcbca57 Add cloudformation tags. 2015-08-31 16:48:36 -04:00
Dustin J. Mitchell
7470a9f68b update test_messages_polling to assume messages are returned immediately 2015-08-31 11:54:17 -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
2650eab295 Implement XML responses for SNS (for Boto3) 2015-08-20 14:57:17 -04:00
Steve Pulec
ebfe7bb7b8 Merge pull request #398 from jotes/sqs_polling_messages
Added support for WaitTimeSeconds in SQS #392
2015-08-13 17:24:27 -04:00
Adam DePue
a6c6edbca4 Add more boto3 s3 tests 2015-08-13 21:18:25 +00: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
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
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
6a89786007 Remove hardcoded region in ebs test 2015-08-03 10:45:01 -04:00
Ilya Sukhanov
1819cd7636 Make test_create_and_delete_topic python 2.6 compatible 2015-08-03 10:32:33 -04: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
71d2e1d7de Python3 fixes for cloudformation server. 2015-08-02 11:37:10 -04: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
Jot
b2570d901e Enabled cloudformation in server mode with some tests 2015-08-02 16:31:16 +02:00
Steve Pulec
dd092fa9dc Fix s3 py3 test for unicode. 2015-08-02 09:59:16 -04:00