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
Steve Pulec
9346a999d8
Force minimum version of cfn-lint. Closes #2336 .
2019-07-25 21:29:56 -05: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
Mariusz Strzelecki
51d96ae8f3
Test split into boto and boto3 part
2019-07-23 20:53:45 +02:00
Don Kuntz
abf3db8d8a
Add a test to ensure that ec2.copy_image sets the proper owner id
...
This test is useful because before the last commit using copy_image
would not set the owner_id to the same one used when calling
describe_images.
For example, this code
conn = boto3.client("ec2")
copy_resp = conn.copy_image(
SourceImageId="ami-whatever",
...
)
describe_resp = conn.describe_images(
Owners=["self"]
)
Would result in describe_resp being empty, when it should contain the
image from the copy_resp before it.
By ensuring the owner ids are the same (see ce4059f6
) the code example
now works as expected.
2019-07-22 21:57:15 -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
Steve Pulec
d82423788c
Merge pull request #2329 from swen128/bugfix/dynamodb/update-item
...
Fix DynamoDB update_item to deal with list-type attributes
2019-07-21 20:41:45 -05:00
PND
a2aefc49b4
Fixed update_item
of DynamoDB to deal with the list type.
2019-07-22 01:42:20 +09:00
Steve Pulec
63d5af90b4
Merge pull request #2327 from efiop/master
...
tests: multipart: use REDUCED_PART_SIZE and variable part size
2019-07-20 11:04:11 -04:00
Steve Pulec
66a428d093
Merge pull request #2326 from gbataille/2075_sts_policy_length
...
fixes #2075 - STS should raise on too long policy for federation token
2019-07-20 11:03:33 -04:00
Ruslan Kuprieiev
615d427c6d
tests: multipart: use REDUCED_PART_SIZE and variable part size
...
There is no reason to use 5M chunks, especially with the reduced_part_size
decorator. Also made part_size to be variable to add extra layer of
testing to make sure that moto is handling that scenario correctly.
Signed-off-by: Ruslan Kuprieiev <ruslan@iterative.ai>
2019-07-20 16:26:24 +03: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
201d9fb491
Created test for terminating instance in an Auto Scaling group.
2019-07-18 20:30:07 +02:00
acsbendi
9149852217
Implemented returning correct health for stopped instances.
2019-07-18 16:57:27 +02:00
acsbendi
44e93c94e8
Created test for describing health of a stopped instance target.
2019-07-18 16:25:41 +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
acsbendi
4ca0bd807f
Created tests for calling CreateAutoScalingGroup with an instance id.
2019-07-17 20:15:59 +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