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
939329efa7
Merge pull request #1613 from nimbis/lambda-govcloud-backend
...
Add gocloud to lambda back ends
2018-05-29 22:12:11 -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
6e363c44de
Merge pull request #1607 from theothertom/add-additional-job-status-data
...
1606 Add additional fields to Batch job status endpoint
2018-05-29 21:54:05 -04:00
Steve Pulec
a6d280de26
Merge pull request #1618 from jbergknoff-rival/jbergknoff/ssl
...
Accept paths to user-controlled SSL cert
2018-05-29 21:52:15 -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
ffc2f4ca05
Spaces also exist in AutoScalingGroupARN
...
AutoScalingGroupARN has whitespace and newline that leaks into describe_auto_scaling_groups
2018-05-16 18:46:50 +01:00
cpitchford
fc32a79139
New line in LaunchConfigurationARN statement
...
The statement that defines LaunchConfigurationARN had a newline and whitespace prefix
The ARN reported in describe_launch_configurations has this newline and white space.
Arns should not have whitespace or newlines!
2018-05-16 18:13:44 +01:00
Alan Justino da Silva
d4cc7f1399
LambdaVersion providing ARN on __repr__
...
Just a dirty patch
2018-05-15 15:13:01 -03:00
cpitchford
176f19136c
Action is now recorded as event:PutEvents (fully qualified)
...
We no longer need to amend how the Action is reported in the describe_event_bus policy
2018-05-15 18:58:16 +01:00
cpitchford
b61989cb35
Bugfix: put_permission action parameter
...
Boto3/AWS requires that the Action parameter of put_permissions is fully qualified as "events:PutEvents" not "PutEvents"
2018-05-15 18:28:35 +01:00
cpitchford
1e01356f99
Bugfix: describe_event_bus()['Policy'] should be JSON string, not object
...
boto3.client('events')['Policy'] must be a string as per:
http://boto3.readthedocs.io/en/latest/reference/services/events.html#CloudWatchEvents.Client.describe_event_bus
Adding json.dumps() around the policy value ensures we do not return an unexpected dict
This change corrects an error when attempting to decode the policy:
json.load(boto3.client('events').describe_event_bus()['Policy'])
2018-05-15 16:45:49 +01: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
33e56461a1
Removed unused import
2018-05-09 09:26:34 +02: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
289d361463
add check for at least 1 character as the minumum length
...
REF: http://boto3.readthedocs.io/en/latest/reference/services/sns.html#SNS.Client.create_topic
2018-05-04 19:17:37 -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
Ben Jolitz
0ed18c8b8a
remove extraneous backslash
2018-05-04 16:33:43 -07:00
Ben Jolitz
b08fc8bede
allow topic names to start/end with _
, -
2018-05-04 16:30:47 -07:00
jbergknoff-10e
86fed8ba27
lint
2018-05-04 16:42:16 -05:00
Barry O'Neill
9e7b86faef
Issue 1615 - missing Value should not kill put_metric_data
2018-05-03 19:47:36 -04:00
jbergknoff-10e
2ac8954b13
Accept paths to user-controlled SSL cert
2018-05-03 14:09:56 -05:00
djkiourtsis
5d6655a7ee
Add gocloud backend to lambda backends
...
Boto does does not include the govcloud backends when displaying lambda
regions. In order to test lambda with a govcloud region, the region
must be explicitly added.
2018-05-03 11:42:52 -04:00
Alexander Mohr
93a404ec37
pep
2018-05-03 02:10:17 -07:00
Alexander Mohr
7a57dc2034
fix errors
2018-05-03 01:40:49 -07:00
Tom Grace
94fa94c2df
1606 Add additional fields to Batch job status endpoint
2018-05-02 13:39:54 +01: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
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
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
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
6556ba89cd
Basic plumbing to preserve MessageGroupId and MessageDeduplicationID, if they are provided.
2018-04-19 00:22:58 -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
7cc08a9c5c
bumping to version 1.3.3
2018-04-18 18:40:32 -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
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
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
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
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
Steve Pulec
e3b377d9fe
Merge pull request #1552 from william-richard/ecs-memory-hard-limit-cpu-host-port-are-optional
...
ECS CPU, memory hard limits and host ports are all optional.
2018-04-12 18:42:51 -04:00
Jack Danger
3ac4532968
Version 1.3.2 ( #1564 )
...
* bumping to version 1.3.2
* Updating implementation coverage
* updating CHANGELOG
2018-04-12 14:37:00 -07:00
Benny Elgazar
67d7e8d590
Fix Unicode problem ( #1562 )
2018-04-12 14:06:24 -07:00
William Richard
9b281f63f6
Add support for calculating resource requirements for cloudforamtion container definitions
...
Cloudformation user capitalized resource names, while boto does not
Undo whitespace changes
2018-04-11 17:20: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
Steve Pulec
ec0d808010
Only start responses patcher if not already activated.
2018-04-11 09:39:38 -04:00
sawandas
09ac77d979
Issue #1539 : Fixing dynamodb filtering (contains, begins with)
...
Currently contains and begins with are not respecting the given filter value
2018-04-09 12:10:44 +05:30
Alberto Vara
56f29a0e6e
Fix/lambda backend ( #1556 )
...
* Fix exception with "object has no attribute"
When use this code:
client = boto3.client('lambda')
client.get_policy([...])
moto rise:
```
moto/awslambda/responses.py", line 109, in _get_policy
lambda_backend = self.get_lambda_backend(full_url)
Exception: 'LambdaResponse' object has no attribute 'get_lambda_backend'
```
* fix shadows built-in name
2018-04-07 11:07:17 -07:00
Steve Pulec
2ee484990d
Catch RuntimeError on unpatching in case of multiple unpatching.
2018-04-06 09:26:47 -04:00
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
Steve Pulec
daa6bfe84d
Dont iterate over dictionary that we are modifying.
2018-04-04 14:56:57 -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 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
1046ee5041
Added object to parsing and test server test for cognito.
2018-04-03 13:38:24 -07:00
Barry Ruffner
7f0723a068
Added missing backend for server mode.
2018-04-03 12:57:21 -07:00
Barry Ruffner
ed495cdd9e
More cleanup of identation and reordering / newlines for flake8 happiness.
2018-04-03 12:17:34 -07:00
Barry Ruffner
5df0f1befc
Fixes for automated tests linting.
2018-04-03 12:08:53 -07:00
Barry Ruffner
433997629f
Cleaned up unused method and import
2018-04-03 11:58:11 -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
Devin Bjelland
0a4d2037df
fix bug with Kinesis ResourceInUse exception ( #1544 )
2018-03-29 16:42:53 -07:00
Steve Pulec
7737832bf3
Fix bug adding None TTL to route53 responses.
2018-03-29 10:08:39 -04:00
Barry Ruffner
f4f79b2a8e
Added basic cognitoidentity (not working)
2018-03-28 12:40:42 -07:00
Giorgos-Christos Dimitriou
f18259d49e
Change REPONSE to RESPONSE for consistency ( #1538 )
2018-03-26 12:26:24 -07:00
William Richard
0ed388b4b8
If Properies isn't set, cloudformation will just use default values
2018-03-26 14:15:16 -04:00
Jack Danger
5fe575b6ed
bumping to version 1.3.1 ( #1530 )
...
* bumping to version 1.3.1
* Updating implementation coverage
2018-03-22 11:28:32 -07: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
Andrew Jefferson
bf136584a9
Put projection after filter so that filters can act on fields that ar… ( #1470 )
...
* Put projection after filter so that filters can act on fields that are not projected
* fixing whitespace
2018-03-21 09:02:31 -07:00
Jack Danger
17f3758591
releasing version 1.3.0 ( #1526 )
...
* Adding CHANGELOG entry for 1.3.0
* bumping to version 1.3.0
* Updating implementation coverage
2018-03-21 09:01:22 -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
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
ee35396173
Cleanup param parsing.
2018-03-07 09:24:18 -05:00
andrew
e2e1c7347b
default to None
2018-03-07 08:38:07 -05:00
Steve Pulec
0361d5ddbf
Merge pull request #1486 from evanstachowiak/master
...
Fix MaxRecords compare issue
2018-03-07 07:47:13 -05:00
Steve Pulec
2e379853e4
Merge pull request #1476 from cliveli/master
...
Use the TemplateBody by default it exist
2018-03-07 07:40:28 -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
9ad1e40cf5
Merge pull request #1498 from dgolombek/wip/fix_page_size_handling
...
Fix handling of PageSize for ELB/ELBv2
2018-03-07 07:24:36 -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
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
f31cf795b3
Merge pull request #1429 from toshitanian/fix-iot-exception-definition
...
Fix iot exception definition
2018-03-06 22:27:03 -05:00
Steve Pulec
ece7507eec
Merge pull request #1430 from OwnZones/urldecode_fix
...
Url decode x-amz-copy-source for S3 copyObject requests
2018-03-06 22:26:15 -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
dc03125c1a
Merge pull request #1449 from RasmusWernerLarsen/CidrIpv6
...
Add support for CidrIpv6 in Cloudformation Security Ingress rules.
2018-03-06 22:15:45 -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
89d223b0df
Merge pull request #1457 from raymondhardynike/master
...
fixes apigateway timestamp to match aws
2018-03-06 22:00:00 -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
Steve Pulec
2134600e29
Merge pull request #1459 from okomestudio/fix-404-response-on-s3-head
...
Fix the S3 HEAD response body
2018-03-06 21:56:50 -05:00
Steve Pulec
39de04c18c
Merge pull request #1501 from dgolombek/wip/create_listener_bug
...
ELBv2.create_listener links TargetGroup to LB
2018-03-06 21:49:03 -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
Dave Golombek
73a1c03580
Fix handling of PageSize for ELB/ELBv2
...
Resolves #1497
2018-03-05 16:52:56 -05:00
andrew
894906e0ee
remove reliance on iam_backends
2018-02-23 14:52:22 -05: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
Evan Stachowiak
afe922bfb6
Fix MaxRecords compare issue
2018-02-21 13:11:26 +01:00
Chris Wolfe
8ac4ff1e99
greater granularity
2018-02-19 09:58:46 -06:00
Chris Wolfe
99d3362417
add code to respond to SSM send_command
2018-02-19 09:39:29 -06:00
Loukas Leontopoulos
3d7f584f64
Change lambda backend to support docker changes
2018-02-19 17:28:35 +02:00
Clive Li
6e6ed28d79
Use the TemplateBody by default it exist
...
serverless cli use the PUT + TemplateBody + TemplateURL to upload cloudformation template
This fix try to get the TemplateBody from the request first, if not exist, fetch the one from s3 bucket
2018-02-13 17:32:11 +11: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
Jack Danger
d090a8188c
fixing version number
...
Fixes #1481
2018-02-01 11:05:31 +09: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
Taro Sato
c7bcbadc6e
Fix the S3 HEAD response body
2018-01-30 13:48:04 -08:00
rhard7
363f734e2b
fixes apigateway timestamp to match aws
2018-01-29 12:37:23 -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
258c076eef
(slow heavy metal music playing) adjust spacing to appease the pep8 gods
2018-01-28 23:16:19 +00:00
captainkerk
4d77aef7e5
adjust spacing, remove unnecessary region_name variable from
...
SnapshotCopyGrant init
2018-01-28 23:08:03 +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
92798b9a9f
improve error handling
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
Rasmus Larsen
796145d62d
Make DestinationCidrBlock optional (ipv6).
2018-01-26 15:32:22 +01:00
Rasmus Larsen
59c49ca34f
Fix typo.
2018-01-26 14:55:53 +01:00
Rasmus Larsen
aedfebed98
Add support for CidrIpv6 in Security Ingress rules.
2018-01-26 14:48:11 +01: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
Jack Danger
4520cd930f
Merge pull request #1378 from william-richard/start-running-ami-tests
...
Make test_amis not executable, so nose runs it
2018-01-24 18:28:40 -08:00
Chris Keogh
53184208fd
add elasticloadbalancer:loadbalancer to resourcegroupstaggingapi.get_resources
2018-01-25 14:51:06 +13:00
Koudai Aono
518282dbd3
change get_param method to get_int_param
2018-01-25 00:51:14 +09:00
Koudai Aono
e4cf58d6fa
cast MaxRecords to int on describe_db_instances
2018-01-25 00:51:14 +09:00
Dan W Anderson
8959643e56
return redrivepolicy attribute as string
2018-01-23 18:33:23 -08:00
Dan W Anderson
89bad39313
add redrivepolicy attribute to sqs
2018-01-23 18:33:23 -08:00
dbfr3qs
597676c59c
add tags when creating ebs volume
2018-01-15 21:52:32 +13:00
ciprianaradulescu
c431a3a774
Merge branch 'master' into urldecode_fix
2018-01-14 19:58:48 +02:00
Ciprian Radulescu
ef9b229acc
url decode x-amz-copy-source as per s3 nodejs documentation
2018-01-14 18:49:47 +02:00
Toshiya Kawasaki
4f445a3db5
Handle describe-streams error when log events does not exist.
2018-01-14 15:20:20 +09:00
Toshiya Kawasaki
056a4e4672
Fix iot exception definition
2018-01-14 14:39:24 +09:00
Toshiya Kawasaki
663283a8f0
add logs exceptions
2018-01-14 14:35:53 +09:00
William Richard
09c5407b86
Fix tests that were introduced in PR #1398
2018-01-11 15:02:03 -05:00
William Richard
e0d4728c5d
Fix ami tests
...
- missing and malformed image ids
- test_ami_filters
- test_ami_copy tests
- test_ami_create_and_delete test
- test_ami_filter_wildcard test
- the rest of the tests by using the non-deprecated mock_ec2
2018-01-11 15:02:01 -05:00
Waldemar Hummer
da4a6fe616
implement Fn::GetAZs function in CloudFormation
2018-01-10 22:44:16 -05:00
Jack Danger
24fee6726a
bumping version to 1.2.0
2018-01-10 15:29:22 -08:00
Jack Danger
38711b398c
bringing old version number into line
2018-01-10 15:29:22 -08:00
Jack Danger
681726b826
Including the in-source version number
2018-01-10 15:29:22 -08:00
Brian Pandola
350cf9257e
Add update_access_key endpoint ( #1423 )
2018-01-10 18:29:08 -05:00
Pieter Jordaan
a8cd5fb7fd
Change name of 'state' attribute of 'FakeAlarm' CloudWatch model to 'state_value'. This ensures that the 'StateValue' returned by 'describe_alarms' is correct.
...
The 'DESCRIBE_ALARMS_TEMPLATE' response template references a 'state_value' attribute on the 'FakeAlarm' model which does not exist; it is named 'state'.
This commit updates the attribute to be called 'state_value', in-line with the naming convention used elsewhere.
2018-01-08 13:18:50 +01:00
Nuwan Goonasekera
56ce26a728
Added support for filtering AMIs by self ( #1398 )
...
* Added support for filtering AMIs by self
Closes: https://github.com/spulec/moto/issues/1396
* Adjusted regex to also match signature v4 and fixed py3 compatibility
2018-01-04 10:01:17 +00:00
Toshiya Kawasaki
71af9317f2
Add group features to iot ( #1402 )
...
* Add thing group features
* thing thing-group relation
* clean up comments
2018-01-04 09:59:37 +00:00
Mike Grima
770281aef2
Added put_bucket_logging support ( #1401 )
...
- Also added put acl for XML
- Put logging will also verify that the destination bucket exists in the same region with the proper ACLs attached.
2018-01-02 20:47:57 -08:00
Boris Gvozdev
633decc6c0
SNS: do not duplicate subscriptions
2018-01-02 11:30:39 +11:00
Mike Bjerkness
b855fee2e4
Add batch_get_image support for ECR ( #1406 )
...
* Add batch_get_image for ECR
* Add tests for batch_get_image
* Add tests for batch_get_image
* Undo local commits
* Undo local commits
* Adding object representation for batch_get_image
* Update responses. Add a couple more tests.
2017-12-30 18:39:23 -08:00
captainkerk
cd96de4903
ResourceContentionError is indeed a 500
2017-12-29 03:32:25 +00:00
captainkerk
144611ff99
define setup_networking_deprecated() method to create supporting
...
resources for tests that use deprecated methods
2017-12-29 03:00:53 +00:00
Jack Danger
84f2ec5e04
Merge pull request #1416 from goraxe/describe_regions_with_names
...
describe_regions: handle region-names parameter
2017-12-28 14:47:39 -08:00
Gordon Irving
5fed6988da
describe_regions: handle region-names parameter
2017-12-28 19:06:38 +00:00
Gordon Irving
6da22f9fa4
fix adding tags to vpc created by cloudformation
2017-12-28 19:04:37 +00:00
Waldemar Hummer
24f83e91f2
return 404 error on missing action
2017-12-27 22:58:24 -05:00
captainkerk
f7d8e3beb1
flake8 fix
2017-12-27 20:22:26 +00:00
captainkerk
59cf81fd56
AWS API raises an exception if both AZ and VPCZoneIdentifier params are empty. mock that exception, fix
...
tests to follow that pattern.
2017-12-27 19:17:59 +00:00
Jack Danger
6a29800ec8
Merge pull request #1407 from nimbusscale/cloudformation_updates
...
FakeStack update to support both JSON and YAML templates
2017-12-26 15:25:58 -08:00
Jack Danger
2aea4fc0d4
Merge pull request #1400 from MarSoft/fix-xray-client-decorator-ret-val
...
mock_xray_client: don't swallow function's return value
2017-12-26 13:28:33 -08:00
George Ionita
3cede60f5b
improved SWF support
2017-12-23 05:45:05 +02:00
Nuwan Goonasekera
c68cd650e7
Make sure invalid or malformed AMIs raise an exception
...
Closes: https://github.com/spulec/moto/issues/1408
2017-12-22 18:50:22 +05:30
Joe Keegan
bb4bc01999
update self.template_dict based on new template
2017-12-21 12:10:27 -08:00
NimbusScale
21606bc8ae
update support JSON or YAML
2017-12-18 20:44:04 -08:00
Semyon Maryasin
7a4e48e8df
mock_xray_client: do return what f() returned
...
fixes #1399
this won't help with fixtures though
2017-12-17 04:40:26 +03:00
Alex M
e75f3ef4d4
Implement execute change set endpoint ( #1391 )
2017-12-14 12:07:23 +00:00
William Richard
df7a7958c1
Path is an optional property of instance profile cloudformation resource ( #1382 )
...
* Path is an optional property of instance profile cloudformation resource
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html
* Path is also optional for iam role clouformation resources
Based on http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html
* Use `properities.get` with a default instead of doing default handling myself
2017-12-14 12:06:04 +00:00
Alex M
2346e14e00
Add create change set endpoint ( #1389 )
2017-12-11 09:23:35 +00:00
Alexander Mohr
9d087b0729
add subject support ( #1387 )
2017-12-10 21:59:04 +00:00
Chris Tomlinson
279efc6b12
Bump flake8 version and handle new lint errors ( #1385 )
2017-12-08 21:02:34 +00:00
Chris Tomlinson
499857e67f
Fix co-operative inheritance for ec2 model ( #1383 )
2017-12-08 21:00:34 +00:00
Brian Cavagnolo
d2eea02774
add support for kinesis AT_TIMESTAMP shard iterator ( #1376 )
...
Fixes #813
2017-12-08 10:57:05 +00:00
William Richard
92f5f7b263
Add cloudformation update from s3 support ( #1377 )
...
* Fix variable name typo
* Make it possible to delete EC2 instances from cloudformation json
* Add support for updating a cloudformation stack from an s3 template url
2017-12-08 10:48:29 +00:00
David Bartle
52ce8d378f
IAM delete_server_certificate ( #1380 )
...
* IAM delete_server_certificate
* flake8 fixes
2017-12-08 10:43:09 +00:00
Enis Afgan
0c01c7f495
Allow AMIs to be read from a custom file path ( #1379 )
2017-12-06 10:14:56 +00:00
Alexander Mohr
81f3cbb548
fix cloudwatch bug ( #1374 )
...
* bugfix + add tests
2017-12-05 09:25:08 +00:00
Pierre Tardy
d8f6f77a0f
Fix prebuilt images usability. ( #1375 )
...
- add a better error message when user uses an unknown ami
- add image_location in the default fake images
Fixes #1372
2017-12-05 09:22:13 +00:00
Alexander Mohr
97687d153a
Implement CloudWatch get_metric_statistics ( #1369 )
...
* implement get_metric_statistics
2017-12-01 20:37:27 +00:00
Ben Slusky
796fa6647b
modify_db_instance should be able to rename DB instances ( #1367 )
2017-11-30 11:41:25 +00:00
Kai Xia(夏恺)
9e1a233549
fix KeyError in delete_alias in the KmsBackend. ( #1359 )
...
* fix KeyError in delete_alias in the KmsBackend.
If there're several aliases in the backend, previously we will bump into
a KeyError here.
Signed-off-by: Kai Xia <xiaket@gmail.com>
* add doc to make travis try one more time.
Signed-off-by: Kai Xia <xiaket@gmail.com>
a
* add another key and alias before the deletion of an alias.
This was done to make sure that we can correctly handle the deletion
when there are more than one alias defined.
Signed-off-by: Kai Xia <xiaket@gmail.com>
2017-11-27 10:36:25 +00:00
Terry Cain
a1f2ba21ee
Adds if_not_exists function to DynamoDB Update Expression
...
Fixes #1358
2017-11-26 22:29:23 +00:00
Terry Cain
d5ee48eedd
Lambda improvements ( #1344 )
...
* Revamped the lambda function storage to do versioning.
* Flake8
* .
* Fixes
* Swapped around an if
2017-11-26 21:28:28 +00:00
Toshiya Kawasaki
cfc994d0ae
Add publish operation to iotdata ( #1362 )
...
* add publish operation to iotdata
* restart ci
2017-11-24 17:22:53 +00:00
Toshiya Kawasaki
871625998c
tweak ecrv2 FakeTargetgroups's default value ( #1351 )
2017-11-20 17:13:47 +00:00
Toshiya Kawasaki
49a2724d76
Set default value to elbv2 FakeTargetGroup ( #1349 )
2017-11-20 11:18:21 +00:00
justinsr20
17b8396a9c
updated rds status from shutdown to stopped to match aws ( #1347 )
2017-11-20 09:07:36 +00:00
Jessie Nadler
04c5198a0c
Add default ecs attributes and format in response obj ( #1346 )
...
* Initialize EC2ContainerServiceBackend and ContainerInstance objects with region_name
* Initialize ContainerInstance with default attributes
* These attributes are automatically applied by ECS when a container is registered
* Docs: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html#attributes
* Format container_instance.attributes for response_object
* Python3
* Only use available ECS regions for ecs_backends
* Sort dictionaries on key='name' using lambda
* Sort all dicts in tests using lambda
2017-11-17 18:25:08 +00:00
Victor Hiairrassary
caec929506
Improve SSM PutParameter & DescribeParameters actions ( #1348 )
2017-11-17 08:57:11 +00:00
Terry Cain
2609f6cd3a
Added support for dynamo update_item on nested dicts ( #1345 )
2017-11-17 08:49:59 +00:00
Waldemar Hummer
cdb7305dac
use S3 path style addressing when running in kubernetes ( #1315 )
2017-11-15 19:37:39 +00:00
Hugo Lopes Tavares
aa6a0765c1
Move target group default values to model FakeTargetGroup ( #1343 )
...
Before this commit everything that needs to create target groups
had to handle the default values (i.e., cloudformation call & ELBV2Response call)
2017-11-15 19:36:53 +00:00
Hugo Lopes Tavares
7b1ec157b8
Add proper CFN attribute handling to elbv2.FakeLoadBalancer ( #1341 )
2017-11-15 15:11:11 +00:00
Terry Cain
8ee05e22af
[WIP] Resource tagging ( #1332 )
...
* Ran scaffold
* Made a start on get_resources.
* Added more EC2 to tag list
* More stuff
* Added more methods
* Added S3 region name
* Added values test
* Some final touchups
2017-11-15 00:03:00 +00:00
Archa91
474023f9a1
fix EC2 instances ebsOptimized not handled ( #1340 )
...
* fix EC2 instances ebsOptimized not handled
* add test_create_instance_ebs_optimized
2017-11-14 14:31:54 +00:00
Adam Gilman
2ad0f2fc1c
SNS create_topic should only accept valid characters ( #1329 )
...
* SNS create_topic should only accept valid characters
Closes #1328
* Fix flake8 errors
* Updated regex to match full TopicName constraints
Fixed test_server as it contained invalid TopicNames’ per constraints
* fix error message for invalid topic name
2017-11-13 18:27:11 +00:00
Seiro Ogasawara
abd4d09afe
fix error response on iot/iot-data ( #1337 )
...
* fix iot/iot-data's:
- format of response body xml to json
- status code 400 to 404 on ResourceNotFound
* for ci test
2017-11-13 08:54:10 +00:00
Jack Danger
5a204993af
Merge pull request #1335 from captainkerk/rename-autoscaling-internal-methods-to-match-boto
...
AutoScalingBackend / Implementation Coverage quirk
2017-11-12 09:04:02 -08:00
captainkerk
64adbe5852
boto uses auto_scaling, not autoscaling
2017-11-12 16:15:21 +00:00