Commit Graph

3089 Commits

Author SHA1 Message Date
gruebel
2cfd3398f6 Add ParameterFilters to SSM describe_parameters 2019-10-05 14:05:47 +02:00
Bert Blommers
71e86ab417 #1834 - Bugfix when removing item in double nested maps 2019-10-05 11:33:34 +01:00
Bert Blommers
d86dcb2ee9
Merge pull request #4 from ZoidBB/master
Initial work by ZoidBB
2019-10-05 10:18:17 +01:00
Steve Pulec
7de11b672b
Merge pull request #2449 from nadlerjessie/events-and-ecs-multi-region
Events and ecs multi region
2019-10-03 16:20:30 -05:00
Steve Pulec
59543c404a
Merge pull request #2450 from jimjshields/add-ecs-service-tag-resource
Add support for tagging and untagging ECS services
2019-10-03 16:04:14 -05:00
Mike Grima
d925335f05
Merge pull request #2443 from mikegrima/configquery
Adding support for querying AWS Config
2019-10-03 13:38:43 -07:00
Jessie Nadler
2424d63686 Use self.region_name to generate rule ARN 2019-10-03 15:29:54 -04:00
Jim Shields
6cb1173719 Add tag_resource and untag_resource for ECS services
* Refactor resource ARN parsing
2019-10-03 15:16:07 -04:00
Jessie Nadler
277cec0928 Add multi region support for Events 2019-10-03 15:15:11 -04:00
Jessie Nadler
4fe66f521d Use region to create and describe ECS resources 2019-10-03 15:12:05 -04:00
Mike Grima
60183b29c1
Merge pull request #2447 from bblommers/bugfix/2445
#2445 - DynamoDB - Add validation for AttributeDefinitions
2019-10-03 11:52:29 -07:00
Mike Grima
af48133ba5
Merge pull request #2448 from jthorniley/features/stepfunctions-fix-arn
Stepfunctions minor improvements
2019-10-03 11:50:37 -07:00
Mike Grima
567a6da31d
Merge pull request #2439 from Kerl1310/feature/send_templated_email
#2437 Implementing send_templated_email
2019-10-03 11:49:45 -07:00
Mike Grima
59de29f2ae
Merge pull request #2446 from yh1224/fix-#2444
trim invalid newline
2019-10-03 11:48:42 -07:00
Mike Grima
b9c1d5a91f
Merge pull request #2436 from yan12125/s3-copy-key-with-question-mark
Fix copying S3 objects with question marks in keys
2019-10-03 11:48:08 -07:00
Mike Grima
1cae78ad2f
Merge pull request #2435 from waynemetcalfe/issue-2432
Issue 2432
2019-10-03 11:47:13 -07:00
Mike Grima
c4b310d7a5 Adding support for querying AWS Config for supported configurations.
At this time, only adding support for S3.
2019-10-03 11:43:56 -07:00
Jim Shields
d8333fdd7e Add support for tagging of ECS services
* Add tags to create_service
* Add service to list_tags_for_resource
2019-10-03 14:30:08 -04:00
James Thorniley
31310760ea stepfunctions: start_execution accepts name arg 2019-10-03 14:47:24 +01:00
James Thorniley
7f33ec4420 correct description of error for invalid state machine arn 2019-10-03 14:14:06 +01:00
James Thorniley
33398d628f fix: iam role arn should have two colons 2019-10-03 14:00:33 +01:00
Bert Blommers
6005b19ac2 #2445 - DynamoDB - Add validation for AttributeDefinitions 2019-10-03 10:54:10 +01:00
Yoshiharu Hirose
570d3a9ee7 trim invalid newline 2019-10-03 17:04:49 +09:00
Ivan Dromigny
03986df929 Update syntax 2019-10-03 09:53:04 +02:00
Ivan Dromigny
83c8740b91 Add informations in subscriptions attributes 2019-10-02 18:06:34 +02:00
Kyle Jones
1d5140e11d Implementing send_templated_email 2019-10-02 08:39:35 +01:00
Chih-Hsuan Yen
6c0a2dc374
Fix copying S3 objects with question marks in keys
PR #2062 fixes copy for unicode keys. However, the change breaks keys
with question marks. Here is an alternative fix that works for both
emojis and question marks.

I notice this when running the test suite of aiobotocore. One of the
tests [1] is broken with moto >= 1.3.8.

[1] https://github.com/aio-libs/aiobotocore/blob/0.10.3/tests/test_basic_s3.py#L314-L329
2019-09-29 23:55:52 +08:00
Jack Danger
4497f18c1a
fixing ErrorResponse top-level tag (#2434)
In the golang SDK the previous format throws an unmarshaling error:

    /usr/local/Cellar/go/1.12.6/libexec/src/encoding/xml/read.go:209 &errors.errorString{s:"unknown error response tag, {{ Response} []}"}
    err: <*>SerializationError: failed to unmarshal error message
2019-09-27 11:14:53 -07:00
Wayne Metcalfe
9c66839f85 feat: implement logs untag_log_group 2019-09-26 20:20:53 +01:00
Wayne Metcalfe
0561a0050f feat: implement logs tag_log_group 2019-09-26 19:57:34 +01:00
Wayne Metcalfe
3cb7c3e568 feat: implement logs list_tags_log_group 2019-09-26 17:04:09 +01:00
Steve Pulec
23c1696b72
Merge pull request #2430 from jessevogt/handle-url-encoded-keys
Fix for #2431 delete objects fails with url encoded key
2019-09-25 20:55:42 -05:00
Steve Pulec
9cc6a1533f
Merge pull request #2409 from bblommers/feature/stepfunctions
Step Functions - basic method implementation
2019-09-24 18:16:07 -05:00
Jesse Vogt
3b4cd1c27b switch from calling clean in loop to undoing clean in delete_keys 2019-09-24 17:07:58 -05:00
Jesse Vogt
2df0309db5 unquote key name multiple times until stable value 2019-09-24 16:10:08 -05:00
Bert Blommers
38455c8e19 Step Functions - Remove STS-client and refer to hardcoded account-id 2019-09-24 14:36:34 +01:00
Steve Pulec
86fc340ffd
Merge pull request #2428 from mangin/get_log_events_problem
fix tail message problem in get_log_events
2019-09-23 21:44:36 -05:00
Steve Pulec
6795a219cd
Merge pull request #2417 from Gapex/fix-MaxKeys
MaxKeys limits the sum of folders and keys
2019-09-23 21:38:26 -05:00
Steve Pulec
cbe1ff1974
Merge pull request #2422 from kiyonori-matsumoto/dynamodb-and-order
fix: raises ValueError on conditional and operator
2019-09-23 21:35:08 -05:00
Aleksandr Mangin
b163f23a22 fix tail message problem in get_log_events 2019-09-23 18:35:44 +02:00
Gapex
1c36e1e2c5 update unit test and fix StartAfter 2019-09-17 10:42:10 +08:00
Kiyonori Matsumoto
7ee35a8510 fix: raises ValueError on conditional and operator
if lhs evaluates to false, rhs must be ignored, but rhs was evaluated then ValueError is occurred.
2019-09-16 23:33:52 +09:00
Gapex
4946f8b853 'lint' 2019-09-16 15:31:57 +08:00
Gapex
59f87e30ba split truncated keys by type 2019-09-16 15:20:24 +08:00
Gapex
47635dc82e update key of sort 2019-09-16 13:33:53 +08:00
Gapex
a36b84b3aa fix MaxKeys in list_objects_v2 2019-09-16 11:35:36 +08:00
mattsb42-aws
4f34af95bc remove dead code
because the key ID validation is now centralized,
by the time this code would have been reached,
we know that the key ID exists,
so a KeyError will never be thrown
2019-09-13 13:35:55 -07:00
mattsb42-aws
a2c2a83198 fix linting issues 2019-09-12 18:04:18 -07:00
mattsb42-aws
f4c5dfbdfb reorganize and centralize key ID validation 2019-09-12 17:42:40 -07:00
Jessie Nadler
2b8bdc9bca Validate elbv2 FixedResponseConfig attributes 2019-09-12 12:29:03 -04:00
Jessie Nadler
2983a63c0d Allow fixed-response action type for elbv2 2019-09-12 12:25:43 -04:00
Gapex
d6ef01b9fd lint 2019-09-12 18:40:07 +08:00
Gapex
eea67543d1 MaxKeys limits the sum of folders and keys 2019-09-12 17:54:02 +08:00
Steve Pulec
b8a79611d6
Merge pull request #2397 from mattsb42-aws/kms
Making kms:Encrypt/Decrypt/GenerateDataKey more real
2019-09-11 22:13:33 -05:00
Steve Pulec
efe676dbd5 Add comment. 2019-09-11 22:07:24 -05:00
Steve Pulec
aa896a0c2e
Merge pull request #2294 from spulec/fix-responses-mocking
Cleanup responses mocking. Closes #1567
2019-09-11 22:06:36 -05:00
Steve Pulec
e5311eb6f6
Merge pull request #2415 from brunog3/fix-iam-policy-statements-with-empty-sid
Fix multiple IAM Policy Statement creation with empty sid
2019-09-11 22:04:35 -05:00
Steve Pulec
7a01b7ce9e
Merge pull request #2412 from joolean/issues/2189
Prevent overlapping expr name prefixes from corrupting projection expr
2019-09-11 22:02:34 -05:00
Steve Pulec
ff3e3de387
Merge pull request #2403 from wesselvdv/feature/cognito-describe-identity-pool
Adds Cognito Identity describe-identity-pool
2019-09-11 21:53:08 -05:00
Steve Pulec
d88e1fbdda
Merge pull request #2402 from gruebel/fix-sqs-maxReceiveCount
Store SQS RedrivePolicy maxReceiveCount value as int
2019-09-11 21:52:16 -05:00
Steve Pulec
0f3957ffad
Merge pull request #2399 from dkuntz2/route53-fix-empty-tags
Don't error out on route53.list_tags_for_resource when resource has no tags
2019-09-11 21:50:25 -05:00
Steve Pulec
12ad7d0ded
Merge pull request #2398 from RDProjekt/leading-double-slashes
Allows leading // for mocked s3 paths (fix for #1637)
2019-09-11 21:49:53 -05:00
Steve Pulec
13c4f2e794
Merge pull request #2343 from danguer/support-iterator-type-at-after-sequence
Adding support for AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER
2019-09-11 21:48:55 -05:00
Steve Pulec
586b428dae
Merge pull request #2394 from dezkoat/master
Change creationTime and lastIngestionTime type in LogStream and LogGroup to Long
2019-09-11 21:47:53 -05:00
Steve Pulec
c81de6e381
Merge pull request #2393 from cm-iwata/fix_device_shadow_ver_conflict
fix #2392 Add validation for device shadow version
2019-09-11 21:46:46 -05:00
Steve Pulec
8867e91f9e
Merge pull request #2391 from gruebel/master
Add exact Number, exact String.Array and attribute key matching to SN…
2019-09-11 21:46:06 -05:00
Steve Pulec
ac8d3c6792
Merge pull request #2390 from gdippolito/master
Add tag support to API Gateway keys
2019-09-11 21:45:08 -05:00
Steve Pulec
b2fddf8469
Merge pull request #2387 from oman36/issues-2386-queues-with-different-ApproximateNumberOfMessages
issues-2386 make comparing exists and new queues only by static attrs
2019-09-11 21:42:12 -05:00
Steve Pulec
5dfa30df42
Merge pull request #2385 from bblommers/bugfix/2366
Secretsmanager put_secret_value still does not support SecretBinary
2019-09-11 21:41:11 -05:00
Steve Pulec
eb5bf2ed55
Merge pull request #2401 from rocky4570/redshift-enhanced-vpc-routing
add enhanced vpc routing option to redshift moto
2019-09-11 21:40:12 -05:00
Steve Pulec
7c2d328724
Merge pull request #2400 from acsbendi/elbv2-terminated-instance-target
Terminated EC2 instances are deregistered from ELBv2 target groups.
2019-09-11 21:39:37 -05:00
Bruno Oliveira
21933052d3 Fix multiple IAM Policy Statement creation with empty sid 2019-09-10 23:43:50 -03:00
Julian Graham
f4df7a48ee Prevent overlapping expr name prefixes from corrupting projection expr
h/t @beheh. This patch handles the case when ProjectionExpression looks
like "#1, ..., #10" - the previous code used `replace`, which would make
the resulting projection into "foo, ..., foo0".
2019-09-09 19:08:16 -04:00
Bert Blommers
6a1a8df7cc Step Functions - Simplify tests 2019-09-07 16:37:55 +01:00
Bert Blommers
78254cc4f2 Step Functions - Execution methods 2019-09-04 15:42:42 +01:00
Bert Blommers
af4082f38e Step Functions - State Machines methods 2019-09-02 16:26:40 +01:00
Wessel van der Veen
0c11daf623 adds test cases, and fixes formatting. 2019-09-01 17:38:33 +02:00
gruebel
9ac20ad5f1 store SQS RedrivePolicy maxReceiveCount value as int 2019-08-31 19:28:09 +02:00
rocky4570
ff27e021bc add enhanced vpc routing option to redshift moto
EnhancedVpcRouting is only available when mock_redshift not mock_redshift_deprecated
2019-09-01 00:34:18 +10:00
Wessel van der Veen
1ae641fab8 adds basic implementation for describe-identity-pool 2019-08-31 09:08:12 +02:00
acsbendi
675db17ace Implemented deregistering terminated instances from ELB target groups. 2019-08-30 18:21:11 +02:00
Don Kuntz
35507f33df
Don't error out on route53.list_tags_for_resource when resource has no tags
Without the added `return {}`, calling route53.list_tags_for_resource
when called with a ResourceId of a resource without any tags would
result in the error:
    jinja2.exceptions.UndefinedError: 'None' has no attribute 'items'

Because the LIST_TAGS_FOR_RESOURCE_RESPONSE was given None instead of
empty dict.

This now allows list_tags_for_resource to be called without issue on
tag-less resources.
2019-08-28 13:57:42 -05:00
Łukasz Sznuk
e0304bc500 Allows leading // for mocked s3 paths (#1637). 2019-08-28 16:17:45 +02:00
mattsb42-aws
819d354af3 fix linting issues 2019-08-28 00:48:53 -07:00
mattsb42-aws
f7043e1eaf add kms:GenerateRandom and tests 2019-08-27 20:55:58 -07:00
mattsb42-aws
dd63cebf81 add kms:ReEncrypt invalid destination key test 2019-08-27 20:49:47 -07:00
mattsb42-aws
9ffb9d3d0a add kms:ReEncrypt and tests 2019-08-27 20:24:57 -07:00
Daniel Guerrero
4d2b12f40d Adding six.string_types checking 2019-08-27 19:59:43 -05:00
Daniel Guerrero
a068a56972 Merge branch 'master' into support-iterator-type-at-after-sequence 2019-08-27 16:06:11 -05:00
mattsb42-aws
98581b9196 add proper KMS encrypt, decrypt, and generate_data_key functionality and tests 2019-08-27 13:42:36 -07:00
mattsb42-aws
7eeead8a37 add encrypt/decrypt utility functions with appropriate exceptions and tests 2019-08-26 23:24:31 -07:00
dezkoat
b3a5e0fe3b Use long in creationTime and lastIngestionTime for LogStream and LogGroup model 2019-08-26 17:11:08 +07:00
Tomoya Iwata
778fc47c21 fix #2392 Add validation for shadow version,when update_thing_shadow() has called 2019-08-26 17:47:08 +09:00
gruebel
d8a922811c Add exact Number, exact String.Array and attribute key matching to SNS subscription filter policy and validate filter policy 2019-08-25 21:08:02 +02:00
Giulio
59852eb13a Add tag support to API Gateway keys 2019-08-24 11:19:50 +01:00
Vladimir
8b90a75aa0 issues-2386 make comparing exists and new queues only by static attrs 2019-08-23 17:17:10 +03:00
Bert Blommers
e8d60435fe #2366 - SecretsManager - put_secret_value should support binary values 2019-08-23 10:57:15 +01:00
Mike Grima
3a5d857a60
Merge pull request #2376 from rwestergren/event_source_mappings
And event source mapping endpoints and SQS trigger support
2019-08-22 16:54:46 -07:00
Mike Grima
7fa46e9659
Merge pull request #2381 from bblommers/bugfix/2380
2380 - Validate parameter-list for duplicates in dynamodb.batch_get_item
2019-08-22 16:40:16 -07:00
Randy Westergren
1efd9ee58d
Raise exception on invalid event source type and use full spec 2019-08-22 19:28:11 -04:00
Mike Grima
2fa4d2fb4a
Merge pull request #2375 from vuryleo/patch-1
Fix KeyCount in s3.list_objects_v2
2019-08-22 09:53:19 -07:00
Mike Grima
5fd2c30f97
Merge pull request #2377 from acsbendi/get-caller-identity
GetCallerIdentity returns real data based on the access key used
2019-08-22 09:50:59 -07:00
acsbendi
cf2dae0ce8 Calling sts:GetCallerIdentity is always allowed. 2019-08-22 18:09:52 +02:00
Bert Blommers
956592d615 2380 - Validate parameter-list for duplicates in dynamodb.batch_get_item 2019-08-22 16:12:48 +01:00
Randy Westergren
819dcfee24
Fix indent 2019-08-21 18:00:46 -04:00
Randy Westergren
210b8b24eb
Map service BatchSize defaults/maxes 2019-08-21 17:45:37 -04:00
Mike Grima
38866bfcef Fixed some IAM APIs for tagging and role descriptions 2019-08-21 13:08:33 -07:00
Mike Grima
1de371ca76
Merge pull request #2374 from asherf/acm
[ACM] Use the specified region name when generating ARN for a requested cert.
2019-08-21 12:56:59 -07:00
Mike Grima
aea9d84b01
Merge pull request #2373 from asherf/filter-acm
[ACM] Filter certs by statuses.
2019-08-21 12:55:26 -07:00
Mike Grima
d5e7334e5b
Merge pull request #2369 from dkuntz2/implement-launch-templates
Add basic endpoints for EC2 Launch Templates
2019-08-21 12:54:42 -07:00
acsbendi
3012740699 Fixed AssumedRole ARN. 2019-08-21 19:47:12 +02:00
acsbendi
27fdbb7736 Derive ARN of AssumedRoles from its role ARN and session name. 2019-08-21 12:57:56 +02:00
Bendegúz Ács
24dcdb7453
Merge branch 'master' into get-caller-identity 2019-08-21 12:36:40 +02:00
acsbendi
d931204266 Implemented get-caller-identity returning real data depending on the access key used. 2019-08-21 12:20:35 +02:00
acsbendi
d9cb1f2d35 Implemented returning random assumed role ID. 2019-08-21 10:45:36 +02:00
Randy Westergren
ccceb70397
And event source mapping endpoints and SQS trigger support 2019-08-20 21:54:57 -04:00
Vury Leo
71241f1c3f
make linter happy 2019-08-20 15:17:17 +08:00
Vury Leo
1249ba8d3b
fix KeyCount in s3.list_objects_v2 2019-08-20 15:01:37 +08:00
Asher Foa
d669145b71 Filter certs by statuses. 2019-08-19 18:01:21 -07:00
Asher Foa
66a7ace2c5 Use the specified region name when generating ARN for a requested cert. 2019-08-19 17:30:30 -07:00
Don Kuntz
d2ce3a9e04
Flake8 fixes 2019-08-19 18:01:44 -05:00
Don Kuntz
a1aa087718
Add test for creating launch templates with TagSpecifications option 2019-08-19 17:58:19 -05:00
Don Kuntz
743e5be4d3
Confirm describe_launch_template_versions works with Versions, MinVersion, and MaxVersion options 2019-08-19 17:57:39 -05:00
Don Kuntz
154b4ef844
Simplify xml_serialize, warn when unknown type used 2019-08-19 17:54:35 -05:00
Mike Grima
188969a048 AWS Config Aggregator support
- Added support for the following APIs:
	- put_configuration_aggregator
	- describe_configuration_aggregators
	- delete_configuration_aggregator
	- put_aggregation_authorization
	- describe_aggregation_authorizations
	- delete_aggregation_authorization
2019-08-19 15:50:19 -07:00
Don Kuntz
ed82264806 Rework LaunchTemplateBackend to be keep only one copy of a template, and be ordered
The original LaunchTemplateBackend kept two copies of a template, one
for referencing it by name and one for referencing it by id. This change
switches to using one copy, by id, and adding a lookup dict for mapping
names to ids.

Additionally, to fix the python2 test ordering issues, the launch
template dict was changed to an OrderedDict.
2019-08-14 17:33:21 -05:00
Don Kuntz
5f80014332 Serialize unicode as string in python2 2019-08-14 17:33:21 -05:00
Don Kuntz
f939531ae9 Fun with whitespace (flake8 violation fixes) 2019-08-14 16:19:30 -05:00
Don Kuntz
aa3b6085d1 Add basic endpoints for EC2 Launch Templates
Specifically, add the CreateLaunchTemplate, CreateLaunchTemplateVersion,
DescribeLaunchTemplates, and DescribeLaunchTemplateVersions endpoints.
2019-08-14 16:11:07 -05:00
Earl Robinson
5347a577da restore KeyId to kms decrypt response
regression introduced in #2071 "KMS generate_data_key"
2019-08-14 08:24:05 -04:00
Steve Pulec
9a3a99243f
Merge pull request #2365 from spulec/elb-cognito
Add cognito support to Elb
2019-08-12 16:10:26 -05:00
Steve Pulec
7b3846f6a1 Refactor Actions to be a real class. Add elb cognito. 2019-08-09 23:34:52 -05:00
Steve Pulec
a43228c5af Refactor validating ELB actions. 2019-08-09 10:15:56 -05:00
Mike Grima
aeacd3d0c4
Merge pull request #2354 from aksagrimada/ddb-invalid-escape-seq
Resolve invalid escape sequence
2019-08-07 15:14:41 -07:00
Mike Grima
2358433f74
Merge pull request #2359 from bkovacki/batch_submit_job_with_job_definition_name
Add option to call batch submit_job with job definition name only
2019-08-07 15:13:52 -07:00
Mike Grima
fa07d4973b
Merge pull request #2360 from ashleygould/issue_2355
[Resolves #2355] - create_organization(): add master account, default…
2019-08-07 15:11:48 -07:00
Berislav Kovacki
5063ffc837 Implement pagination support for GetLogEvents
* Add nextForwardToken and nextBackwardToken to GetLogEvents response
* Handle end of stream by returning the same token as passed in
2019-08-07 17:37:53 +02:00
Ashley Gould
7d453fec9a [Resolves #2355] - create_organization(): add master account, default policy
Model: OrganizationsBackend
Method: create_organization

create_organization now creates master account, root ou, and a
default service control policy objects and adds them to the
OrganizationsBackend object.  the policy is attached to both
the master account and the root ou.  any subsiquently created
accounts or OU also have the default policy attached.
2019-08-06 16:52:31 -07:00
Berislav Kovacki
a35a55ec26 Add option to call batch submit_job with job definition name only
* Add option to call batch submit_job with job definition name only
* Fix bug which causes register_job_definition not to increment job
revision number after a second revision
2019-08-06 22:13:52 +02:00
brodie.gallinger
ec99a6b827 Existing user now raises a UsernameExistsException
If a user is attempted to be added to a pool that already contains a user with that username, the UsernameExistsException is thrown, to match AWS behaviour.
2019-08-06 13:51:00 -03:00
aksagrimada
a3794f2701
Resolve invalid escape sequence
When run not as a decorator dynamodb2 displays an invalid escape sequence error
/moto/dynamodb2/responses.py:603: DeprecationWarning: invalid escape sequence \s
  '\s*([=\+-])\s*', '\\1', update_expression)
2019-08-06 07:16:00 +01:00
Steve Pulec
40271d2c4e
Merge pull request #2352 from wndhydrnt/bugfix/ecs-time-as-timestamp
Convert fields createdAt and updatedAt of ECS deployment to timestamp
2019-08-05 21:33:47 -05:00
Berislav Kovacki
b7884ef903 Add S3 support for INTELLIGENT_TIERING, GLACIER and DEEP_ARCHIVE storage
* Add INTELLIGENT_TIERING, GLACIER and DEEP_ARCHIVE as valid storage
classes for objects
* Add ObjectNotInActiveTierError error on PUT object copy for GLACIER
and DEEP_ARCHIVE storage class objects
2019-08-05 17:34:39 +02:00
wndhydrnt
3c19f0a02d Convert fields createdAt and updatedAt of deployment to timestamp 2019-08-04 10:23:50 +02:00
Steve Pulec
9b535a7c75
Merge pull request #2345 from iisulop/fix_timezone_problem_in_test_create_cluster_boto3
Fix timezone problem in test create cluster boto3
2019-08-03 22:38:14 -05:00
Steve Pulec
0d28d51f90
Merge pull request #2350 from chichi1091/apigateway_apikey_update
implements APIGateway update_api_key
2019-08-03 22:35:13 -05:00
Chiharu Terashima
7fa5ce3dc3 implements APIGateway update_api_key 2019-08-03 01:28:47 +09:00
Daniel Guerrero
1ce162f056 Using string class to detect type
Using string class instead unicode that has been removed from python 3
2019-07-30 14:15:47 -05:00
Daniel Guerrero
364bd0720d Adding support for python 2.7
Python 2.7 sends unicode type instead string type
2019-07-30 13:54:42 -05:00
Daniel Guerrero
9cce674857 Merge branch 'master' into support-iterator-type-at-after-sequence 2019-07-30 09:36:19 -05:00
Iiro Sulopuisto
24bd99b5c4 Make cluster creation time UTC 2019-07-30 14:16:54 +03:00
Steve Pulec
e4a4e61835 Allow passing of encoding-type for s3 get_bucket_versions without throwing error.
This was a change made in https://github.com/boto/botocore/pull/1794.
2019-07-29 22:52:29 -05:00
Steve Pulec
37978d79b3
Merge pull request #2338 from labd/add-ecs-list_tags_for_resource
Add ecs list tags for resource
2019-07-29 22:17:23 -05:00
Daniel Guerrero
bfc401c520 Fixing comments conventions 2019-07-29 21:21:02 -05:00
Daniel Guerrero
7091be8eae Adding support for AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER
Adding support on DynamoDB Streams for AT_SEQUENCE_NUMBER
 and AFTER_SEQUENCE_NUMBER ShardIteratorType

Change SequenceNumber type to string instead of int to match documentation
2019-07-29 21:13:58 -05:00
Michael van Tellingen
64e2a74e8c Add support for setting tags on ecs task definitions
This also implements the ecs.list_tags_for_resources, although the
resources it checks for are currently only the task definitions
2019-07-29 09:58:08 +02:00
Steve Pulec
69d86cbd54
Merge pull request #2300 from acsbendi/master
Basic IAM authentication, authorization
2019-07-28 17:22:52 -05:00
acsbendi
9edab5b423 Simplified the reset-auth API. 2019-07-28 22:23:33 +02:00
acsbendi
1969338a8a Fixed set_initial_no_auth_action_count not working in server mode. 2019-07-27 00:12:28 +02:00
acsbendi
de70d1787c Collected TODOs in the header of the access_control file. 2019-07-26 21:23:15 +02:00
acsbendi
f3f47d44ac Fixed error in python 2 and did some refactoring. 2019-07-26 21:05:04 +02:00
acsbendi
140f4110ac set_initial_no_auth_action_count should restore request_count. 2019-07-26 20:41:40 +02:00
acsbendi
290f8f9fd5 Fixed host header not included in S3 requests sometimes. 2019-07-26 19:50:24 +02:00
Michael van Tellingen
feef7b2b5a Use a dict instead of a list for storing task definition revisions
Before when a task definition revision was de-registered all revisions
after that changed their revision id. This doesn't match the way it is
handled in AWS. Using a hash and manually increment the revision id
solves that.
2019-07-26 12:55:05 +02:00
Jack Danger
348dc54e6a
Supporting tags in KMS (#2332)
The CreateKey API method accepts tags but does not return them.
2019-07-24 19:15:43 -07:00
acsbendi
3e1e273380 Fixed collecting policies from groups. 2019-07-24 21:41:33 +02:00
acsbendi
45a380a807 Fixed host not present in headers for S3 requests. 2019-07-24 21:29:00 +02:00
acsbendi
d428acdb7c Separate SignatureDoesNotMatchError for S3. 2019-07-24 21:01:11 +02:00
acsbendi
d471eb69c0 For EC2 requests, AuthFailure should be raised instead of SignatureDoesNotMatch. 2019-07-24 19:47:39 +02:00
acsbendi
e22e8b5a67 set_initial_no_auth_action_count should also set request_count to 0. 2019-07-24 18:58:50 +02:00
acsbendi
15c872cffc Created decorator for setting INITIAL_NO_AUTH_ACTION_COUNT. 2019-07-24 18:15:31 +02:00
acsbendi
bbf003d335 Set correct HTTP codes for some auth-related errors. 2019-07-24 17:21:33 +02:00
acsbendi
3dd2e3a1b8 Moved INITIAL_NO_AUTH_ACTION_COUNT to settings. 2019-07-24 16:30:48 +02:00
Steve Pulec
5dbdff7ca7
Merge pull request #2330 from spulec/host-parsing
Host parsing
2019-07-23 22:51:45 -05:00
Steve Pulec
40cd8fa11c
Merge pull request #2334 from dkuntz2/unify-ec2-owner-ids
Use the same default Owner ID between EC2 models
2019-07-23 22:44:11 -05:00
Steve Pulec
5abe56fd2b
Merge pull request #2250 from szczeles/s3_delete_objects_boto3
Raising MalformedXML exception when using boto3 client and s3.delete_objects()
2019-07-23 22:41:45 -05:00
Don Kuntz
ce4059f6d9
Use a consistent owner id between EC2 resources
Previously there were a couple models which used different owner ids by
default, which could make tests relying on them fail if someone wasn't
expecting that. This change ensures a uniform owner id between
resources.
2019-07-22 21:50:09 -05:00
Steve Pulec
1fb06e6a08 Cleanup refactor. 2019-07-21 23:03:36 -05:00
Steve Pulec
5de95b026a More refactoring. 2019-07-21 22:30:35 -05:00
Steve Pulec
4dd2b66b04 Refactor backend parsing. 2019-07-21 22:07:58 -05:00
Steve Pulec
e3eb4d1809 Cleanup host parsing. 2019-07-21 21:31:19 -05:00
PND
a2aefc49b4 Fixed update_item of DynamoDB to deal with the list type. 2019-07-22 01:42:20 +09:00
Grégory Bataille
67c8ea0352 fixes #2075 - STS should raise on too long policy for federation token 2019-07-20 08:41:52 +02:00
Steve Pulec
5c34c06d07
Merge pull request #2311 from caguado/fix/2310
Implement get_open_id_token
2019-07-20 00:12:18 -04:00
Steve Pulec
7ec3d43e0c
Merge pull request #2319 from acsbendi/autoscaling-group-from-instance
Implemented creating Auto Scaling group from instance
2019-07-20 00:06:22 -04:00
Steve Pulec
077c667454
Merge pull request #2285 from spulec/move-env-mocking
Move env variable mocking and undo when stopping. CC #2058, #2172.
2019-07-19 23:56:40 -04:00
Steve Pulec
f840a0f6a0
Merge pull request #2321 from sblumin/fix-change-rrsets
added support to UPSERT records that are not simple routing policy such as weighted records
2019-07-19 23:42:29 -04:00
Steve Pulec
0e7895ee46
Merge pull request #2320 from dkuntz2/glue-batch-get-partition
Add glue.batch_get_partition endpoint
2019-07-19 23:41:41 -04:00
Steve Pulec
73f3641bb2
Merge pull request #2318 from cjongseok/master
Fix 'MaxRecords' type issues by _get_param()
2019-07-19 23:40:57 -04:00
Steve Pulec
e052219161
Merge pull request #2315 from bkovacki/asg_min_max_size_update_desired_capacity_change
Handle change of ASG desired capacity on min and max size update
2019-07-19 23:38:16 -04:00
Steve Pulec
2dabb629f7
Merge pull request #2324 from acsbendi/elbv2-stopped-instance-target
ELBv2 DescribeTargetHealth returns correct response for stopped instance
2019-07-19 23:35:58 -04:00
Steve Pulec
2a981d3d45
Merge pull request #2325 from acsbendi/autoscaling-terminate-instance-in-group
Auto Scaling groups recreate terminated instances
2019-07-19 23:34:42 -04:00
acsbendi
19c9c59367 Implemented Auto Scaling groups recreate terminated instances. 2019-07-19 12:56:27 +02:00
acsbendi
9149852217 Implemented returning correct health for stopped instances. 2019-07-18 16:57:27 +02:00
sblumin
a2ac341e3d added support to UPSERT records that are not simple routing policy 2019-07-17 16:37:47 -07:00
acsbendi
e4374431d6 Fixed instance_id not set to a default value in create_auto_scaling_group. 2019-07-17 21:46:07 +02:00
acsbendi
4834fc41c6 Fixed a linting error. 2019-07-17 21:15:31 +02:00
Don Kuntz
c8d8aa4dd0
Add glue.batch_get_partition endpoint 2019-07-17 14:11:34 -05:00
acsbendi
c8abd43c88 Implemented creating autoscaling group from instance. 2019-07-17 20:58:23 +02:00
Jongseok Choi
5d91ce20fc Fix 'MaxRecords' type issues by _get_param()
It alternates _get_param() with _get_int_param() on parsing the
parameter 'MaxRecords'.
2019-07-18 03:09:53 +09:00
Carlos Aguado
19fef76a5f Fix moto_server handling of unsigned requests
Certain AWS requests are unsigned. Moto in standalone server mode
implements an heuristic to deduce the endpoint and region based on the
X-Amz-Target HTTP header. This commit extends this concept to add
additional endpoints that used unsigned requests at times.
2019-07-17 09:25:14 +10:00
acsbendi
95799b99bc Fixed incorrect authentication error handling in S3. 2019-07-16 16:27:50 +02:00
Berislav Kovacki
1b3157ced0 Handle change of ASG desired capacity on min and max size update
A change in UpdateAutoScalingGroup:
* if a value for MinSize is specified without specifying a value for
DesiredCapacity, and the new MinSize is larger than the current size of
the group, set the group's DesiredCapacity to the new MinSize value
* if a value for MaxSize is specified without specifying a value for
DesiredCapacity, and the new MaxSize is smaller than the current size of
the group, set the group's DesiredCapacity to the new MaxSize value
2019-07-16 09:12:03 +02:00
Steve Pulec
6bc07360a1
Merge pull request #2313 from caguado/fix/2312
Implement assume_role_with_web_identity
2019-07-15 23:08:23 -05:00
Steve Pulec
d1e057ecab
Merge pull request #2309 from caguado/fix/2308
Implement update_user_pool_domain
2019-07-15 22:46:26 -05:00
Carlos Aguado
e54f74776b Implement assume_role_with_web_identity
The AssumeRoleWithWebIdentity is a similar endpoint to STS's AssumeRole
where the authentication element is a JWT id_token from a configured OP.
This commit implements the functionality and relies on the same result
generated for the regular AssumeRole.
2019-07-16 13:27:47 +10:00
Carlos Aguado
7c17fcd21d Implement get_open_id_token
Introduce the CognitoIdentity's GetOpenIDToken endpoint to retrieve a
JWT tuple from Cognito's Identity Pool for a given IdentityId.
2019-07-16 13:20:31 +10:00
Steve Pulec
9acdc59aa4
Merge pull request #2291 from spulec/context-manager-return-mock
Have context manager return mock.
2019-07-15 22:09:19 -05:00
Carlos Aguado
81980850d4 Implement update_user_pool_domain
Introduce the CognitoIDP's UpdateUserPoolDomain to update configuration
options of the associated domain to a Cognito IDP (e.g. ACM certificate).
2019-07-16 13:09:13 +10:00
Steve Pulec
25ab3afc31
Merge pull request #2295 from garrettheel/condition-expr-or-evaluation
dynamodb2: Defer evaluation of the OR RHS in condition expr
2019-07-15 20:46:11 -05:00
Steve Pulec
ef4f7e1ecc
Merge pull request #2307 from efiop/master
moto: s3: support partNumber for head_object
2019-07-15 20:33:21 -05:00
Steve Pulec
67b3d07e5d
Merge pull request #2306 from bkovacki/extend-describe-network-interface-filter
Extend EC2 DescribeNetworkInterface filter support
2019-07-15 20:30:22 -05:00
Steve Pulec
3ad72a9871
Merge pull request #2299 from bkovacki/rds-vpc-security-groups-set-update
Add support for VpcSecurityGroups set/update in RDS
2019-07-15 20:19:36 -05:00
Steve Pulec
3a92d0f016
Merge pull request #2305 from jakzo/fix-id-generation
Fix ID generation
2019-07-15 20:04:22 -05:00
Ruslan Kuprieiev
2c2dff22bc moto: s3: support partNumber for head_object
To support it, we need to keep multipart info in the key itself when
completing multipart upload.

Fixes #2154

Signed-off-by: Ruslan Kuprieiev <ruslan@iterative.ai>
2019-07-15 20:47:29 +03:00
Steve Pulec
86e650ff01 Set version to 1.3.14.dev. 2019-07-14 22:30:09 -05:00
Steve Pulec
cf95313b39 Disable non-prereleases; prep for 1.3.13. 2019-07-14 21:14:20 -05:00
Steve Pulec
57136a5f1b Prep for release 1.3.12 2019-07-14 20:39:57 -05:00
Berislav Kovacki
e67e2deee4 Extend EC2 DescribeNetworkInterface filter support
* add description property to EC2 NetworkInterface
* extend DescribeNetworkInterfaces filter support with description,
subnet-id, private-ip-address attributes
2019-07-15 00:01:37 +02:00
jakzo
9633917aec Fix ID generation 2019-07-14 16:37:54 +00:00
acsbendi
1b8179992e GetUser returns the IAM user who owns the access key in the request. 2019-07-13 15:58:34 +02:00
acsbendi
7db2d0f38c Use abc in a python2-compatible way. 2019-07-13 15:12:21 +02:00
acsbendi
7b096d690f Replaced print with log.debug. 2019-07-13 15:04:41 +02:00
acsbendi
de01adec57 Fixed linting errors. 2019-07-13 14:58:42 +02:00
acsbendi
419fcf2ee9 Merge branch 'master' of https://github.com/spulec/moto into spulec-master 2019-07-13 13:43:19 +02:00
Berislav Kovacki
4ed189c454 Add support for VpcSecurityGroups set/update in RDS 2019-07-13 08:19:23 +02:00
Berislav Kovacki
4fd0b5c710 Add support for OptionGroupName in create_db_instance 2019-07-11 22:43:42 +02:00
Garrett Heel
0093a7992f dynamodb2: Defer evaluation of the OR RHS in condition expr 2019-07-11 08:29:07 -04:00
acsbendi
9d992c9335 Fixed error on single (non-list) Statements. 2019-07-11 14:22:42 +02:00
acsbendi
59f091bdea Default INITIAL_NO_AUTH_ACTION_COUNT should be infinity. 2019-07-11 13:58:57 +02:00
Mariusz Strzelecki
f32db6e64a Raising MalformedXML exception when using boto3 client and s3.delete_objects() 2019-07-11 09:53:23 +02:00
Steve Pulec
108dc6b049 Prep for 1.3.11 2019-07-10 22:18:24 -05:00
Steve Pulec
ab67c1b26e 1.3.10 2019-07-10 22:04:31 -05:00
Steve Pulec
c7147b06b1 Cleanup responses mocking. Closes #1567
This unblocks requests to other websites with requests while Moto
is activated. It also adds a wildcard for AWS services to still
ensure no accidental requests are made for unmocked services
2019-07-10 21:59:25 -05:00
Steve Pulec
b19c201975 Cleanup model ref resetting. 2019-07-10 21:16:11 -05:00
acsbendi
bec0c5a273 Fixed S3 actions not handled properly. 2019-07-10 20:42:23 +02:00
Steve Pulec
308712841c Have context manager return mock. 2019-07-09 20:31:43 -05:00
Steve Pulec
12aa5dddf7
Merge pull request #2289 from spulec/fix-2275
Fix for UpdateExpression with newline. Closes #2275.
2019-07-09 19:58:32 -05:00
Steve Pulec
6a13d54616
Merge pull request #2266 from garrettheel/feat/dynamodb-expressions
Improve DynamoDB condition expression support
2019-07-09 18:22:55 -05:00
Steve Pulec
53f8997d62 Fix for UpdateExpression with newline. Closes #2275. 2019-07-09 18:21:00 -05:00
acsbendi
947e26ce1b Removed unused exception. 2019-07-09 19:46:04 +02:00
acsbendi
1df4e8da2f Fixed bugs in processing policies belonging to assumed roles. 2019-07-09 19:44:23 +02:00
Garrett Heel
ba95c945f9 remove dead code 2019-07-09 09:20:35 -04:00
Steve Pulec
d758952d84
Merge pull request #2287 from bkovacki/add-instance-create-time-to-db-instance
Add InstanceCreateTime to DBInstance
2019-07-08 19:43:07 -05:00
Berislav Kovacki
c51ce76ee9 Add InstanceCreateTime to DBInstance 2019-07-09 02:10:33 +02:00
Steve Pulec
7bb2b9dc8c
Merge pull request #2016 from adriangalera/ses->sns
Enable SES feedback via SNS
2019-07-08 19:00:58 -05:00
Steve Pulec
a9ec1c7ee7
Merge pull request #2082 from markchalloner/mark-alias-target
Fix route53 alias response.
2019-07-08 18:27:22 -05:00
Steve Pulec
841eaf3886
Merge pull request #2286 from acsbendi/assume-role-fix
AssumeRole returns randomly generated credentials.
2019-07-08 18:23:15 -05:00
Steve Pulec
8c61bce1a2
Merge pull request #2276 from aakhan-sep/master
Implement If-Modified-Since in GET Object for S3 Bucket
2019-07-08 18:22:44 -05:00
acsbendi
23957fe940 Implemented finding credentials from already created IAM users and roles. 2019-07-08 19:57:14 +02:00