Mike Liu
1b1fc4c030
Support getting cloudformation targets for the SSM backend.
...
SendCommand allows filtering for instances by tags. This adds support
for filtering by a cloud formation stack resource when creating command
invocations.
2018-08-09 10:34:59 -04:00
Nathan Sutton
8393c7f20b
Don't error on double create queue with same attrs
...
Creating a queue a second time with the same attributes should not raise
an error. This change makes it work correctly.
2018-08-08 21:10:13 -05:00
Nathan Sutton
9d1c665310
Force receive_message_wait_time_seconds to be int
...
When a queue is created with the ReceiveMessageWaitTimeSeconds
attribute the value is never converted to an integer. When the
ReceiveMessage action is called it tries to compare the string
ReceiveMessageWaitTimeSeconds with the min and max wait times which
raises a TypeError.
The solution is to convert this value to an integer before comparing.
2018-08-08 19:14:56 -05:00
Steve Pulec
42d486f9b0
Merge pull request #1750 from TheDooner64/glue-data-catalog
...
Scaffolding for AWS Glue Data Catalog
2018-08-08 13:25:15 -04:00
Karl Gutwin
5ae5ae0efa
Correct deviation in behavior of policy versions from standard API
2018-08-07 17:24:15 -04:00
Karl Gutwin
9e667d6b25
Add get_policy IAM action
2018-08-07 16:59:15 -04:00
Will Bengtson
a420064621
IAM get account authorization details ( #1736 )
...
* start of get_account_authorization_details for iam
* add get_account_authorization_details dynamic template
* remove old commented out template
* Fix flake8 problems and add unit test
2018-08-07 10:31:36 -07:00
Neil Roberts
cce3a678aa
Implement secretsmanager.DescribeSecret and tests.
2018-08-06 14:40:33 -07:00
Benoît Faucon
5d7a432af2
Tests on Travis: specify region name.
2018-08-06 11:01:33 +02:00
Benoît Faucon
ae2e6fef63
Add support for unregistered instances in ELB DescribeInstancesHealth API.
2018-08-06 10:47:00 +02:00
TheDooner64
d988ee15fe
Add create_table, get_table, and get_tables for the Glue Data Catalog
2018-08-05 19:18:11 -04:00
TheDooner64
c5c57efbb5
Creating a database that already exists in the glue data catalog raises an exception
2018-08-05 19:18:11 -04:00
TheDooner64
e67a8c6f1b
Revert minor changes to s3 tests
2018-08-05 19:18:11 -04:00
TheDooner64
77f0a61c9f
Add scaffolding for Glue service, including create_database and get_database for the Glue Data Catalog
2018-08-05 19:18:11 -04:00
Tomoya Iwata
2fad7c7202
update dynamodb2 update_item
...
add empty string handle, fix(#1744 )
2018-08-02 12:38:50 +09:00
Mike Liu
12807bb6f0
Add get_command_invocation endpoint for AWS SSM.
...
Users can make send_command requests and then retrieve the invocations
of those commands with get_command_invocation. Getting a command
invocation by instance and command id is supported but only the
'aws:runShellScript' plugin name is supported and only one plugin in a
document is supported.
2018-07-25 14:51:16 -04:00
Gary Donovan
2e5e7e7f5e
Fix typo in test name ( #1729 )
2018-07-24 23:11:04 +01:00
Steve Pulec
a1d095c14b
Merge pull request #1721 from sepulworld/adding_secretsmanager_random_password
...
Added SecretsManager get_random_password mock
2018-07-19 11:13:24 -04:00
Steve Pulec
cc31f22bb5
Merge pull request #1723 from Comcast/create_policy
...
Adding account id to ManagedPolicy ARN
2018-07-19 10:55:22 -04:00
Steve Pulec
2c1aa8a63d
Merge pull request #1717 from fewstera/usage-plans
...
APIGateway: Added API for usage plans and usage plan keys
2018-07-19 10:40:14 -04:00
Steve Pulec
0309d1ec39
Merge pull request #1707 from Whamied/etag-no-quote-patch
...
Added support for multipart upload completion with unquoted etags
2018-07-19 10:05:07 -04:00
Steve Pulec
4c904e19c1
Merge pull request #1699 from chezclem/ECR-list-images-exception
...
ECR: list_images should return RepositoryNotFoundException when repository is not found
2018-07-19 09:43:29 -04:00
Steve Pulec
786ec0501e
Merge pull request #1692 from sanjeevsuresh/exception-when-missing-key
...
BugFix: Exception in ListObjectVersions with a Prefix that Returns an Empty Result Set
2018-07-19 09:41:44 -04:00
Steve Pulec
f3175118d1
Merge pull request #1600 from nimbis/extend-ssm-backend
...
Extend ssm backend
2018-07-19 08:44:30 -04:00
zane
6c7a22c7d7
Added get_random_password mock with tests
2018-07-18 00:27:53 -07:00
Nathan Mische
ff80ecb56d
Adding account id to ManagedPolicy ARN
2018-07-17 13:31:18 -04:00
Zane Williamson
ba1ceee95f
Adding create_secret, exception handle, fix ( #1680 )
2018-07-14 08:39:19 +01:00
Aidan Fewster
9bd6f0a725
APIGateway: Added usage plan keys API
2018-07-13 15:16:25 +01:00
Aidan Fewster
43e430560c
APIGateway: Added API for usage plans
2018-07-13 15:10:30 +01:00
Aidan Fewster
c20e8568e0
APIGateway - Generate API key value when no value provided ( #1713 )
2018-07-13 12:53:00 +01:00
temyers
c3b690114c
Add support for CloudFormation Fn::GetAtt to KMS Key ( #1681 )
2018-07-13 11:40:54 +01:00
Nate Peterson
dcdaca8984
parameters return from root path ( #1701 )
2018-07-13 10:24:11 +01:00
Michael Bell
51db19067c
Allow attributes to be set with subscribe command ( #1705 )
2018-07-13 10:21:33 +01:00
Gary Donovan
802402bdba
Tweak comparison to treat NULL/NOT_NULL correctly. ( #1709 )
...
The AWS documentation says that a ComparisonOperator of NULL means
the attribute should not exist, whereas NOT_NULL means that the
attribute should exist. It explicitly says that an attribute with a
value of NULL is considered to exist, which contradicts our previous
implementation. This affects both put_item and get_item in dynamodb2.
https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Condition.html
2018-07-13 10:11:10 +01:00
Henadzi Tsaryk
46dd351965
Add ApproximateArrivalTimestamp and MillisBehindLatest to Kinesis get_records response ( #1715 )
...
* Add ApproximateArrivalTimestamp to Kinesis response
* Add MillisBehindLatest to Kinesis get_records response
2018-07-13 10:06:28 +01:00
Waleed Hamied
f8fdd439ad
Added support for multipart upload confirmation with unquoted etags
2018-07-03 15:36:41 -04:00
Stephan Huber
10f96b2ccf
next_token (pagination) added for list_thing_types
2018-06-28 12:59:08 +02:00
Stephan Huber
db3593575f
list_thing_types and list_things now uses pagination
2018-06-28 10:32:51 +02:00
Clément Huyghebaert
e32a640861
Fix for spulec/moto#1698 - ECR list_images missing RepositoryNotFoundException
2018-06-25 12:34:10 -04:00
Steve Pulec
bb6da93891
Merge pull request #1697 from spulec/ecs-tasks
...
Improve ECS update_service and describing tasks.
2018-06-24 20:39:16 -04:00
Steve Pulec
7c1fd0a2f1
Fix ECS update_service and describing tasks.
2018-06-24 20:13:39 -04:00
Sanjeev Suresh
2ebd5f7359
tests for prefixes that return empty result sets
2018-06-22 11:59:01 -07:00
Stephan Huber
ea3366be35
do not allow None as value of image_tags
2018-06-14 09:53:11 +02:00
Stephan Huber
cc799b55da
fixed spulec/moto#1684 and fixed spulec/moto#1685
2018-06-14 09:07:09 +02:00
Stephan Huber
6d12c83b89
Merge remote-tracking branch 'upstream/master'
2018-06-14 08:45:23 +02:00
Stephan Huber
3a355f126c
first steps undertaken to fix spulec/moto#1684 and spulec/moto#1685
2018-06-13 16:14:18 +02:00
Steve Pulec
38a4558925
Merge pull request #1677 from sepulworld/adding_secretmanager_support
...
[WIP] Adding secretmanager support
2018-06-10 20:57:49 -04:00
zane
b1a8ae8299
Updating tests
2018-06-09 23:42:33 -07:00
zane
8ee7a9495d
UPdate
2018-06-09 22:08:10 -07:00
Steve Pulec
0dfe55fde9
Merge pull request #1675 from william-richard/dynamodb-index-query-bug-fix
...
Make dynamodb table indexes a list
2018-06-08 18:46:41 -04:00
Steve Pulec
15bc8f5f95
Merge pull request #1563 from william-richard/target-group-cloudformation-name
...
Correctly generate resource name for target groups when using cloudformation
2018-06-08 18:29:20 -04:00
Steve Pulec
9fd933cc4c
Merge pull request #1671 from sthuber90/master
...
Fixes #1670
2018-06-08 18:10:36 -04:00
Steve Pulec
85be08de79
Merge pull request #1669 from fferrara/NEW-ecs-service-load-balancer
...
Extend support for ECS
2018-06-08 18:08:13 -04:00
Steve Pulec
db4c84c680
Merge pull request #1667 from iainb/enforce-message-size
...
SNS - Enforce 'Message too long' exception when publishing messages
2018-06-08 17:59:10 -04:00
Steve Pulec
b26d233820
Merge pull request #1565 from spulec/fix-1522
...
Fix security group rules for single rule case. Closes #1522 .
2018-06-08 17:58:30 -04:00
zane
c4abd98ed3
Adding server test for get_secret_value
2018-06-07 22:53:34 -07:00
zane
6e893ff055
Adding response, urls and test
2018-06-07 22:31:44 -07:00
Alec Rajeev
6c10dc0403
Fix Storage Class error handling ( #1653 )
...
Added check for valid storage classes in set_key and copy_key
added unit test for standard storage and infrequent access
2018-06-07 08:09:36 +01:00
William Richard
014fbbb8cb
Added a test that queries an index when created via the table resource update
...
When you create an index via the table resource update, in python 3.6, it is saved as a `dict_value`,
which causes an error - this test replicates this bug
2018-06-06 12:51:51 -04:00
William Richard
25b5f03ea4
These tests do not use pytest
2018-06-06 12:09:09 -04:00
William Richard
eb018c01a5
Handle edge case where you can end up with double dashes in target group names
2018-06-06 11:57:42 -04:00
William Richard
81381cd035
Correctly generate resource name for target groups when using cloudformation
...
They need to have less than 32 character names, so when you don't specify a name
cloudformation generates a name that is less than 32 characters.
And make sure that flake8 passes
2018-06-06 11:07:14 -04:00
Flavio Ferrara
5298b221b5
Add support for creating ECS services with Load Balancer
2018-06-06 09:50:03 +01:00
Stephan Huber
e118a678a6
Merge remote-tracking branch 'original/master'
2018-06-06 09:57:12 +02:00
Stephan Huber
821cd5376d
return thingArn when using list_things
2018-06-04 15:58:08 +02:00
Iain Bullard
cd4dd3cfbf
SNS - Enforce 'Message too long' exception when publishing messages
2018-06-04 13:38:58 +00:00
hsuhans
d9a4501d24
Change SNS http header to actual setting
2018-06-02 06:18:27 +08:00
Steve Pulec
0f816566df
Merge pull request #1634 from sthuber90/master
...
Fixes #1624 and closes #1633
2018-06-01 07:31:15 -04:00
Steve Pulec
1689a2808f
Fix creating SQS queue with same attributes. Closes #1663 .
2018-05-31 23:05:50 -04:00
Steve Pulec
cd59167fce
Merge pull request #1658 from tmwong2003/catch-missing-exports-in-import-value
...
Fixed CF creation to trap imports of non-existent values
2018-05-31 20:42:15 -04:00
Theodore Wong
76c69c0dc5
Added region parameter to boto3 calls
2018-05-31 16:31:04 -07:00
Steve Pulec
23b51c39a1
Merge pull request #1585 from bpandola/fix-1569
...
Fix rds.describe_db_snapshots bugs
2018-05-30 23:10:20 -04:00
Steve Pulec
96aba00242
Add freeze_time for ebs test.
2018-05-30 20:39:37 -04:00
Steve Pulec
919c0c9b04
Merge pull request #1656 from Birne94/sqs-message-group-id
...
Add MessageGroupId support to SQS queues (fixes #1655 )
2018-05-30 20:36:53 -04:00
Steve Pulec
4198abfd24
Merge pull request #1617 from jbergknoff-rival/jbergknoff/cognito
...
Implement some of cognito-idp
2018-05-30 20:23:11 -04:00
Theodore Wong
da8bd545bf
Fixed CF creation to trap imports of non-existent values
2018-05-30 11:59:25 -07:00
Steve Pulec
b6909ff64c
Merge pull request #1654 from Birne94/sns-raw-message-delivery
...
Add RawMessageDelivery for SNS subscriptions (fixes #1571 )
2018-05-30 09:46:59 -04:00
Daniel Birnstiel
9b8e62e1f1
Add MessageGroupId support to SQS queues ( fixes #1655 )
2018-05-30 15:29:57 +02:00
Daniel Birnstiel
222cb1535c
Add RawMessageDelivery for SNS subscriptions ( fixes #1571 )
2018-05-30 09:30:18 +02:00
Steve Pulec
0b2602db27
Merge pull request #1641 from cpitchford/bugfix_events_put_permission_action_filter
...
Bugfix events put permission action filter
2018-05-29 22:32:49 -04:00
Steve Pulec
320056e0c4
Merge pull request #1639 from cpitchford/cpitchford/events_describe_event_bus_policy_json_string
...
Bugfix: describe_event_bus()['Policy'] should be JSON string, not object
2018-05-29 22:31:27 -04:00
Steve Pulec
e1c445ad3c
Merge pull request #1627 from MauPalantir/support-nested
...
Support assignment of nested attributes if only the topmost value exists
2018-05-29 22:28:27 -04:00
Steve Pulec
bcefcdb090
Merge pull request #1636 from sepulworld/adding_address_reallocate_support
...
Adding Address reallocate capability for EIP
2018-05-29 22:25:16 -04:00
Steve Pulec
69587c151c
Merge branch 'master' into bugfix/1615-cloudwatch-statistics
2018-05-29 22:19:25 -04:00
Steve Pulec
3df3b5b963
Merge pull request #1623 from bclodius/master
...
Fixes #1608
2018-05-29 22:10:39 -04:00
Steve Pulec
bc1bdd7ae1
Merge pull request #1586 from DHager/accept_non_json_redrive_policy
...
Fix Cloudformation not accepting non-JSON SQS redrive policy
2018-05-29 22:07:00 -04:00
Steve Pulec
c2b264d593
Merge pull request #1593 from fujimotos/sf/describe-log-groups
...
Implement describe_log_groups() method for CloudWatchLogs
2018-05-29 22:04:54 -04:00
Steve Pulec
9b8295c868
Merge pull request #1611 from thehesiod/fix-copy-source-query
...
fix for issue 1610
2018-05-29 21:59:17 -04:00
Steve Pulec
11b2073b87
Merge pull request #1597 from bpandola/fix-1506
...
Add support for Redshift.Waiter.ClusterRestored
2018-05-29 21:48:47 -04:00
Steve Pulec
ffde404f2a
Merge pull request #1620 from benjolitz/patch-1
...
Allow dashes, underscores in SNS topic creates for first/last characters
2018-05-29 21:47:26 -04:00
cpitchford
b6e795ce61
Testing using fully qualified Action events:PutEvents
...
The Action parameter to put_permission must be fully qualified as events:PutEvents as per:
http://boto3.readthedocs.io/en/latest/reference/services/events.html#CloudWatchEvents.Client.put_permission
2018-05-15 18:30:30 +01:00
cpitchford
e85106c708
describe_event_bus returns json, not dict
...
Correct the assumption that describe_event_bus()['Policy'] is a dict
As per
http://boto3.readthedocs.io/en/latest/reference/services/events.html#CloudWatchEvents.Client.describe_event_bus
It should be a JSON encoded string
Here we decode the JSON before we look inside the policy
2018-05-15 17:04:59 +01:00
Mau Zsófia Ábrahám
64fc0d3556
add region for test
2018-05-14 14:16:39 +02:00
Mau Zsófia Ábrahám
2e75d0219c
Support dynamodb2 nested map creation to mirror actual db
2018-05-14 14:02:14 +02:00
zane
12188733b7
adding Address reallocate capability for EIP
2018-05-10 23:39:19 -07:00
Stephan Huber
4b4ce5acde
Added create_job and describe_job to aws iot mock
2018-05-09 09:22:12 +02:00
Stephan Huber
ecbaf76413
Fixes #1624
2018-05-09 09:20:48 +02:00
jbergknoff-10e
e111cd1ff9
Implement some of cognito-idp
2018-05-07 09:38:04 -05:00
bclodius
1a0a951b06
Fixes #1608
2018-05-05 15:22:29 -04:00
Ben Jolitz
45b529fef4
parameterize topic name create/delete
2018-05-04 19:17:56 -07:00
Ben Jolitz
d21c387eb6
Support optional Source, parse from header
...
The Email ``from`` header is either formatted as ``name <address>`` or ``address``.
This commit will use `parseaddr` to extract a ``(name, address)`` tuple, which we will use the ``address`` to check if it's verified.
Also support the case where ``Source`` is omitted (which AWS requires the ``from`` header to be set).
2018-05-04 18:58:52 -07:00
Barry O'Neill
9e7b86faef
Issue 1615 - missing Value should not kill put_metric_data
2018-05-03 19:47:36 -04:00
Alexander Mohr
07540a35fe
add unittest
2018-05-03 02:30:29 -07:00
Alex Casalboni
cb364eedc6
Implement SSM Parameter Store filters support (GetParametersByPath API) ( #1604 )
...
* added tests for SSM Parameter Store filters (GetParametersByPath - ParameterStringFilter)
* implemented SSM Parameter Store filters support (only for get_parameters_by_path API)
* adding myself to authors file
2018-04-30 11:02:46 -07:00
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
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
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
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
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
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
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
ae2650ffc7
copy snapshot unit test
2018-04-15 17:08:54 -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
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
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
Steve Pulec
1083b5bda1
Merge pull request #1549 from secretescapes/master
...
Fix AttributeError in filter_log_events
2018-04-12 18:49:54 -04:00
Steve Pulec
ad9f5c2ae6
Merge pull request #1550 from tomelliff/tag-snapshot-on-creation
...
Allow tagging snapshots on creation
2018-04-12 18:49:15 -04:00
Steve Pulec
97708fdbed
Merge pull request #1551 from william-richard/add-physical-resource-id-to-ecs-task-definition
...
Add physical_resource_id to ECS task definition
2018-04-12 18:48:43 -04:00
Steve Pulec
9398f03cdc
Merge pull request #1559 from sawandas/master
...
Issue #1539 : support more dynamoDb query filters
2018-04-12 18:45:58 -04:00
William Richard
1f46543ae2
ECS CPU, memory hard limits and host ports are all optional.
...
http://boto3.readthedocs.io/en/latest/reference/services/ecs.html#ECS.Client.register_task_definition
2018-04-11 17:20:58 -04:00
sawandas
861c47a552
Update test cases for dynamodb contains filter
2018-04-09 13:42:50 +05:30
Steve Pulec
cd1c6d3e6c
Unvendor responses, move back to upstream.
2018-04-05 16:57:43 -04:00
William Richard
4636a2afc3
Add physical_resource_id to ECS task definition
2018-04-04 15:15:22 -04:00
Tom Elliff
e2af8bc836
Allow tagging snapshots on creation
...
Largely copying what was done for volume creation in https://github.com/spulec/moto/pull/1432
2018-04-04 17:46:51 +01:00
Josh Prendergast
ca72707409
Fix AttributeError in filter_log_events
...
An AttributeError would be thrown if the `interleaved` parameter was
passed.
2018-04-04 17:24:41 +01:00
Barry
f5f64be45b
Added comment
2018-04-04 00:28:39 -07:00
Barry Ruffner
b86b464210
fix for an expiration test.
2018-04-03 17:22:21 -07:00
Barry Ruffner
383b0c1c36
Made some corrections to the developer identity response and added checks to add coverage.
2018-04-03 17:05:36 -07:00
Barry Ruffner
229d453b99
Made some changes for server testing and added another get_id test.
2018-04-03 16:27:30 -07:00
Barry Ruffner
2455de8282
Added a print.
2018-04-03 14:08:20 -07:00
Barry Ruffner
1046ee5041
Added object to parsing and test server test for cognito.
2018-04-03 13:38:24 -07:00
Barry Ruffner
83f4419d03
Added create_identity_pool and cleaned up test data.
2018-04-03 11:38:59 -07:00
Mike Grima
4184acc0d2
Added Filtering support for S3 lifecycle ( #1535 )
...
* Added Filtering support for S3 lifecycle
Also added `ExpiredObjectDeleteMarker`.
closes #1533
closes #1479
* Result set no longer contains "Prefix" if "Filter" is set.
2018-04-02 14:19:14 -07:00
Mohamed El Mouctar HAIDARA
dcd290c3c3
Fix ApiGateway key identification
...
API Gateway keys are identified by their ids and not their values
- https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-api-key.html#examples
- http://boto3.readthedocs.io/en/latest/reference/services/apigateway.html#APIGateway.Client.get_api_key
2018-03-30 15:09:02 +02:00
Barry Ruffner
f4f79b2a8e
Added basic cognitoidentity (not working)
2018-03-28 12:40:42 -07:00
William Richard
0ed388b4b8
If Properies isn't set, cloudformation will just use default values
2018-03-26 14:15:16 -04:00
Alexander Mohr
941d817da4
fix lambda endpoint parsing ( #1395 )
...
* fix endpoint parsing
* add new unittest
* finish test
2018-03-21 22:14:10 -07:00
Kevin Ford
2faffc96de
Use 'data' attribute of Flask Request object. ( #1117 )
...
* Flask Request object does not have a 'body' attribute, changed to 'data'
* Making moto 'glaciar' more aws 'glaciar' like.
* Making moto 'glacier' more aws 'glacier' like.
* Fixing Travis errors?
* OK, check if object has proper attribute because HTTPrettyRequest has no data attribute and Python Requests has no body attribute.
* Output to match test expectation; sleep for 60 seconds to mimic actual wait time.
* Amending test_describe_job to reflect changes.
* Shorten time from 1 minute to seconds.
* Shorten sleep time in test. Forgot about the test.
2018-03-21 22:13:09 -07:00
Colin Jones
1a8a4a084d
S3 Ignore Subdomain for Bucketname Flag ( #1419 )
...
* Some circumstances need subdomains to be ignored rather that interpreted as bucketname, this patch allows such behaviour to be configured
* Adding helper case whereby localstack features as path based exception
* Remove whitespace :(
2018-03-21 09:33:09 -07:00
Ben Jones
c13f77173f
add UsePreviousValue support for parameters when updating a CloudFormation stack ( #1504 )
2018-03-21 09:13:05 -07:00
Javier Buzzi
d55ff20685
Basic support for AWS Gateway apikeys ( #1494 )
...
* Basic support for AWS Gateway apikeys
* Adds missing -- much needed tests
* Fixes issue with master merge
* Fixes linter
* Fixes tests
2018-03-21 09:11:49 -07:00
Mike Grima
cc14114afe
Implemented S3 get/put_notification_configuration ( #1516 )
...
closes #973
2018-03-21 09:11:24 -07:00
Rob Walker
4b3469292a
Enable Extended CIDR Associations on VPC ( #1511 )
...
* Enable Extended CIDR Associations on VPC
* Ooops missed the utils, try to be more flakey?, remove unnecessary part in tests
* try to be even more flakey
2018-03-21 09:10:38 -07:00
Loukas Leontopoulos
b7ae704ad2
Add opsworks app mocks ( #1481 )
...
* Add implementation for OpsWorks create_app and describe_apps
* Fix the name of the test
* Add some more exception tests
2018-03-21 09:05:57 -07:00
keirbadger
fecdf388c2
Add in filtering of EBS volumes on availability-zone ( #1468 )
2018-03-21 08:58:32 -07:00
Ash Berlin-Taylor
1b20f21a75
Escape EMR template fields to avoid invalid XML responses ( #1467 )
...
I had an EMR step that contained a `&` and this caused the ListStep call to fail.
I've added the `| escape` filter to handle it in this case and a few other cases that look like they could suffer the same fate.
2018-03-21 08:57:50 -07:00
ramox-
508b392697
Make putparameter behave more like the real endpoint does, respond with Version or ParameterAlreadyExists ( #1464 )
2018-03-21 08:56:57 -07:00
Graham Lyons
5d51329c34
Don't create volumes for AMIs ( #1456 )
...
* Delete the volume used during AMI creation
Creating an AMI doesn't actually result in the creation of an EBS
volume, although the associated snapshot does reference one. To that
end, delete the volume once we've used it.
* Add `owner_id` to `Snapshot`, verify AMI snapshots
The default AMIs which are created by moto have EBS volume mappings
but the snapshots associated with those don't have the correct
owners set.
This adds the owner to the snapshot model and passes it through from
the JSON data.
2018-03-21 08:55:58 -07:00
Toshiya Kawasaki
39e9379195
Fix cloudwatch logs' response error ( #1426 )
2018-03-21 08:55:03 -07:00
Iain Bullard
d3d9557d49
Implement basic SNS message filtering ( #1521 )
...
* Add support for FilterPolicy to sns subscription set_filter_attributes
* Add basic support for sns message filtering
This adds support for exact string value matching along with AND/OR
logic as described here:
https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html
It does not provide support for:
- Anything-but string matching
- Prefix string matching
- Numeric Value Matching
The above filter policies (if configured) will not match messages.
2018-03-21 08:49:11 -07:00
Iain Bullard
6dce7dcb18
Improve SQS Compatibility with AWS ( #1520 )
...
* Return correct error code when fetching a queue that does not exist
* Improve SQS Queue get and set attributes
* Queue creation and set_attributes uses the same code path
- ensure bool/int values are cast correctly
* RedrivePolicy is handled properly with set_attributes
- _setup_dlq is called
- is json decoded, so that returned RedrivePolicy is not json
encoded twice
* As per AWS not all attributes are returned when they are not set, for
example RedrivePolicy, FifoQueue, Policy, Kms*
* WaitTimeSeconds is not a queue attribute switch to
ReceiveMessageWaitTimeSeconds
2018-03-21 08:48:08 -07:00
Jim Shields
baedbfa8ca
Fix test_suspend_processes
...
* Add `region_name` to the client to be consistent with other tests
* Add `VPCZoneIdentifier` to the ASG creation (AZ or VPC is required)
* Add myself as a contributor
2018-03-09 18:00:23 -05:00
Jim Shields
bfeea00774
Fix #1370 : Implement suspend_processes in AutoScaling service
2018-03-09 16:55:30 -05:00
Steve Pulec
4997694fd6
Merge pull request #1488 from andharris/iam-roles
...
add iam roles to redshift
2018-03-07 09:28:26 -05:00
Steve Pulec
d37c355bd3
Merge pull request #1484 from derwolfe/ssm-send-command
...
Add support for SSM send_command
2018-03-07 07:37:44 -05:00
Steve Pulec
b3468b9ebf
Merge pull request #1480 from lleontop/opsworks_increase_coverage
...
Add more exception tests for opsworks
2018-03-07 07:09:47 -05:00
Steve Pulec
0414cc51c1
Merge pull request #1499 from srikiraju/fix/s3-list-deleted
...
S3: Do not attempt to return deleted files in bucket listing
2018-03-07 07:08:07 -05:00
Steve Pulec
1a299ffbfc
Merge pull request #1364 from terrycain/bug_1358
...
Adds if_not_exists function to DynamoDB Update Expression
2018-03-06 22:46:11 -05:00
Steve Pulec
6668a6e17f
Merge pull request #1381 from koxudaxi/fix_MaxRecords_on_describe_db_instances
...
cast MaxRecords to int on describe_db_instances
2018-03-06 22:45:28 -05:00
Steve Pulec
9e0b8da6cb
Merge pull request #1413 from captainkerk/autoscaling-subnet-or-az-is-required
...
AWS API raises an exception if both AZ and VPCZoneIdentifier params a…
2018-03-06 22:42:49 -05:00
Steve Pulec
47ec9bcdc8
Merge pull request #1418 from stillwaiting/sns-do-not-duplicate-subscriptions
...
SNS: do not duplicate subscriptions
2018-03-06 22:40:22 -05:00
Steve Pulec
1dd21d6cd6
Merge pull request #1442 from JackDanger/jack/importing-sure-in-tests-that-require-it
...
importing sure in tests that require it
2018-03-06 22:38:10 -05:00
Steve Pulec
de6ded5aab
Merge pull request #1422 from godfried/fix-cloudwatch-value
...
Change name of 'state' attribute of 'FakeAlarm' CloudWatch model to '…
2018-03-06 22:36:50 -05:00
Steve Pulec
4b21beb754
Merge pull request #1428 from toshitanian/logs-exceptions
...
Add logs exceptions
2018-03-06 22:32:03 -05:00
Steve Pulec
7fa14c81f4
Merge pull request #1425 from whummer/feat/cf-fn-GetAZs
...
Implement Fn::GetAZs function in CloudFormation
2018-03-06 22:28:31 -05:00
Steve Pulec
8b3743fa9c
Merge pull request #1439 from anderson-dan-w/redrive-policy
...
Redrive policy
2018-03-06 22:22:49 -05:00
Steve Pulec
16dd20e443
Merge pull request #1447 from dbfr3qs/master
...
add elasticloadbalancer:loadbalancer to resourcegroupstaggingapi
2018-03-06 22:20:19 -05:00
Steve Pulec
924c99bcea
Merge pull request #1448 from grahamlyons/fix-ebs-tagging
...
Change `'image'` for `'volume'` when getting tags
2018-03-06 22:16:59 -05:00
Steve Pulec
8a0cf49b7d
Merge branch 'master' into redshift-copy-grants
2018-03-06 22:11:34 -05:00
Steve Pulec
ddba69982e
Merge pull request #1451 from captainkerk/redshift-add-cross-region-snapshots
...
Redshift: Add Cross Region Snapshot Functionality
2018-03-06 22:10:29 -05:00
Steve Pulec
6826b82cfb
Merge pull request #1455 from grahamlyons/snapshot-search-bug
...
Snapshot search bug
2018-03-06 22:06:33 -05:00
Steve Pulec
326698f3fa
Merge pull request #1460 from okomestudio/s3-region-from-url
...
Support both virtual-hosted and path-style URLs for region name parsing
2018-03-06 21:57:57 -05:00
Dave Golombek
9a8b36debc
ELBv2.create_listener links TargetGroup to LB
...
In order to search target_groups by LB, we need this link in place.
Resolves #1500
2018-03-06 16:57:56 -05:00
Srikanth Raju
4f05aa725c
S3: Do not attempt to return deleted files in bucket listing
2018-03-06 01:55:14 -08:00
andrew
7d3af65f22
fix errors
2018-02-23 14:42:49 -05:00
andrew
6ab416724a
WIP: add iam roles to redshift
2018-02-22 14:58:19 -05:00
Chris Wolfe
7a6987a7f1
note
2018-02-19 09:59:52 -06:00
Chris Wolfe
8ac4ff1e99
greater granularity
2018-02-19 09:58:46 -06:00
Chris Wolfe
29061ec0f8
add a basic test to start
2018-02-19 09:10:52 -06:00
Loukas Leontopoulos
bf2ba0b680
Add more exception tests for opsworks
2018-02-19 15:22:53 +02:00
Hugo Lopes Tavares
5f61950096
Make SpotPrice optional when requesting a spot fleet
...
When price is omitted, AWS will default to the on-demand price
2018-02-01 18:07:35 -05:00
Taro Sato
5e70d0ce4c
Support both virtual-hosted-style and path-style URLs for region name parsing
2018-01-30 16:10:43 -08:00
grahamlyons
f3debf8f6f
Test and fix bug for snapshot searching
...
The logic which contructed a list of values for parameters with
multiple values was flawed in that e.g. `Subnet.1` and `Subnet.10`
would be have their values counted against `Subnet.1` because they
share a prefix.
This now checks for a starting `.` before counting that name as
having the requested prefix.
2018-01-29 14:30:21 +00:00
captainkerk
e514b98747
redshift: add copy grant functionality
2018-01-28 22:58:28 +00:00
captainkerk
7130dd5239
rework to follow spec for encrypted/unencrypted clusters
2018-01-28 04:16:21 +00:00
captainkerk
ed06658271
address spacing issues
2018-01-28 04:16:21 +00:00
captainkerk
d8b124fbf4
added: enable/disable/modify redshift snapshot copy methods
2018-01-28 04:16:21 +00:00
grahamlyons
3ce57644cd
Change 'image'
for 'volume'
when getting tags
...
The AWS docs say that: "Currently, the resource types that support
tagging on creation are instance and volume." Calling `create_volume`
and passing `image` as the resource type in tag specifications causes
an `InvalidParameterValue` error.
2018-01-26 11:12:50 +00:00