Commit Graph

4132 Commits

Author SHA1 Message Date
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
Iiro Sulopuisto
8cca33dc42 Test redshift cluster creation time more thoroughly 2019-07-30 14:14:14 +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
Steve Pulec
43e1ae7316
Merge pull request #2337 from labd/fix-ecs-task-definition-revisions
Use a dict instead of a list for storing task definition revisions
2019-07-28 16:56:29 -05:00
acsbendi
9edab5b423 Simplified the reset-auth API. 2019-07-28 22:23:33 +02:00
acsbendi
62b25f9914 Added a few more tests to achieve better coverage. 2019-07-28 22:19:50 +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
eb4a3ea90b Added a section about IAM-like Access Control in README. 2019-07-26 21:46:15 +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
cc843bb8c5 Created tests for IAM auth. 2019-07-26 20:40:15 +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
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