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
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
Steve Pulec
ff5ea29c3d
Merge pull request #2353 from bkovacki/add_new_s3_storage_classes
...
Add S3 support for INTELLIGENT_TIERING, GLACIER and DEEP_ARCHIVE storage
2019-08-05 21:32:21 -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
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