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
4dd2b66b04
Refactor backend parsing.
2019-07-21 22:07:58 -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
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
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
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
201d9fb491
Created test for terminating instance in an Auto Scaling group.
2019-07-18 20:30:07 +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
Don Kuntz
c8d8aa4dd0
Add glue.batch_get_partition endpoint
2019-07-17 14:11:34 -05:00
acsbendi
4ca0bd807f
Created tests for calling CreateAutoScalingGroup with an instance id.
2019-07-17 20:15:59 +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
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
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
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
Mariusz Strzelecki
f32db6e64a
Raising MalformedXML exception when using boto3 client and s3.delete_objects()
2019-07-11 09:53:23 +02:00
Steve Pulec
c2e382f537
Dont test context manager in server mode.
2019-07-10 21:40:49 -05:00
Steve Pulec
b19c201975
Cleanup model ref resetting.
2019-07-10 21:16:11 -05:00
Steve Pulec
308712841c
Have context manager return mock.
2019-07-09 20:31:43 -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
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
ab0d23a0ba
AssumeRole returns randomly generated credentials.
2019-07-08 16:32:25 +02:00
Steve Pulec
414ff930ed
Merge branch 'master' into mark-alias-target
2019-07-07 23:11:53 -05:00
Steve Pulec
ac33845367
Merge pull request #2070 from bkovacki/add-attributes-parameter-for-sns-create_topic-api
...
Add attributes parameter support for sns create_topic API
2019-07-07 23:04:40 -05:00
Steve Pulec
6efd5582d7
Merge pull request #2284 from wndhydrnt/fix-iam-get-role-policy-not-found
...
Raise exception if a role policy is not found
2019-07-07 21:23:44 -05:00
Steve Pulec
4e6eb25512
Merge pull request #2274 from corydolphin/failing-test
...
Adds failing test for socket.socketpair()
2019-07-07 21:18:46 -05:00
wndhydrnt
67326ace4f
Raise exception if a role policy is not found
2019-07-07 21:46:26 +02:00
Steve Pulec
574055da2c
Merge pull request #2245 from vrtdev/bugfix/r53-delete-type
...
Route53 Delete: respect the given Type
2019-07-06 17:29:19 -05:00
Steve Pulec
3bafc89b40
Merge pull request #2268 from acsbendi/policy-version-fixes
...
IAM policy version fixes
2019-07-06 15:52:10 -05:00
Steve Pulec
04f8446a93
Merge pull request #2280 from acsbendi/create-access-key-fix
...
Create access key fix
2019-07-06 15:40:12 -05:00
acsbendi
7de0ef0f8b
Fixed value is present in response even if it's None.
2019-07-05 15:24:16 +02:00
acsbendi
0b88dd1efb
Fixed security group IDs not returned correctly.
2019-07-05 15:12:38 +02:00
acsbendi
7215b00466
Created test case for describe_instance_attribute.
2019-07-05 13:43:47 +02:00
acsbendi
48f0c6f194
Fixed format of access key ID and secret access key.
2019-07-04 20:20:08 +02:00
acsbendi
0bd2c5adb4
Fixed minor errors in test.
2019-07-04 20:12:53 +02:00
acsbendi
ef97e0f28f
Extended create_access_key test.
2019-07-04 20:04:27 +02:00
Cory Dolphin
f11a5dcf6b
Fix socket.fakesock compatibility
2019-07-03 11:26:33 -07:00
Aden Khan
b2adbf1f48
Adding the functionality and test so that the If-Modified-Since header is honored in GET Object
...
Signed-off-by: Aden Khan <aakhan@sep.com>
2019-07-03 14:25:08 -04:00
acsbendi
6ac315b903
Fixed broken tests due to policy validation.
2019-07-02 12:24:19 +02:00
Steve Pulec
75d9707e8e
Merge pull request #2099 from ssoulier/master
...
fix bug in Stream init (wrong number of shards)
2019-07-01 22:27:33 -05:00
Steve Pulec
d46324e7fd
Merge pull request #2241 from vrtdev/bugfix/route53-list-start
...
route53.list_resource_record_sets() with StartRecordName= behaves different from real service
2019-07-01 21:58:16 -05:00
Steve Pulec
c8b94b6e9f
Merge pull request #2265 from IVIURRAY/bugfix/scan-projection
...
ProjectionExpression works with table.scan()
2019-07-01 21:21:53 -05:00
Steve Pulec
3920ff0c9a
Merge pull request #2236 from dkuntz2/glue-endpoints
...
Add glue.delete_partition and glue.batch_delete_partition
2019-07-01 21:16:36 -05:00
Steve Pulec
176799637c
Merge pull request #2247 from queue-tip/ecr-batch-delete-image-fix
...
Delete ECR image when it has no tags
2019-07-01 21:09:52 -05:00
Steve Pulec
172e089854
Merge branch 'master' into policy-version-fixes
2019-07-01 20:58:38 -05:00
acsbendi
1bda3f2213
Added tests for valid policy documents.
2019-07-01 18:21:54 +02:00
acsbendi
85efec29b1
Added more tests.
2019-07-01 17:30:59 +02:00
acsbendi
d2b0812edc
Added more tests.
2019-06-30 20:33:17 +02:00
acsbendi
e133344846
Implemented validating action prefixes.
2019-06-30 18:48:27 +02:00
acsbendi
55f9040296
Fixed old unit tests in test_iam that didn't use valid IAM policies.
2019-06-30 17:57:50 +02:00
acsbendi
99336cbe6a
Reorganized tests using a generator method and fixed error messages.
2019-06-30 17:04:02 +02:00
acsbendi
896f7b6eb2
Added more tests.
2019-06-30 16:36:49 +02:00
acsbendi
a4b850aab9
Added test cases for mutually exclusive elements.
2019-06-30 14:03:18 +02:00
acsbendi
f0e9ea4e72
Created tests for policy documents.
2019-06-30 13:47:17 +02:00
acsbendi
3cd373f1f9
Created failing tests.
2019-06-29 18:15:01 +02:00
IVIURRAY
4ce0e6bbcb
add extra test for ProjectionExpression using scan with ExpressionAttributes
2019-06-27 19:37:46 +01:00
IVIURRAY
949637a14c
remove debug
2019-06-27 19:12:53 +01:00
IVIURRAY
b60097fab2
improve test case
2019-06-27 19:08:32 +01:00
Garrett Heel
467f669c1e
add test for attr doesn't exist
2019-06-27 11:49:08 -04:00
Matthew Stevens
83082df4d9
Adding update_item and attribute_not_exists test
2019-06-26 23:22:07 +01:00
Matthew Stevens
8a90971ba1
Adding test cases for #1587
2019-06-26 23:20:55 +01:00
Matthew Stevens
6fd47f843f
Test case for #1819
2019-06-26 23:20:55 +01:00
Matthew Stevens
57b668c832
Using Ops for dynamodb condition expressions
2019-06-26 23:20:55 +01:00
Matthew Stevens
1a2fc66f84
Adding dynamodb2 expression parser and fixing test cases
2019-06-26 23:20:16 +01:00
IVIURRAY
e50ce7287d
ProjectionExpression works with table.scan()
2019-06-26 21:54:48 +01:00
Juan Martinez
9a26c92e72
Delete ECR image when it has no tags
...
This is a bug fix to my initial work when implementing
batch_delete_image. Deleting the last tag for a given image should
delete the image from the backend.
I also cleaned up the tests previously-added in the initial
implementation.
2019-06-17 13:41:35 -04:00
Niels Laukens
6e97881896
Route53 Delete: respect the given Type
2019-06-17 15:53:32 +02:00
Niels Laukens
9ef69a617a
Route53 get_record_sets: sort names lexicographically
2019-06-14 17:07:59 +02:00
Don Kuntz
df2d2ac6b4
Add endpoints to glue for deleting partitions
...
Specifically add glue.delete_partition and glue.batch_delete_partition.
2019-06-11 14:32:50 -05:00
Don Kuntz
df493ea18d
Add glue.batch_delete_table, and fix glue.batch_create_partition to respond correctly ( #2233 )
...
* Fix glue.batch_create_partition to only respond with Errors if Errors occurred
* Add glue.batch_delete_table endpoint
* Remove unused variable
2019-06-10 20:14:30 +01:00
Bendegúz Ács
ab8a189bbf
Fixed policy version's Document type for AWS managed policies ( #2234 )
...
* Added checking Document's type in AWS managed policy version response.
* Fixed policy version's Document type for AWS managed policies.
2019-06-10 20:00:37 +01:00
Don Kuntz
3833449b36
Add batch_create_partition endpoint to Glue client ( #2232 )
...
* Add batch_create_partition endpoint to Glue client
* Remove exception as e from glue batch_create_partition, because it's unused
2019-06-07 09:28:10 +01:00
Bendegúz Ács
97ab7fd307
Fixes for get_policy and get_policy_version with AWS managed policies ( #2231 )
...
* Created test for get_policy with AWS managed policy.
* Created failing test for get_policy_version with AWS managed policy.
* Updated AWS managed policies.
* Fixed failing tests.
* Fixed trying to compare datetime with string in test case.
* Fixed CreateDate of AWS managed policies overwritten by their version's CreateDate.
* Fixed and improved tests for managed AWS policies.
* Added test for AWS managed policy with v4 default version.
* Fixed not correctly returning dates for AWS managed policies.
2019-06-06 13:36:39 +01:00