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
23957fe940
Implemented finding credentials from already created IAM users and roles.
2019-07-08 19:57:14 +02:00
Steve Pulec
8b2ddb7579
Merge pull request #2156 from william-richard/set-lambda-function-physical-resource-id
...
Set lambda function physical resource id
2019-07-08 10:32:55 -05:00
Bendegúz Ács
4ccf48e46b
Merge pull request #8 from acsbendi/assume-role-fix
...
AssumeRole returns randomly generated credentials.
2019-07-08 17:06:08 +02:00
acsbendi
ab0d23a0ba
AssumeRole returns randomly generated credentials.
2019-07-08 16:32:25 +02:00
acsbendi
e64d1c1790
Merged upstream master
2019-07-08 13:40:19 +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
d7af2870f8
Merge pull request #2243 from hjarrell/master
...
Add CreateDate to iam list_groups_for_user.
2019-07-07 23:02:29 -05:00
Steve Pulec
8d06e6e93d
Merge branch 'master' into set-lambda-function-physical-resource-id
2019-07-07 23:00:26 -05:00
Steve Pulec
79cd1e609c
Move env variable mocking and undo when stopping. CC #2058 , #2172 .
2019-07-07 22:32:46 -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
af0205b6a3
Fix wrong tag for cloudwatch metrics response. Closes #2267 .
2019-07-06 17:40:36 -05: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
Bendegúz Ács
a516d46790
Merge pull request #5 from acsbendi/describe-instance-attribute-fix
...
Describe instance attribute fix
2019-07-05 17:12:41 +02:00
Bendegúz Ács
5594195e28
Merge branch 'master' into create-access-key-fix
2019-07-05 17:11:55 +02:00
Bendegúz Ács
b0aab6fb15
Fixed a linting error.
2019-07-05 15:32:22 +02: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
9e6152588a
Fixed attributes missing from Instance.
2019-07-05 14:31:46 +02:00
acsbendi
9623e8a10c
Implemented raising error if the attribute is invalid.
2019-07-05 14:09:58 +02:00
acsbendi
48f0c6f194
Fixed format of access key ID and secret access key.
2019-07-04 20:20:08 +02:00
acsbendi
9382c40c37
Return CreateDate in CreateAccessKey response.
2019-07-04 20:13:38 +02:00
Bendegúz Ács
9684e1b638
Abstract methods raise NotImplementedError
2019-07-04 17:18:12 +02:00
acsbendi
8de3bdcf29
Fixed printing IAM request class' name.
2019-07-04 16:48:44 +02:00
acsbendi
86758182a7
Removed print.
2019-07-04 16:42:11 +02:00
acsbendi
5dbec8aee5
Implemented checking if S3 action is permitted.
2019-07-04 16:38:53 +02:00
Jack Danger
f6dd3ab959
not requiring the provisioned throughput key ( #2278 )
2019-07-04 03:13:25 -07: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
7ec8f85438
Implemented recognizing asterisks in Actions in policy statements.
2019-07-02 19:24:45 +02:00
acsbendi
6061d5d521
Introduced environment variable to delay the start of authorization.
2019-07-02 18:03:00 +02:00
acsbendi
fbd0749854
Implemented authentication for services except for S3.
2019-07-02 17:40:08 +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
8a5ccf7dee
Merge pull request #2251 from acsbendi/random_suffix_fix
...
Fixed random_suffix()
2019-07-01 21:03:36 -05:00
Steve Pulec
29c3bc30d6
Merge pull request #2262 from abruehl/cf_limit_implicit_nlb_names_to_32_char
...
ELBv2 LBs names must be 32 char or shorter
2019-07-01 21:01:57 -05:00
Steve Pulec
172e089854
Merge branch 'master' into policy-version-fixes
2019-07-01 20:58:38 -05:00
Steve Pulec
7f21074991
Merge pull request #2269 from acsbendi/policy-validation
...
IAM policy document validation
2019-07-01 20:56:52 -05:00
acsbendi
e9dfa890f4
Fixed linting errors.
2019-07-01 19:07:22 +02:00
Bendegúz Ács
ca9c1a366e
Merge branch 'master' into policy-validation
2019-07-01 19:02:49 +02:00
acsbendi
37bdc12f4d
Fixed linting errors.
2019-07-01 18:58:31 +02:00
acsbendi
ed2682582f
Policy validation precedes finding policy for create_policy_version.
2019-07-01 18:54:32 +02:00
acsbendi
c46857e3d3
Fixed errors for valid policy documents.
2019-07-01 18:22:31 +02:00
acsbendi
fef22879c5
Implemented legacy validation (parsing).
2019-07-01 17:31:12 +02:00
Steve Pulec
c4da5632ab
Bump version number for next release.
2019-06-30 23:18:14 -05:00
acsbendi
81098e3453
Implemented every validation point except for legacy parsing.
2019-06-30 20:34:01 +02:00
acsbendi
e133344846
Implemented validating action prefixes.
2019-06-30 18:48:27 +02:00
acsbendi
50745fc5c0
Fixed resource exist validation and implemented actions exist validation.
2019-06-30 18:00:16 +02:00
acsbendi
4748c6b073
Enabled validating policies for all operations similar to CreatePolicy.
2019-06-30 17:35:26 +02:00
acsbendi
ef20b47f97
Implemented checking policy documents for syntax errors.
2019-06-30 17:09:55 +02:00
acsbendi
c799b1a122
Fixed being able to create more than 5 policy versions.
2019-06-29 19:01:43 +02:00
acsbendi
6f5948af33
Fixed is_default is not reset on old default version.
2019-06-29 18:55:19 +02:00
acsbendi
ed01ceddc8
Fixed IsDefaultVersion value returned with an uppercase first letter.
2019-06-29 18:29:18 +02:00
IVIURRAY
cd666758f6
one liner
2019-06-27 20:13:36 +01:00
IVIURRAY
4ce0e6bbcb
add extra test for ProjectionExpression using scan with ExpressionAttributes
2019-06-27 19:37:46 +01:00
Garrett Heel
467f669c1e
add test for attr doesn't exist
2019-06-27 11:49:08 -04:00
Matthew Stevens
6303d07bac
Fixing tests
2019-06-26 23:20:55 +01:00
Matthew Stevens
9450328527
Deleting unnecessary dynamodb2 file
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
2712654518
Using Ops for dynamodb expected dicts
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
Adam Bruehl
7cc1afa25f
ELBv2 LBs names must be 32 char or shorter
2019-06-26 11:56:17 -04:00
Bendegúz Ács
e0078a781a
Fixed random_suffix()
2019-06-18 15:27:07 +02:00
Niels Laukens
5f46aa8c50
Reduced readability to please flake8
2019-06-18 11:04:19 +02:00
Niels Laukens
a5d1b22534
Fix CloudFormation usage
2019-06-18 11:04:03 +02: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
Hunter Jarrell
bb44af2ccf
Add CreateDate to iam list_groups_for_user.
...
Add the CreateDate field to the list_groups_for_user to match the
correct AWS response. Fixes #2242
2019-06-14 15:50:37 -04:00
Niels Laukens
9ef69a617a
Route53 get_record_sets: sort names lexicographically
2019-06-14 17:07:59 +02:00
Niels Laukens
a9319fad04
Route53 get_record_sets: filter type after name
...
According to the documentation [1], name should be filtered first,
followed by type.
> If you specify both Name and Type
> The results begin with the first resource record set in the list
> whose name is greater than or equal to Name, and whose type is
> greater than or equal to Type.
[1]: https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListResourceRecordSets.html
2019-06-14 16:15:14 +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
Juan Martinez
ed93821621
Set ECR imagePushedAt to current date and time ( #2229 )
2019-06-06 13:34:10 +01:00
Pall Valmundsson
d25a7ff936
Uniform IAM datetime ISO 8601 handling ( #2169 )
...
`str(datetime.utcnow())` returns a timestamp that's not of the same
format as the AWS SDK uses, in short it's missing the `T` between the
date and the time.
This causes issues for e.g. Terraform and probably other AWS Go SDK
users. There seems to be some differences between endpoints whether they
return milliseconds or not, the AWS API docs were reviewed and the
decision whether to return timestamps with milliseconds or not based on
the example response documented.
As the timstamps are generated for uniqueness rather than being
hardcoded and then directly cast to a UTC (Z) formed timestamp pytz was
removed as timezone correctness is probably not important.
2019-06-02 19:18:50 +01:00
Elliott Butler
9bd15b5a09
Fix route53 alias response.
...
This commit
* includes the work by @elliotmb in #1694 ,
* removes the AliasTarget.DNSName copy into a RecordSet.Value,
* fixes and adds tests.
2019-05-31 10:54:18 +01:00
Juan Martinez
664b27d8e7
Implement ECR batch_delete_image ( #2225 )
...
This implements the endpoint in spulec #2224
2019-05-30 18:16:19 +01:00
Bendegúz Ács
8f53b16b9a
Updates to create_subnet and describe_subnets responses ( #2053 )
...
* Removed Tags field from create_subnet response.
* Added DefaultForAz to create_subnet response.
* Added MapPublicIpOnLaunch to create_subnet response.
* Added OwnerId to create_subnet response.
* Added AssignIpv6AddressOnCreation field for create_subnet and describe_subnet and implemented setting it in modify_subnet_attribute.
* Added SubnetArn to create_subnet response.
* Added AvailabilityZoneId to create_subnet and describe_subnet responses, and error for invalid availability zone.
* Added Ipv6CidrBlockAssociationSet to create_subnet response.
* Added missing fields to describe_subnets response.
* Added myself to list of contributors and marked describe_subnet as implemented.
* Fixed linting errors.
* Fixed blank line containing a tab.
* Fixed accidentally deleted ).
* Fixed broken tests.
2019-05-28 16:33:25 +01:00
A
2386d47fe3
SecretsManager secret value binary support ( #2222 )
2019-05-28 16:32:43 +01:00
Bendegúz Ács
21917c4b93
Bug fix for default network ACL entries ( #2056 )
...
* Fixed a bug where default network ACL entries could not be deleted.
* Implemented throwing error when a network entry with the same rule number and egress value already exists.
* Fixed syntax errors.
* Added socket.timeout to possibly raised exceptions in wait_for for Python 3.
2019-05-26 02:02:14 +01:00
Alexander Mohr
7271fb9391
Fix S3 backend operations with VersionId ( #2055 )
...
* fix s3 issues
* fix merge conflict
* fix and add test cases
2019-05-25 20:19:33 +01:00
Bendegúz Ács
f408709ef9
VPC IPv4 validation ( #2026 )
...
* Implemented throwing invalid subnet range error and fixed breaking tests.
* Implemented throwing invalid CIDR block parameter error for vpcs and subnets.
* Implemented throwing invalid destination CIDR block error.
* IPv6 addresses not accepted, strict checking disabled.
* Implemented throwing invalid subnet conflict error and fixed breaking tests.
* Implemented throwing invalid VPC range error and fixed breaking tests.
* Fixed accidentally removed ).
* Fixed test case trying to create two subnets with the same CIDR range.
2019-05-25 18:35:07 +01:00
Garrett
c739c5331e
Handle UnicodeEncodeError when parsing querystring ( #2170 )
2019-05-25 18:34:47 +01:00
Adam Hodges
71f83d7e4f
Add support for IoT register_certificate ( #1827 )
2019-05-25 18:30:23 +01:00
Jordan Sanders
4cce4defac
Support CustomAmiId in EMR ( #2037 )
2019-05-25 11:19:26 +01:00
Gregory Bataille
d952410965
1987 support transfer acceleration ( #2018 )
...
* chore(): remove executable flag on moto/s3/response.py
* chore(): ignore .eggs temp file
* feat(#1987 ): get bucket acceleration support
* feat(#1987 ): put bucket acceleration support
* feat(#1987 ): suspend undefined bucket is a no-op
* feat(#1987 ): validate accelerate_configuration status
* feat(#1987 ): bucket containing dots do not support acceleration
* doc(#1987 ): update implementation coverage
2019-05-25 11:19:00 +01:00
William Richard
1b91534165
Add support for redirect actions on ELBv2 listeners ( #2029 )
2019-05-25 11:18:39 +01:00
David
868d0107bf
Autoscaling instance azs ( #2030 )
...
* Add instance AZ support in autoscaling
* Resolve py36-py27 format string error in test_autoscaling
2019-05-25 11:18:16 +01:00
Daniel Miranda
fb2a76fd66
ec2: add support for creation and importing of real SSH keys ( #2108 )
...
* ec2: add support for creation and importing of real SSH keys
* setup: lock PyYAML version to avoid incompatibilities
2019-05-25 11:17:52 +01:00
Mark Challoner
d8ff67197b
Add resource-groups. ( #1953 )
2019-05-25 11:10:34 +01:00
Don Kuntz
238d1c7c39
Add glue.delete_table endpoint, for allowing tables to be deleted ( #2112 )
...
* Add glue.delete_table endpoint, for allowing tables to be deleted
* remove extra whitespace
2019-05-25 10:58:41 +01:00
Jeffery Smith
4a99dcddb2
Issue #2141 Adding owner-id to the filter for Snapshot ( #2142 )
...
* Adding owner-id to the filter for Snapshot
2019-05-25 10:34:59 +01:00
Brian Engen
6838d7964f
handles empty string in SNS next token ( #2177 )
2019-05-25 10:24:46 +01:00
Hans
9b12ce6809
Fix #1842 Create cross region VPC peering connection in both region ( #2195 )
...
Add a class level store in models/VPCPeeringConnectionBackend of ec2
for saving vpc peering connection.
Any instance can correctly save VPC peering connection info
on both region when it create vpc peering connection.
Update vpc_peering_connections in ec2/responses to meet new version:
DESCRIBE_VPC_PEERING_CONNECTIONS_RESPONSE,
ACCEPT_VPC_PEERING_CONNECTION_RESPONSE,
Previous code only create one region VPC peering connection but
doesn't create the other region VPC peering connection
when create cross region VPC peering connection.
Tested in real AWS environment at first
and create unit test case according to real AWS environment response.
Add 5 test cases
VPC cross region delete case
VPC cross region accept case
VPC cross region accept wrong region case
VPC cross region reject case
VPC cross region reject wrong region case
Related: #1842 , #1830
2019-05-25 10:21:57 +01:00
Ashley Gould
a3f6d2c110
[ Resolves #2196 ] - endpoints for querying organizations SC policies ( #2197 )
...
adding support for organizations service control policies
* [Resolves #2196 ] - endpoints for querying organizations SC policies
I have added the following mock endpoints to the Organizations service:
- create_policy
- list_policies
- describe_policy
- attach_policy
- list_policies_for_target
- list_targets_for_policy
2019-05-25 10:20:19 +01:00
Koudai Aono
a61124f774
support to create dynamodb resource by cloudformation ( #2219 )
...
* support to create dynamodb resource by cloudformation
2019-05-25 10:16:33 +01:00
Jon Beilke
cb72d1d00e
Feature cloudwatch log retention ( #2199 )
...
* add proper retentionInDays to describe_log_groups response and add support for delete_retention_policy() and put_retention_policy() to log groups
* fix for inline comment formatting
* include check for retentionInDays to verify no retention by default in test_log_group_create
2019-05-25 10:14:23 +01:00
Dan Chan
2a5f7e15a7
Updating redshift.describe_cluster_snapshots to return multiple snapshots for cluster_identifier ( #2216 )
2019-05-23 09:01:47 +01:00
Terry Cain
a6d9cadac3
Change docker library version check ( #2214 )
2019-05-22 22:01:28 +01:00
Ber Zoidberg
1088c421d2
#2212 add support for delete on update_with_attribute_updates ( #2213 )
...
* add support for delete on update_with_attribute_updates
2019-05-22 10:47:02 +01:00
Justin Kieber-King
bbd7fefb37
Feature: Secrets Manager put_secret_value and list_secret_version_ids ( #2116 )
...
* initial work
- adding put_secret_value and list_secret_versions
* Added support for versions in all functions except rotate_secret
* more work
- refactor rotate_secret method
- now, adds a new version of the secret and points default version id to it
- updated implementation coverage readme
- element in list check to fix unit test
- fixed linting errors
- added tests, fixed exception, failing tests still
- secrets_manager/test_server fails when running whole suite,
but not when running that individual test file
* fixed failing test_get_secret_value
* Removed test.py. Fixed condition statement.
* fixed default stages + adding AWSPREVIOUS
* remove old AWSPREVIOUS stages
2019-05-22 10:45:22 +01:00
cm-iwata
8f4c273095
fix #2190 ( #2194 )
...
lambda list_versions_by_function return $LATEST version and published version
2019-05-21 17:49:56 +01:00
sergejs-katusenoks
6628567cbc
Fix base64 deprecated methods in kinesis.utils ( #2209 )
...
* Fix base64 deprecated methods
Using right encode and decode methods according to python version.
* moved imports on top
E402 module level import not at top of file
2019-05-21 17:47:35 +01:00
James Bungard
796dd71c0c
Platform independent KMS timestamp generation ( #2193 )
...
* Platform independent KMS timestamp generation
Fixes #2192
* Switch to moto.core.unix_time
Fixes #2192
2019-05-21 17:46:22 +01:00
cm-iwata
9bf8fd3417
fix #2011 ( #2012 )
...
add support for Scan method using LSI or GSI
2019-05-21 17:45:30 +01:00
Travis Truman
b8ba7980a0
Adding support for specifying a PermissionsBoundary ARN in calls to i… ( #2182 )
...
* Adding support for specifying a PermissionsBoundary ARN in calls to iam.create_role
Closes #2181
* Correcting whitespace error
* Adding support for Role PermissionsBoundary to be returned from
calls to list_roles
* Raise ClientError when a bad permissions boundary ARN is supplied
2019-05-21 17:44:05 +01:00
Craig Anderson
33efe07b43
Hide CloudFormation pararamters with NoEcho. Fixes #2021 ( #2024 )
2019-05-21 00:05:02 +01:00
Alexey Firsov
f13e4e41cd
add implemented kinesis method describe_stream_summary ( #2023 )
2019-05-21 00:02:36 +01:00
Eliot Alter
e504226386
Fix a warning which was missing a space after the preiod. ( #2022 )
2019-05-21 00:01:06 +01:00
Jordan
1de9acb7ad
Add cognito-idp admin_update_user_attributes #2184 ( #2185 )
2019-05-20 23:58:10 +01:00
redspart
1fd71fd45a
Updated delete_cluster() for redshift ( #2186 )
...
* Updated the deprecated decorator to allow the "SkipFinalClusterSnapshot" option that aws supports.
* FIxed logical mistake on the delete_cluster
* Removed an unused exception I put in
2019-05-20 23:56:23 +01:00
Kyle Decot
8cb4db1896
Adds Support for filtering on schedulingStrategy in ECS#list_services ( #2180 )
2019-05-02 19:00:28 +01:00
Mike Grima
1cb208580d
Merge pull request #2027 from ralewis85/fix-request-id
...
Fix sending the Request ID in the response body
2019-04-30 09:34:23 -07:00
shiba24
b822db8d8c
Support create_table with PAY_PER_REQUEST billing mode of DynamoDB
2019-04-30 22:36:25 +09:00
Terry Cain
4a286c4bc2
KMS generate_data_key ( #2071 )
...
* Added KMS.generate_data_key and KMS.generate_date_key_without_plaintext
Increase test coverage to cover Key not found
* Added test for kms.put_key_policy key not found
2019-04-26 20:52:24 +01:00
Mike Grima
603f7c58a2
Merge pull request #2166 from chriskilding/feature/secretsmanager-restoresecret
...
Feature: Secrets Manager restore-secret
2019-04-26 09:50:02 -07:00
Christopher Kilding
55fe629112
Feature: Secrets Manager restore-secret
2019-04-24 10:03:04 +01:00
Steve Pulec
036d6a8698
1.3.8
2019-04-22 19:23:45 -05:00
Steve Pulec
88e1f0fa23
Merge pull request #2015 from corrjo/master
...
#1514 Stackset Support
2019-04-22 19:04:47 -05:00
Mike Grima
734a39b3e4
Merge pull request #2162 from cm-iwata/fix_dynamo_query
...
fix #2161 DyanmoDB query method using GSI with range key
2019-04-19 10:04:04 -07:00
Mike Grima
664dc53cce
Merge pull request #2145 from chriskilding/feature/secretsmanager-deletesecret
...
Feature: Secrets Manager delete-secret
2019-04-19 10:00:01 -07:00
Tomoya Iwata
431269bcd0
fix #2161
...
mock_dynamodb2 query fails when using GSI with range key if target table has record that have no range key attribute
2019-04-19 12:23:06 +09:00
TBurnip
fcc83318fc
Merge branch 'master' of https://github.com/spulec/moto
2019-04-18 20:05:22 +01:00
Chris Kilding
97d31e9aa5
Fix flake8
2019-04-18 16:53:27 +01:00
Chris Kilding
bd8aa341f2
Also throw exception if client tries to RotateSecret on a soft-deleted secret
2019-04-18 16:47:15 +01:00
Chris Kilding
749f4f63e6
Allow soft deletion of secrets
2019-04-18 15:44:48 +01:00
Chris K
fc8cf2d872
Feature: AWS Secrets Manager delete-secret
2019-04-18 10:30:18 +01:00
TBurnip
99a99b7181
Fixed it again i should of seen that as well soz.
2019-04-17 20:31:24 +01:00
Mike Grima
97408552a3
Merge pull request #2033 from r1b/feat/cognitoidp-add-update-identity-provider
...
[cognitoidp] feat: add update_identity_provider
2019-04-17 12:21:45 -07:00
TBurnip
e5bda52425
Updating to meet your requirements
2019-04-17 19:47:21 +01:00
Mike Grima
65525cb611
Merge pull request #2114 from cm-iwata/fix_lambda_publish_version
...
Fix lambda publish_version returns wrong status code
2019-04-17 11:14:03 -07:00
Mike Grima
5d955985b9
Merge pull request #2106 from andytumelty/iam-update-user
...
Add support for iam update_user
2019-04-17 11:13:14 -07:00
Mike Grima
51ef03b03b
Merge pull request #2133 from earlrob/add_keyid_to_kms_encrypt_and_decrypt
...
add KeyId value to kms.responses.encrypt and kms.responses.decrypt
2019-04-17 11:07:00 -07:00
Mike Grima
d8dbc6a49c
Merge pull request #2134 from ogckw/master
...
Fix #2129 EC2 tag should raise ClientError when resource is empty
2019-04-17 11:05:28 -07:00
Mike Grima
53f101774f
Merge pull request #2137 from devoto13/fix-missing-version-id
...
Fixed copy-object from unversioned bucket to versioned bucket
2019-04-17 11:04:15 -07:00
Mike Grima
c7dc09345a
Merge pull request #2143 from chriskilding/feature/secretsmanager-listsecrets
...
Feature: aws secretsmanager list-secrets
2019-04-17 11:03:19 -07:00
Santosh Ananthakrishnan
4f1a1a9d1e
[iam] create_policy_version: Fix version id calculation
...
When creating a new IAM policy version with create_policy_version,
we cannot use the length of the versions list to calculate VersionId.
Keep track of the next version id to use as a non-decreasing counter.
Fixes #2157
2019-04-16 20:15:57 +00:00
William Richard
e01d91b2d6
Set the physical resource ID property for the lambda model
2019-04-15 23:07:14 -04:00
TBurnip
c7b0905c23
A fix for tags not mimicking AWS
2019-04-15 12:40:04 +01:00
Chris K
7fcedcb783
Fix: Ensure the returned next_token is None (avoid client going round in a loop)
2019-04-05 15:59:38 +01:00
Chris K
2d6be24ffc
Fix lint error
2019-04-05 13:54:11 +01:00
Chris K
89e4ab93ee
Implement ListSecrets
2019-04-05 13:33:28 +01:00
Chris K
120874e408
Feature: AWS Secrets Manager list-secrets
2019-04-05 11:00:02 +01:00
Yaroslav Admin
b85d21b8fe
Fixed copy-object from unversioned bucket to versioned bucket
...
The response of the copy-object operation was missing VersionId property
when source bucket is not versioned.
2019-04-02 15:30:01 +02:00
Steve Pulec
66dafc6679
Merge pull request #2130 from spulec/bugfix/network-interface-and-private-ip
...
Add private IP to every NetworkInterface
2019-04-01 15:17:36 -05:00
Steve Pulec
490d1f5330
Merge pull request #2128 from nadlerjessie/feature/ecs-outputs
...
Add get_cfn_attribute support for ECS Cluster and Service
2019-04-01 15:13:20 -05:00
hsuhans
6b7282f93c
Fix #2129 EC2 tag should raise ClientError when resource is empty
...
Raise MissingParameterError exception in models/validate_resource_ids of ec2.
Add ec2 create tag with empty resource test case.
Add ec2 delete tag with empty resource test case.
Related: #2129
Reference
boto3 create_tags
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Client.create_tags
boto3 delete_tags
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Client.delete_tags
Amazon EC2 API Reference Actions CreateTags
https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
Amazon EC2 API Reference Actions DeleteTags
https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeleteTags.html
2019-03-30 23:26:50 +08:00
Earl Robinson
dbdc8925e3
add KeyId value to kms.responses.encrypt and kms.responses.decrypt
2019-03-29 21:07:32 -04:00
Tomoya Iwata
7e28fa7bfe
Merge branch 'master' into fix_lambda_publish_version
2019-03-29 09:52:47 +09:00
Nick Venenga
d181897ec9
Add proper failure response to describe_clusters
2019-03-28 14:50:48 -04:00
Kyle Decot
79e47fd98f
Returns an empty list when the cluster does not exist
2019-03-28 14:50:48 -04:00
Mike Grima
921b5a3227
Fixing broken tests #2126
...
- KMS
- S3
- CloudFormation (Thanks kgutwin!)
2019-03-28 10:09:03 -07:00
Hugo Lopes Tavares
d4e39146b7
Make sure every NetworkInterface has a private IP
...
AWS always assigns a primary IP address to Network Interfaces.
Using a test account (modified the IP):
>>> import boto
>>> vpc = boto.connect_vpc()
>>> eni = vpc.create_network_interface(subnet_id)
>>> eni.private_ip_addresses
[PrivateIPAddress(10.1.2.3, primary=True)]
2019-03-27 16:27:10 -04:00
Jessie Nadler
497965fadc
Return InstanceProfile arn instead of NotImplementedError for get_cfn_attribute
2019-03-26 14:36:31 -04:00
Jessie Nadler
8644b2ff1d
Add get_cfn_attribute support for ECS Cluster and Service
2019-03-25 19:14:05 -04:00
Tomoya Iwata
11ff548d14
fix #2113
...
moto must return Http status code 201 when lambda publish_version has succeeded
2019-03-17 17:54:34 +09:00
Robert Jensen
c7d3e1f8b6
Merge remote-tracking branch 'upstream/master' into feat/cognitoidp-add-update-identity-provider
2019-03-12 17:37:07 -04:00
Andy Tumelty
d53626ad9a
Add support for iam update_user
...
This covers both the NewPath and NewUserName parameters for update_user, but
without regex validation for these values.
2019-03-12 17:23:32 +00:00
Mike Grima
64152f4cda
Merge pull request #2073 from woohooyayaya/master
...
fix creation date in create key response to unix timestamp type
2019-03-11 15:58:19 -07:00
Mike Grima
6ecb840c61
Merge pull request #2100 from gilbsgilbs/non-versioned-bucket-consitency
...
[S3] Support null version ids for buckets with versioning disabled
2019-03-11 14:13:26 -07:00
Mike Grima
53b94606de
Merge pull request #2103 from mikegrima/config
...
Fixed validation bugs in put_configuration_recorder
2019-03-11 13:58:54 -07:00
Mike Grima
87a54b9d81
Merge pull request #2077 from markchalloner/mark-route53-upsert-type
...
Check record type when upserting.
2019-03-11 13:50:37 -07:00
Mike Grima
fe42309534
Merge pull request #2096 from tay-bird/fix-describe-volumes-response-with-no-tags
...
Fix describe volumes response with no tags
2019-03-11 13:44:15 -07:00
Mike Grima
6d67418c41
Fixed validation bugs in put_configuration_recorder
2019-03-11 13:25:36 -07:00
Gilbert Gilb's
dedb53371e
[S3] Support null version ids for buckets with versioning disabled
2019-03-09 10:21:49 +01:00
stephane soulier
92ca7aee12
comply with coding style
2019-03-08 17:03:56 +01:00
stephane soulier
fa3fd729d1
fix bug in Stream init (wrong number of shards)
2019-03-08 16:27:24 +01:00
Tay Frost
7b236c4ded
bugfix ebs volume tag behaviour
...
This commit modifies the response format of the ec2 calls
`create_volume` and `describe_volumes`. Previously, these calls would
always include a `Tags` key in the response, even when a volume has no tags.
Now, the `Tags` key will not be included in the response if the volume
has no tags.
When an EBS volume has no tags, calls to the aws ec2 endpoints `create_volume`
and `describe_volumes` do not include the `Tags` key in the
`response.Volumes[]` object.
However, moto does include the `Tags` key in this case. This discrepancy
in behaviour can result in code passing a moto test but failing in
production.
Sample snippets that trigger this condition:
```
def create_volume_and_then_get_tags_from_response():
client = boto3.client('ec2', region_name='us-east-1')
volume_response = client.create_volume(
Size=10,
AvailabilityZone='us-east-1a'
)
keys = volume_response['Keys']
```
```
def create_volume_and_then_get_tags_from_describe_volumes():
client = boto3.client('ec2', region_name='us-east-1')
volume_response = client.create_volume(
Size=10,
AvailabilityZone='us-east-1a'
)
volume_describe_response = client.describe_volumes()
keys = volume_describe_response['Volumes'][0]['Keys']
```
Both sample snippets will succeed in a moto test, but fail with a
`KeyError` when using the aws api.
2019-03-07 17:31:45 -05:00
Mike Grima
d6022417f5
Forgot to add Config to the __init__.py
.
2019-03-07 12:53:01 -08:00
Mike Grima
7eaf6bf595
Merge pull request #2062 from domtes/fix_copy_key_with_unicode
...
Fixing S3 copy_key error when using unicode.
2019-03-04 11:48:46 -08:00
Mike Grima
9158c1356f
Merge pull request #2091 from whummer/fix/dict-sorted
...
Fix sorting of log groups
2019-03-04 11:04:42 -08:00
Mike Grima
848a4f451e
Merge pull request #2087 from mikegrima/config
...
Basic AWS Config service support.
2019-03-04 11:04:12 -08:00
Domenico Testa
74ff2ccc95
Reformatting to get better coverage results
2019-03-04 09:16:43 +01:00
Mike Grima
bc116ab750
Basic AWS Config service support.
2019-03-02 18:37:20 -08:00
Waldemar Hummer
840045c688
fix sorting of log groups
2019-03-02 18:56:49 -05:00
Mark Challoner
d61ce0584b
Check record type when upserting.
...
Previously this was not checked so an existing record (e.g. with type A) would be overwritten on upsert by a record with the same name but different type (e.g. TXT).
This commit also:
* publicizes the type variable appending the underscore affix (required to maintain compatibility with CloudFormation which sets type as the CF type),
* fixes a wrong assumption in tests that UPSERT applies a change to Type (it creates a distinct record instead),
* Updates ACM model to use serial_number instead of deprecated and remove serial causing Travis failures.
2019-03-01 16:44:50 +00:00
Chih-Hsuan Yen
9992e23e68
Fix compatibility with cryptography 2.6
...
[1] https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst#26---2019-02-27
2019-03-01 19:22:26 +08:00
William Richard
a8384c0416
Fix serial number field
...
https://github.com/spulec/moto/pull/2077/files#diff-5fa8d19b019905e97d955f78d3dd1b99
2019-02-27 15:15:50 -05:00
woohooyayaya
e6e7f235ac
fix creation date in create key response to unix timestamp type
2019-02-25 16:14:24 -08:00
Mike Grima
09855801ba
Merge pull request #2019 from acsbendi/launch_index
...
Correctly returning ami launch index
2019-02-25 12:16:40 -08:00
Mike Grima
3920f0e16b
Merge pull request #2060 from gregsterin/better-support-for-ddb-expressions
...
support a bit more of the dynamoDB ConditionExpression syntax
2019-02-25 10:03:02 -08:00
Berislav Kovacki
7e863b0260
Add attributes parameter support for sns create_topic API
2019-02-21 22:08:46 +01:00
William Rubel
a5208222b4
Fixing list entities for policy
2019-02-18 21:29:09 -06:00
William Rubel
59deb4d6c0
Fixing list entities for policy
2019-02-18 21:25:29 -06:00
William Rubel
e9d8021c86
Fixing list entities for policy
2019-02-18 21:20:29 -06:00
William Rubel
ce7b5ebf54
Fix policy date
2019-02-17 21:37:33 -06:00
William Rubel
63b692356d
Fix policy date
2019-02-17 16:49:54 -06:00
William Rubel
9e9e37eb62
Add test for roles
2019-02-17 15:35:49 -06:00
William Rubel
31258e9e9e
Add test for roles
2019-02-17 15:23:59 -06:00