Steve Pulec
b2a360aaf7
Remove old boto sns test in favor of boto3 test.
2017-03-11 21:03:03 -05:00
Steve Pulec
cdd6e476cc
If using newer dynamodb api, use version 2.
2017-03-11 20:50:24 -05:00
Steve Pulec
1068e26e66
Bump travis to python 3.6
2017-03-06 21:48:22 -05:00
Steve Pulec
cf771d7f14
Add py26 deprecation to changelog
2017-03-06 21:22:37 -05:00
Steve Pulec
896f040fca
Fix sqs tests for server mode.
2017-03-05 10:09:19 -05:00
Steve Pulec
3b4ef2cf15
Merge in master.
2017-03-05 09:58:39 -05:00
Matt Chamberlin
0393c384ad
fix etag metadata field name in key response dict (etag --> ETag) ( #855 )
2017-03-04 23:17:18 -05:00
Andrew Garrett
e7735c3ee1
Add event IDs to CF Stack events ( #852 )
...
So that events can be uniquely identified.
I tried to match the format documented here:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-listing-event-history.html
2017-03-04 23:12:55 -05:00
Andrew Garrett
e7ea6b350c
Fix lambda stdout/stderr mocking ( #851 )
...
Originally, the code was setting sys.stdout and sys.stderr back to the
original, official forms, but this breaks idioms like mocking stdout to
capture printing output for tests. So instead, we will reset sys.stdout
and sys.stderr to what they were before running the lambda function, so
that in case someone is mocking stdout or stderr, their tests won't
break.
2017-03-04 23:01:50 -05:00
Andrew Garrett
f6465df630
Return CF Stack events in reverse chronological order ( #853 )
...
This is how the AWS API works:
http://boto3.readthedocs.io/en/latest/reference/services/cloudformation.html#CloudFormation.Client.describe_stack_events
2017-03-04 23:00:25 -05:00
Léo Cavaillé
9b6d3983d2
iam: add group policy methods ( #849 )
...
Implemented mocks for:
* get_all_group_policies
* list_group_policies (boto3)
* get_group_policy
* put_group_policy
2017-03-04 22:56:36 -05:00
Chris LaRose
56f9409ca9
Use request URL to generate SQS queue URLs; fixes #626 ( #827 )
2017-03-04 22:53:14 -05:00
William Richard
f46a24180f
Cast desired capacity for cloudformation asg to int ( #846 )
...
Cloudformation passes MaxSize, MinSize and DesiredCapacity as strings, but
we want to store them as ints. Also includes tests of this fix, to help
avoid regression.
2017-03-04 22:51:01 -05:00
David Wilcox
a9554924df
make cloudformation update stack use parameters provided ( #843 )
2017-03-04 22:48:51 -05:00
Andy Freeland
783242b696
Elastic IP PhysicalResourceId should always be its public IP ( #841 )
...
According to the [CloudFormation `Ref` docs][docs], the `Ref` return
value (and physical ID of the resource) for an Elastic IP is its public
IP address.
[docs]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html
2017-03-04 22:40:43 -05:00
Andy Freeland
a30ba2b597
EC2 tags specified in CloudFormation should be applied to the instances ( #840 )
...
Fixes #839 .
2017-03-04 22:37:53 -05:00
David Wilcox
1b6007e2b2
Correct IAM list_server_certs template that was based off incorrect docs ( #836 )
...
The documentation for this method is here https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListServerCertificates.html
The docs say the return type is this ServerCertificateMetadataList.member.N
but the sample response incorrectly include a <ServerCertificateMetadata>. I've sent feedback to the AWS docs telling them to fix their stuff but this also needs to be fixed. I haven't checked other templates with <member> tags in them, as they may be prone to this same problem.
2017-03-04 22:36:25 -05:00
David Wilcox
8d737eb59d
Route53: allow hosted zone id as well when creating record sets ( #833 )
...
* add test that creates r53 record set from hosted zone id (not name)
* pass test to enable creating record sets by hosted zone ids
2017-03-04 22:31:45 -05:00
Guy Templeton
7d75c3ba18
Feat: ECS container status updating ( #831 )
...
* Uptick boto3 version to version supporting ECS container instance state changes
* Add initial status update
* Only place tasks on active instances
* PEP8 cleanup
2017-03-04 22:30:36 -05:00
David Wilcox
bcc3e57949
Cloudformation ResourceMaps incorrectly share namespaces for Conditions and Resources ( #828 )
...
* add tests to check CF's conditions and resources have distinct namespace
* separate the resource and condition namespaces for CF
2017-03-04 22:26:23 -05:00
Steve Pulec
d530bcf4a7
remove py26.
2017-02-28 21:29:28 -05:00
Steve Pulec
3be1b16eb9
Drop py26.
2017-02-27 21:24:34 -05:00
Steve Pulec
1287d53817
Fix tests for py26 and py3.
2017-02-27 20:53:57 -05:00
Steve Pulec
a22caf27ab
Cleanup sns default topic.
2017-02-27 10:20:53 -05:00
Steve Pulec
5a56b3a049
Set credentials for server too.
2017-02-27 08:54:33 -05:00
Steve Pulec
b63618b975
Add keys for server mode.
2017-02-27 00:17:01 -05:00
Steve Pulec
e841c0d2f5
Need to run moto_server...
2017-02-27 00:02:23 -05:00
Steve Pulec
089b2a66d2
Add server-mode tests.
2017-02-26 23:56:50 -05:00
Steve Pulec
e5bcafd22f
Cleanup travis.
2017-02-26 23:40:54 -05:00
Steve Pulec
5324638573
Add docs on contributing and code of conduct.
2017-02-26 19:55:19 -05:00
Steve Pulec
b73360c187
Fix api gateway callback.
2017-02-23 22:34:43 -05:00
Steve Pulec
3c0c4c2996
Fix tests for py3.
2017-02-23 22:28:09 -05:00
Steve Pulec
0dda687762
Fix urlparse for py3.
2017-02-23 21:41:05 -05:00
Steve Pulec
f37bad0e00
Lints.
2017-02-23 21:37:43 -05:00
Steve Pulec
1433f28846
Update s3 test.
2017-02-23 19:50:34 -05:00
Steve Pulec
81836b6981
Get standalone server mode working for all tests.
2017-02-23 19:43:48 -05:00
Steve Pulec
cb28eeefbb
Add moto reset API.
2017-02-20 18:25:10 -05:00
Steve Pulec
fe46b4c5b9
Remove extra line in test.
2017-02-20 15:50:49 -05:00
Steve Pulec
51df02e7cf
Cleanup Server host parsing.
2017-02-20 14:31:19 -05:00
Steve Pulec
d0fe1a0956
Remove pdb.
2017-02-18 09:31:47 -05:00
Steve Pulec
6785d359d3
Cleanup apigateway callback.
2017-02-18 09:25:42 -05:00
Steve Pulec
480c1bba14
Add rest of deprecated decorators.
2017-02-18 09:24:09 -05:00
Steve Pulec
d28f083a0b
Cleanup apigateway callback.
2017-02-18 09:19:08 -05:00
Steve Pulec
cad185c74d
Cleanup headers and encoding.
2017-02-16 22:51:04 -05:00
Steve Pulec
468a1b970c
Add responses dependencies.
2017-02-15 22:47:33 -05:00
Steve Pulec
678f73389f
Fix package being submodule.
2017-02-15 22:45:20 -05:00
Steve Pulec
fde721bed7
Testing new version of decorator.
2017-02-15 22:35:45 -05:00
Steve Pulec
d3df810065
Generalize decorator code.
2017-02-12 00:22:29 -05:00
Steve Pulec
9076e48fee
Fix sqs tests region.
2017-02-11 19:50:26 -05:00
Steve Pulec
2d03182ae2
Migrate some sqs tests to boto3.
2017-02-11 19:41:09 -05:00