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
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