wblackconv
ba2ea8e1b3
Add tests for message attribute validation in SNS ( #1582 )
...
* Add tests for message attribute validation in SNS
Fixes up bug in return value of
moto.sns.responses.SNSResponse._parse_message_attributes due to
accidental recycling of a variable.
* Fix test_sns.test_publish_to_http in py36 env
Http response is encoded as a byte string which json.loads can't handle.
2018-04-27 15:10:30 -07:00
Mike Liu
a0882316ec
Tests for ListCommands SSM API endpoint.
...
Test that ListCommands returns commands sent by SendCommand as well as
filters by CommandId and InstanceId. In addition update the SendCommand
test for optional parameters.
2018-04-25 16:27:07 -04:00
Mike Liu
1016487c78
Implement the ListCommands API endpoint for the SSM client.
...
Currently only supports getting commands by CommandId and InstanceIds.
2018-04-25 16:25:44 -04:00
Mike Liu
a974a3dfe4
Create a Command class for the ssm backend.
...
This class will make it easier to keep track of commands in a list for
the SSM backend later on when we implement the ListCommands API call.
2018-04-25 16:22:10 -04:00
Brian Pandola
e1d9c2878f
Add support for Redshift.Waiter.ClusterRestored
...
* Add `restored_from_snapshot` boolean to Cluster metadata.
* Return `RestoreStatus` from describe_db_clusters if cluster was restored from a snapshot.
Fixes #1506
2018-04-24 17:30:17 -07:00
Iain Bullard
fad4394474
SQS add missing validation to ReceiveMessage ( #1595 )
...
* SQS receive_message - enforce bounds on MaxNumberOfMessages as AWS does
* SQS receive_message - enforce bounds on WaitTimeSeconds as AWS does
2018-04-24 09:51:49 -07:00
Fujimoto Seiji
ac016a7bb3
Implement describe_log_groups() method for CloudWatchLogs
...
This patch teaches `LogsResponse` class how to handle the DescribeLogGroups
request, so that we can mock out the `boto.describe_log_groups()` call.
With this change in place, we can write as below:
@mock_logs
def test_log_group():
conn = boto3.client('logs', 'us-west-2')
some_method_to_init_log_groups()
resp = conn.describe_log_groups(logGroupNamePrefix='myapp')
assert ...
This should be fairly useful for a number of programs which handles
CloudWatchLogs.
Signed-off-by: Fujimoto Seiji <fujimoto@clear-code.com>
2018-04-24 18:38:51 +09:00
Fujimoto Seiji
b25e80188a
AWSServiceSpec: Fix TypeError
exceptions within json.load()
...
The load() method provided by the built-in JSON module does not accept a
byte-type value in Python 3.5 (or versions before), and will raise an
exception if one is passed.
For details, please see: https://bugs.python.org/issue17909
Thus, for better compatibility, we'd better decode the content of the
JSON file before passing it to the parser, instead of letting the module
to guess the encoding.
2018-04-24 16:33:39 +09:00
Tom Elliff
21a264c337
Default TimeoutSeconds to 1 hour ( #1592 )
...
TimeoutSeconds isn't a required field so we can't rely on it being there.
Quick tests against the AWS API show that when it's not specified the ExpiresAfter field seems to be 1 hour after the request.
2018-04-23 11:41:54 -07:00
Steve Pulec
56a56fc626
Merge pull request #1589 from singingwolfboy/latest-dateutil
...
Allow dateutil below 3.0.0
2018-04-21 07:05:20 -04:00
David Baumgold
04b36b4488
Allow dateutil below 3.0.0
2018-04-21 09:46:12 +02:00
Darien Hager
3c9d8bca46
Remove whitespace to satisfy flake8 formatting
2018-04-20 11:46:12 -07:00
Darien Hager
5cd4d5e02f
Change SQS model to support non-JSON redrive policies. Does not affect other limitations in SQS APIs.
2018-04-19 23:25:10 -07:00
Darien Hager
4a275ccf95
Add failing unit-test (errors treating dict as json string)
2018-04-19 23:24:27 -07:00
Brian Pandola
37d6388640
Fix rds.describe_db_snapshots bugs
...
* Correctly return all snapshots for a given DBInstanceIdentifier.
* If an invalid DBInstanceIdentifier is passed in, return an empty array
instead of raising a ClientError (which is what AWS actually does).
Fixes #1569
2018-04-19 20:21:27 -07:00
Steve Pulec
11e3fa3200
Merge pull request #1584 from JohnVonNeumann/patch-1
...
UPDATE getting_started.rst - improve wording
2018-04-19 20:54:36 -04:00
Louis Willcock
e931456204
UPDATE getting_started.rst - improve wording
...
Found a few sentences in the Docs that I thought could be a bit more readable, hopefully improved them.
2018-04-20 10:25:28 +10:00
Steve Pulec
4081ece2ea
Merge pull request #1580 from DHager/sqs_group_id
...
Fix missing MessageGroupId and MessageDeduplicationId
2018-04-19 07:46:24 -04:00
Darien Hager
6556ba89cd
Basic plumbing to preserve MessageGroupId and MessageDeduplicationID, if they are provided.
2018-04-19 00:22:58 -07:00
Darien Hager
6332ed9df9
Add test that certain FIFO-queue attributes flow through from sender to receiver
2018-04-19 00:16:03 -07:00
Steve Pulec
8fa4c64c15
Merge pull request #1473 from Logicworks/feature/ebs-copy-snapshot
...
Add support for copying EBS snapshots
2018-04-18 22:51:54 -04:00
Steve Pulec
311966e28d
Add IAMDatabaseAuthenticationEnabled and DbiResourceId to RDS response. Closes #1465 .
2018-04-18 22:47:02 -04:00
Steve Pulec
05f16cfcf9
Fixes to dynamodb empty keys.
2018-04-18 22:23:17 -04:00
Steve Pulec
f37bae5b57
Merge pull request #1574 from wblackconv/add-msg-attributes
...
Include SNS message attributes with message body when delivering to SQS.
2018-04-18 21:19:21 -04:00
Steve Pulec
a90b7d4aac
Merge pull request #1576 from mikegrima/snsregions
...
SNS support for all boto3 regions.
2018-04-18 21:15:39 -04:00
Steve Pulec
39390585b5
Merge pull request #1579 from spulec/version-1.3.3
...
Version 1.3.3
2018-04-18 18:51:59 -04:00
Steve Pulec
cac41a39a0
update changelog.
2018-04-18 18:41:51 -04:00
Steve Pulec
9a1dcddf1e
Updating implementation coverage
2018-04-18 18:40:42 -04:00
Steve Pulec
7cc08a9c5c
bumping to version 1.3.3
2018-04-18 18:40:32 -04:00
Steve Pulec
9f7330a588
Update changelog.
2018-04-18 18:40:30 -04:00
Steve Pulec
2ecb04d6e0
Revert errant change to S3 urls in cd1c6d3e6c
.
2018-04-18 16:15:47 -04:00
Mike Grima
794b8ba59e
SNS now supports all modern boto3 regions.
2018-04-18 11:29:02 -07:00
wblack
0b36f06df1
Fixes for linter warnings
2018-04-18 13:42:36 +00:00
wblack
f401c60825
Include SNS message attributes with message body when delivering to SQS.
2018-04-18 13:42:36 +00:00
Akito Nozaki
ba3c9db8a7
Fixing create_key_and_certificate boolean parameter ( #1572 )
2018-04-17 11:32:39 -07:00
Phil Christensen
e20832d610
update implementation coverage for copy_snapshot
2018-04-15 17:09:01 -04:00
Phil Christensen
ae2650ffc7
copy snapshot unit test
2018-04-15 17:08:54 -04:00
Phil Christensen
a44b7e7f5c
implementing mockable EBS snapshot copies
2018-04-15 17:08:48 -04:00
Steve Pulec
783504c897
We shouldnt throw a ValidationException on empty dynamodb key. Closes #1505 .
2018-04-14 11:16:43 -04:00
Steve Pulec
3373c5bf13
Fix SNS max subject length. Closes #1503 .
2018-04-13 15:17:38 -04:00
Steve Pulec
94ba2e68bd
SSM SendCommand InstanceIds are optional. Closes #1534 .
2018-04-13 15:05:13 -04:00
Steve Pulec
af8697c9a7
Fix security group rules for single rule case. Closes #1522 .
2018-04-13 15:03:07 -04:00
Steve Pulec
f38378d7ec
Revert "Add back ACM tests."
...
This reverts commit d11ecdddde
.
2018-04-13 10:37:06 -04:00
Steve Pulec
d11ecdddde
Add back ACM tests.
2018-04-13 10:16:13 -04:00
Steve Pulec
929ae286cf
Fix ELB ssl_certificate_id typo. Closes #1528 .
2018-04-13 07:33:53 -04:00
Steve Pulec
e8a88cf3b2
Add more regions for APIGateway. Closes #1512 .
2018-04-13 07:23:29 -04:00
Steve Pulec
380710273a
Add .pytest_cache to .gitignore.
2018-04-13 07:23:29 -04:00
Steve Pulec
5f840aadcc
Merge pull request #1545 from haidaraM/fixApiKeyIdentification
...
Fix ApiGateway key identification
2018-04-12 18:58:47 -04:00
Steve Pulec
963e28ecca
Merge pull request #1548 from brcoding/master
...
Created Cognito-Identity with partial coverage and unit tests
2018-04-12 18:55:13 -04:00
Steve Pulec
080e3c5f5d
Merge pull request #1537 from william-richard/cloudformation-ecs-cluster-name-optional
...
If Properies isn't set, cloudformation will just use default values
2018-04-12 18:52:16 -04:00