Commit Graph

1885 Commits

Author SHA1 Message Date
Steve Pulec
bdb000b0e2
Merge pull request #1897 from georgealton/feature/add_max_results_and_next_token_to_cognito_lists
Adds limiting/pagination to cognitoidp list_* functions
2018-12-28 19:44:21 -05:00
Steve Pulec
745d46114f
Merge pull request #1887 from mikegrima/instanceprofiles
IAM Improvements
2018-12-28 19:30:20 -05:00
zane
08d17a7a13 adding Tags support 2018-12-21 14:04:52 -08:00
Diego Argueta
1998d59cfc Add more tests to please Coveralls 2018-12-20 11:40:13 -08:00
Diego Argueta
191ad6d778 Make keys pickleable 2018-12-20 11:15:15 -08:00
Alan Alexander
36b0117eec Updating the list of urls the SSM moto will match to include china 2018-12-19 15:02:36 -08:00
Diego Argueta
2cc8784e5c Restore files modified in non-working fix. 2018-12-18 14:53:52 -08:00
Diego Argueta
b0a280bde2 Move S3 storage to SpooledTemporaryFile 2018-12-18 14:20:48 -08:00
Jon Beilke
a744adbcc5 AWS is case-sensitive when using is-public to filter for AMIs and expects lower-case values 2018-12-06 12:18:59 -06:00
Taro Sato
2038fa92be Activate proper pagination for S3 common prefixes 2018-12-05 16:17:28 -08:00
martynaspaulikas
9418a6916d Fix tests and functionality of get_access_key_last_used() 2018-11-27 16:12:41 +00:00
Craig Anderson
96ed66c08d
Add AllowedPattern to SSM describe_parameters response (#1955) 2018-11-27 15:31:56 +00:00
martynaspaulikas
7189d019df Implemented get_access_key_last_used
Written test that still does not work due to:
    ParamValidationError: Parameter validation failed:
    Unknown parameter in input: "UserName", must be one of: AccessKeyId
Refactored update_access_key and delete_access_key functions
2018-11-27 11:28:09 +00:00
grahamlyons
4de92accab
Fix existing tests which use list_stacks
The tests are expecting that deleted stacks are not listed when in
fact they should be.
2018-11-27 11:11:13 +00:00
grahamlyons
2d554cd098
Return the deleted stacks in the list stacks call
This matches the behaviour of the AWS API.
2018-11-26 23:58:41 +00:00
Jon Michaelchuck
009b02bcd5 Raise a client error if PutBucketTags request contains duplicate keys
A PutBucketTags request with duplicate keys will raise a ClientError
with code InvalidTag and message 'Cannot provide multiple Tags with the
same key'.
2018-11-26 15:56:46 -08:00
Ka Wai Wan
df2120f38c Add instance protection support in autoscaling, with tests 2018-11-24 02:32:53 -08:00
Jon Michaelchuck
fb7e52becc Check bucket name length at CreateBucket
Check that s3 bucket names follow the documented length restriction:

'Bucket names must be at least 3 and no more than 63 characters long.'

See https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html
2018-11-22 06:08:03 -06:00
Grégory Bataille
b0eb7b263e test(#1959): us-east-1 located bucket should return a None LocationConstraint 2018-11-20 19:42:51 +01:00
Grégory Bataille
9291ff533a test(#1959): LocationConstraint us-east-1 should be refused 2018-11-20 18:56:56 +01:00
Tatsuya Hoshino
293b25a8f9 Add a missing trailing dot to the Name of ResourceRecordSet
AWS Route53 treats www.example.com (without a trailing dot)
and www.example.com. (with a trailing dot) as identical.
Hence, after creating a `www.example.com` record,
`www.example.com.` name is saved in Route53.
But moto treated `www.example.com` and `www.example.com.` as different.

This commit fixes the moto behavior.
2018-11-20 21:43:59 +09:00
Joe Engel
57fa11136b Add functionalities for SAML Providers 2018-11-19 15:53:02 -08:00
Mark Challoner
6e6f23a1b0
Set deleted status on vpc peer deletion. 2018-11-14 14:48:57 +00:00
Karl Gutwin
2ec32c80f7 Merge in functionality from #1899 2018-11-09 13:21:38 -05:00
Karl Gutwin
770ad1db56 Correct behavior of ReturnValues parameter to put_item and update_item 2018-11-08 16:21:06 -05:00
Karl Gutwin
e7b01292e9 Fix test failures in server mode 2018-11-08 13:57:44 -05:00
Karl Gutwin
9d190aa04e Tweak functionality and add tests 2018-11-08 13:22:24 -05:00
Karl Gutwin
0f6086f708 Finalize implementation of DynamoDB Streams 2018-11-08 10:54:54 -05:00
Karl Gutwin
519899f74f Much of the way towards complete DynamoDB Streams implementation 2018-11-07 17:10:00 -05:00
Karl Gutwin
0b57ffe26a Add StreamSpecification to dynamodb2 package 2018-11-07 15:03:25 -05:00
Tomoya Iwata
e52158f811 Add support for IoT detach_policy 2018-11-06 17:15:30 +09:00
adam davis
b66965e6e8 Adding cloudformation-validate. Cfn-lint does the heavy lifting. 2018-11-05 15:16:32 -08:00
Mike Grima
94b5438d76 Added IAM User signing certificate support 2018-11-05 13:15:44 -08:00
Mike Grima
b4b0ae5077 Some IAM fixes.
- Fixed InstanceProfiles having `Path` set to `None`.
- Added in some dynamic `CreateDate`s.
- Fixed missing Instance Profile ID's being sent over
2018-11-05 09:24:28 -08:00
Pall Valmundsson
e9f8bec91a Fix boto3 IAM test function names 2018-11-01 19:58:09 +00:00
Pall Valmundsson
67cb2e25bb Support IAM Credential Report in boto3
Lowercase XML element names in API responses seem to cause issues for boto3.
2018-11-01 19:51:17 +00:00
Steve Pulec
75f2c56a36 Fix ecs error response to be json. 2018-10-30 22:03:16 -04:00
Tomoya Iwata
3d71a67794 Add some validations for IoT delete operations
fix #1908
2018-10-30 14:51:04 +09:00
Mark Challoner
a0708a70fc
Fix Tags parameter on CloudFormation create_change_set method. 2018-10-29 13:33:30 +00:00
Tomoya Iwata
249dd7059e add test case for IoT attach_policy
do nothing if policy have already attached to certificate
2018-10-28 17:13:17 +09:00
Jamie Starke
090cad8c88 [1009] Converts ECS Instance full arn to instance_id for storage 2018-10-26 21:54:01 -07:00
zane
b485122ec6 refactor to store multiple scrects, use uuid 2018-10-25 15:16:40 -07:00
Tomoya Iwata
80f860727f Add support for IoT attach_policy 2018-10-25 20:44:42 +09:00
George Alton
aa4be6fcad
Adds limiting/pagination to cognitoidp list_* functions 2018-10-24 15:56:20 +01:00
Drew Pearce
544050ab27 added tests for dynamodb not equals 2018-10-23 15:37:28 -04:00
Steve Pulec
71a054af92
Merge pull request #1882 from georgealton/add_keyId_support_to_get_usage_plans
Adds keyId support to apigateway get_usage_plans
2018-10-17 23:50:42 -04:00
George Alton
2d2708cfd7
Missing users now raise a UserNotFoundException
A missing user in a cognito user pool has raises a UserNotFoundException,
not a ResourceNotFoundException. This commit corrects the behaviour so
that the correct exception is raised
2018-10-17 18:39:52 +01:00
George Alton
d919024510
Adds keyId support to apigateway get_usage_plans
apigateway is able to filter the result set, returning only usage plans
with the given keyId.

This commit supports filtering the usage plans returned to the user by
filtering the list of usage plans by checking for usage plan keys
2018-10-17 13:44:00 +01:00
Steve Pulec
2aad36f984
Merge pull request #1880 from garyd203/cognitoidp-user-enabled
Be able to change `enabled` status for cognito-idp users
2018-10-16 23:24:44 -04:00
Gary Donovan
1b42c7bf7a Be able to change enabled status for cognito-idp users 2018-10-17 11:28:24 +11:00
Gary Donovan
ffa7560d02 Implement user-group relationships for cognito-idp 2018-10-17 11:19:33 +11:00
Gary Donovan
04fdd5617a Implement group management for cognito-idp 2018-10-17 11:19:33 +11:00
Mike Grima
8ae1a2b357 Fixes for IAM Groups 2018-10-16 17:14:23 -07:00
Steve Pulec
fb5654a5dc
Merge pull request #1862 from dcosson/cognito_identity_fixes
Fixes for cognito identity library
2018-10-15 01:21:44 -04:00
Steve Pulec
dfc793916d
Merge pull request #1848 from ashb/expand-glue-catalog-mocking
Mock more of the Glue Data Catalog APIs
2018-10-15 01:14:03 -04:00
Steve Pulec
7b9bb15d28
Merge pull request #1756 from ferruvich/add_extra_attributes_in_token_payload
Add extra attributes in token payload
2018-10-15 01:02:07 -04:00
Steve Pulec
87e7c7df48
Merge pull request #1852 from jrbeilke/feature-AbortIncompleteMultipartUpload
Add support for NoncurrentVersionTransition, NoncurrentVersionExpiration, and AbortIncompleteMultipartUpload actions to S3 lifecycle rules
2018-10-15 01:00:03 -04:00
Steve Pulec
6d1491171a
Merge pull request #1727 from ashleygould/organizations_support
Organizations support
2018-10-15 00:58:26 -04:00
Steve Pulec
cb5bf5051b
Merge pull request #1859 from georgealton/master
Fixes #1857 Ensures a UserPool Id starts like {region}_
2018-10-15 00:08:49 -04:00
Steve Pulec
c8a083a066
Merge pull request #1846 from william-richard/log-event-ids-are-strings
Filter event log ids should be strings
2018-10-15 00:05:37 -04:00
Steve Pulec
5568950394
Merge pull request #1856 from jrbeilke/feature-schedule_key_deletion
Add support for disable_key, enable_key, cancel_key_deletion, schedule_key_deletion to KMS
2018-10-15 00:03:26 -04:00
Kosei Kitahara
13c2e69932
Allow extra spaces to attribute_exists and attribute_not_exists too 2018-10-12 16:59:52 +09:00
Kosei Kitahara
2c15d71c2c
Allow spaces to if_not_exists 2018-10-11 18:21:53 +09:00
Danny Cosson
9081a160d3 fixes for cognito identity library 2018-10-09 10:28:15 -07:00
Ashley Gould
7a88e634eb organizations: add exception test for describe_organization endpoint 2018-10-08 15:27:19 -07:00
George Alton
d9577f9d3d
Ensures a UserPool Id starts like {region}_ 2018-10-08 19:04:47 +01:00
Jon Beilke
c1ebec1b35 remove start_time from attrib comparison in test_copy_snapshot() 2018-10-08 10:17:51 -05:00
Jon Beilke
181e9690b8 need os for checking server mode env variable 2018-10-08 08:38:49 -05:00
Jon Beilke
c2595b2eef cant manipulate time in server mode tests 2018-10-08 08:29:21 -05:00
Jon Beilke
76baab74ad missing tzlocal 2018-10-06 01:33:02 -05:00
Jon Beilke
9b25d56a35 need datetime for tests since thats what boto3 returns and add default for PendingWindowInDays 2018-10-06 01:18:26 -05:00
Jon Beilke
59c233f431 avoid needing to import datetime and dealing with timezone vs naive datetimes in tests 2018-10-06 00:33:23 -05:00
Jon Beilke
21c8914efe include pending days input for schedule key deletion and update tests since boto client returns DeletionDate as datetime 2018-10-06 00:13:47 -05:00
Jon Beilke
6277983e3f missed some KeyMetadata and need to transform datetime for testing 2018-10-05 23:48:19 -05:00
Jon Beilke
f596069dab use initial KeyMetadata for identifying keys in KMS tests 2018-10-05 23:35:34 -05:00
Jon Beilke
786b9ca519 need region for kms client 2018-10-05 22:17:48 -05:00
Jon Beilke
a29daf411b fix invalid variables used in kms testing 2018-10-05 21:56:32 -05:00
Jon Beilke
7e96203020 add freezegun and test DeletionDate for chedule_key_deletion 2018-10-05 16:21:16 -05:00
Jon Beilke
60ec840eef add disable_key, enable_key, cancel_key_deletion, and schedule_key_deletion actions to KMS endpoint 2018-10-05 15:55:47 -05:00
Jon Beilke
12e0a38b56 add TODO for testing exceptions with aimu and nve 2018-10-05 11:04:55 -05:00
Ash Berlin-Taylor
5783d66206 Mock more of the Glue Data Catalog APIs
This adds some of the missing Get/Update/Create APIs relating to the
Glue data catalog -- but not yet all of them, and none of the Batch* API
calls.
2018-10-03 15:34:38 +01:00
Jon Beilke
9b5f983cb5 add action validation to set_lifecycle() 2018-10-03 01:11:11 -05:00
Jon Beilke
ea4fcaa82a add support for NoncurrentVersionTransition, NoncurrentVersionExpiration, and AbortIncompleteMultipartUpload actions to s3 lifecycle rules 2018-10-03 00:40:28 -05:00
William Richard
3afb2862c0
Filter event log ids should be strings
Based on the boto docs, eventId should be returned as a string.
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/logs.html#CloudWatchLogs.Client.filter_log_events
2018-10-01 17:11:36 -04:00
Ashley Gould
95700d6631 Merge remote-tracking branch 'spulec/moto/master' into organizations_support 2018-09-28 08:52:22 -07:00
Ashley Gould
05928b1497 [issue #1720] Add support for AWS Organizations
added exception handling in class OrganizationsBackend
2018-09-28 08:34:19 -07:00
Ashley Gould
40e422b74d [issue #1720] Add support for AWS Organizations
ready for pull request
did a little cleanup refactoring
local tests pass
2018-09-28 08:34:19 -07:00
Ashley Gould
01912bdca7 organizations: fix python 2.7 test errors 2018-09-28 08:34:19 -07:00
Ashley Gould
8f400b7110 organizations: add endpoint list_chilren 2018-09-28 08:34:19 -07:00
Ashley Gould
30a9aa33e5 organizations: endpoint list_parents now support account_id param
refactered classes: FakeRoot inherits from FakeOrganizationsUnit
add root_id attribute to class FakeOrganization
dropped 'roots' attribute from class OrganizationaBackend
2018-09-28 08:34:18 -07:00
Ashley Gould
009dcdb21a organizations: and another 2 endpoints:
list_accounts_for_parent
move_account
2018-09-28 08:34:18 -07:00
Ashley Gould
fc2447c6a4 organiziaions: 2 new endpoints:
list_organizational_units_for_parents
list_parents
2018-09-28 08:34:18 -07:00
Ashley Gould
beebb9abc8 organizations: add 2 more endpoints
create_organizational_unit
describe_organizational_unit
2018-09-28 08:34:18 -07:00
Ashley Gould
6c0c6148f1 organizations: add endpoint list_roots 2018-09-28 08:34:18 -07:00
Ashley Gould
c40d2be646 organizations: clean up for flake8 2018-09-28 08:34:18 -07:00
Ashley Gould
edbc57e00d add support for AWS Organizations
endpoints covers so far:
- create_organization
- describe_organization
- create_account
- describe_account
- list_accounts

all tests passing.
could use some advise from maintaners.
2018-09-28 08:34:18 -07:00
Ferruvich
da76ea633b Removed redundand line 2018-09-28 16:31:57 +02:00
Ferruvich
e69d2834e8 Removing failing test in order to check coverage and Travis test 2018-09-28 16:26:03 +02:00
Ferruvich
9adb7c818d Added extra test 2018-09-28 16:26:03 +02:00
Ferruvich
ab8f4dd159 Testing new feature 2018-09-28 16:26:03 +02:00
Steve Pulec
2abbecee71
Merge pull request #1774 from chrisLeeTW/cloudwatch-sequenceToken-hotfix
nextSequenceToken that return by cloudwatch logs putLogEvents should be string, not int.
2018-09-22 17:16:53 -04:00
Steve Pulec
c035348ae4
Merge pull request #1759 from kgutwin/iam_get_policy
Implement IAM get_policy and correct policy version behavior
2018-09-22 16:59:07 -04:00
Steve Pulec
6aa753af6f
Merge pull request #1745 from cm-iwata/fix_upditem_with_emptystring
BugFix dynamodb2 update_item with empty string Fixes#1744
2018-09-22 16:57:10 -04:00
Steve Pulec
1d9c19de44
Merge pull request #1838 from jrbeilke/feature-CopyTagsToSnapshot
Update RDS/RDS2 to support CopyTagsToSnapshot and get tagging working with snapshots
2018-09-22 16:51:33 -04:00
Steve Pulec
0ab07bc482
Merge pull request #1763 from nate/fix/receive_message_wait_time_seconds
Force receive_message_wait_time_seconds to be int
2018-09-22 16:49:24 -04:00
Steve Pulec
6c8963b9a7
Merge pull request #1837 from ogckw/master
Fix #1830 Add support for cross-region VPC peering
2018-09-22 16:42:14 -04:00
Steve Pulec
693c677b87
Merge pull request #1687 from sthuber90/master
Fix ECR and bug fixes
2018-09-22 16:40:33 -04:00
Steve Pulec
ec2b278fc8
Merge pull request #1765 from nate/fix/double-create-queue-with-redrive-policy
Don't error on double create queue with same attrs
2018-09-22 16:36:35 -04:00
Steve Pulec
f071a9cf4f
Merge pull request #1768 from nimbis/ssm-backend-get-command-invocation-upstream
Ssm backend get command invocation upstream
2018-09-22 16:34:37 -04:00
Steve Pulec
7e95698adf
Merge pull request #1777 from madarve/master
ECS: Added schedulingStrategy support
2018-09-22 16:24:56 -04:00
Steve Pulec
2d978aa1c9
Merge pull request #1782 from NeilRoberts/Moto-1781_add_rotate_secret_to_secretsmanager
Issue# 1781 implement secretsmanager.RotateSecret
2018-09-22 16:21:31 -04:00
Steve Pulec
4bb4c96efa
Merge pull request #1821 from Jtupiter/multiple-delete-marker
Fix #1820: Add support for multiple delete markers on an s3 object
2018-09-22 16:16:08 -04:00
Steve Pulec
f3cc02002c
Merge pull request #1751 from Destygo/topic/add_unknown_state_to_elb_unregistered_instances
Add support for unregistered instances in ELB DescribeInstancesHealth.
2018-09-22 16:11:31 -04:00
Steve Pulec
90de7fc0d2
Merge pull request #1789 from bpandola/fix-1778
Add `ClusterCreateTime` to Redshift response
2018-09-22 16:08:38 -04:00
Jon Beilke
7daee905a5 remove merge_taglists as AWS will only take submitted tags or tags from db but not both when creating snapshot 2018-09-21 13:28:13 -05:00
Jon Beilke
6eb490ac78 add support for tags to rds snapshots 2018-09-21 12:03:13 -05:00
Jon Beilke
276da06168 added new merge_taglists() to moto.core.utils for merging lists of tags with precedence (ie. during rds2.create_snapshot) 2018-09-21 10:39:42 -05:00
hans
cedb89dc3b Fix #1830 Add support for cross-region VPC peering
Add a class level store in models/VPCBackend of ec2
for saving vpcs of all regions info. Any instance can correctly find vpc in another region
when connecting vpc of cross-region or vpc of same region.

Modify vpc_peering_connections in ec2/responses to handle
vpc peering of same region or cross region.

Update vpc_peering_connections response
template content to latest (2016-11-15) .

Add vpc cross region peering successful test case.
Add vpc cross region peering fail test case.

Related: https://github.com/spulec/moto/issues/1830

Reference
CreateVpcPeeringConnection Sample Response
https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVpcPeeringConnection.html
2018-09-21 23:29:04 +08:00
Jon Beilke
bf9b37142e no need for [DBSnapshot] with list_tags_for_resource as the retuned snapshot already handles it 2018-09-21 08:49:45 -05:00
Jon Beilke
881afc8f4a update RDS models to include CopyTagsToSnapshot 2018-09-21 08:31:31 -05:00
Stephan Huber
88596518f5 Merge remote-tracking branch 'upstream/master' 2018-09-12 11:48:19 +02:00
Jordan Upiter
756b5d6671 Add support for multiple delete markers on an s3 object 2018-09-11 10:41:01 -04:00
Ollie Ford
28aa5d34b0
Add failing test for #1809 2018-09-05 11:31:47 +01:00
Brian Pandola
c6f5e816cc Add ClusterCreateTime to Redshift response
Fixes #1778
2018-08-20 18:48:13 -07:00
chrisLeeTW
001a7d0278 type of json field - nextSequenceToken that return by cloudwatch logs putLogEvents should be string, not int. 2018-08-17 01:33:50 +08:00
Neil Roberts
6985f27167 Moto-1781: Add unit tests to verify that rotation is enabled.
- Add standalone unit test to verify that rotation is enabled and the
rotation interval is correct.
- Add server test to verify that rotation is enabled and the rotation
interval is correct. Commented out until nested dict error is sorted.
- Fix incorrectly asserted message strings.
2018-08-15 17:11:58 -07:00
Neil Roberts
71ed78141a Moto-1781: Implement server unit tests.
*** Includes 2 commented out tests that generate errors pointing deeper
in the code. ***
2018-08-15 11:32:54 -07:00
Neil Roberts
4ced0ce0db Opportunistic update to unit test for consistency. 2018-08-15 11:22:07 -07:00
Neil Roberts
b2997304b4 Moto-1781: Implement standalone unit tests to cover bad parameters. 2018-08-15 11:20:29 -07:00
Neil Roberts
43277a59b9 Moto-1781: finish implementation of rotate_secret and add happy test.
- Implement RotateSecret to support initial setup of secret rotation.
Moto's implementation of secrets is currently flat and needs to gain
some dimension before full rotation can be simulated.
- Add the happy path unit test.
2018-08-15 11:04:44 -07:00
Neil Roberts
69a78ba7c9 Moto-1781: Create initial stub of rotate_secret and tests. 2018-08-15 10:52:30 -07:00
Neil Roberts
0b0d16e8ec Opportunistic update to unit test for consistency. 2018-08-15 10:33:38 -07:00
Neil Roberts
1f499971d1 Merge branch 'master' into add_describe_secret_to_secretsmanager 2018-08-14 11:01:47 -07:00
Neil Roberts
b2c672a074 Issue 1753: add server test for mismatched secret 2018-08-13 12:53:22 -07:00
Neil Roberts
85d3250b89 Issue 1753: add test for mismatched secret 2018-08-13 12:49:35 -07:00
Manuel Adarve
b75e78a3cd ECS: Added schedulingStrategy support
Co-authored-by: Jonas Gratz <jgratz@newstore.com>
2018-08-13 18:30:05 +02:00
Neil Roberts
1f3256ed40 Issue 1770: Deal with the friendly name properly
- Save friendly name in create_secret.
- Reference the saved friendly name in responses that have "Name" field.
- Verify the received secret_id matches the current value. Don't just
test for an empty string.
- Add test for mismatched secret_id.
2018-08-10 16:40:31 -07:00
Mike Liu
1b1fc4c030 Support getting cloudformation targets for the SSM backend.
SendCommand allows filtering for instances by tags. This adds support
for filtering by a cloud formation stack resource when creating command
invocations.
2018-08-09 10:34:59 -04:00
Nathan Sutton
8393c7f20b Don't error on double create queue with same attrs
Creating a queue a second time with the same attributes should not raise
an error. This change makes it work correctly.
2018-08-08 21:10:13 -05:00
Nathan Sutton
9d1c665310 Force receive_message_wait_time_seconds to be int
When a queue is created with the ReceiveMessageWaitTimeSeconds
attribute the value is never converted to an integer. When the
ReceiveMessage action is called it tries to compare the string
ReceiveMessageWaitTimeSeconds with the min and max wait times which
raises a TypeError.

The solution is to convert this value to an integer before comparing.
2018-08-08 19:14:56 -05:00
Steve Pulec
42d486f9b0
Merge pull request #1750 from TheDooner64/glue-data-catalog
Scaffolding for AWS Glue Data Catalog
2018-08-08 13:25:15 -04:00
Karl Gutwin
5ae5ae0efa Correct deviation in behavior of policy versions from standard API 2018-08-07 17:24:15 -04:00
Karl Gutwin
9e667d6b25 Add get_policy IAM action 2018-08-07 16:59:15 -04:00
Will Bengtson
a420064621 IAM get account authorization details (#1736)
* start of get_account_authorization_details for iam

* add get_account_authorization_details dynamic template

* remove old commented out template

* Fix flake8 problems and add unit test
2018-08-07 10:31:36 -07:00
Neil Roberts
cce3a678aa Implement secretsmanager.DescribeSecret and tests. 2018-08-06 14:40:33 -07:00
Benoît Faucon
5d7a432af2 Tests on Travis: specify region name. 2018-08-06 11:01:33 +02:00
Benoît Faucon
ae2e6fef63 Add support for unregistered instances in ELB DescribeInstancesHealth API. 2018-08-06 10:47:00 +02:00
TheDooner64
d988ee15fe Add create_table, get_table, and get_tables for the Glue Data Catalog 2018-08-05 19:18:11 -04:00
TheDooner64
c5c57efbb5 Creating a database that already exists in the glue data catalog raises an exception 2018-08-05 19:18:11 -04:00
TheDooner64
e67a8c6f1b Revert minor changes to s3 tests 2018-08-05 19:18:11 -04:00
TheDooner64
77f0a61c9f Add scaffolding for Glue service, including create_database and get_database for the Glue Data Catalog 2018-08-05 19:18:11 -04:00
Tomoya Iwata
2fad7c7202 update dynamodb2 update_item
add empty string handle, fix(#1744)
2018-08-02 12:38:50 +09:00
Mike Liu
12807bb6f0 Add get_command_invocation endpoint for AWS SSM.
Users can make send_command requests and then retrieve the invocations
of those commands with get_command_invocation. Getting a command
invocation by instance and command id is supported but only the
'aws:runShellScript' plugin name is supported and only one plugin in a
document is supported.
2018-07-25 14:51:16 -04:00
Gary Donovan
2e5e7e7f5e Fix typo in test name (#1729) 2018-07-24 23:11:04 +01:00
Steve Pulec
a1d095c14b
Merge pull request #1721 from sepulworld/adding_secretsmanager_random_password
Added SecretsManager get_random_password mock
2018-07-19 11:13:24 -04:00
Steve Pulec
cc31f22bb5
Merge pull request #1723 from Comcast/create_policy
Adding account id to ManagedPolicy ARN
2018-07-19 10:55:22 -04:00
Steve Pulec
2c1aa8a63d
Merge pull request #1717 from fewstera/usage-plans
APIGateway: Added API for usage plans and usage plan keys
2018-07-19 10:40:14 -04:00
Steve Pulec
0309d1ec39
Merge pull request #1707 from Whamied/etag-no-quote-patch
Added support for multipart upload completion with unquoted etags
2018-07-19 10:05:07 -04:00
Steve Pulec
4c904e19c1
Merge pull request #1699 from chezclem/ECR-list-images-exception
ECR: list_images should return RepositoryNotFoundException when repository is not found
2018-07-19 09:43:29 -04:00
Steve Pulec
786ec0501e
Merge pull request #1692 from sanjeevsuresh/exception-when-missing-key
BugFix: Exception in ListObjectVersions with a Prefix that Returns an Empty Result Set
2018-07-19 09:41:44 -04:00
Steve Pulec
f3175118d1
Merge pull request #1600 from nimbis/extend-ssm-backend
Extend ssm backend
2018-07-19 08:44:30 -04:00
zane
6c7a22c7d7 Added get_random_password mock with tests 2018-07-18 00:27:53 -07:00
Nathan Mische
ff80ecb56d Adding account id to ManagedPolicy ARN 2018-07-17 13:31:18 -04:00
Zane Williamson
ba1ceee95f Adding create_secret, exception handle, fix (#1680) 2018-07-14 08:39:19 +01:00
Aidan Fewster
9bd6f0a725
APIGateway: Added usage plan keys API 2018-07-13 15:16:25 +01:00
Aidan Fewster
43e430560c
APIGateway: Added API for usage plans 2018-07-13 15:10:30 +01:00
Aidan Fewster
c20e8568e0 APIGateway - Generate API key value when no value provided (#1713) 2018-07-13 12:53:00 +01:00
temyers
c3b690114c Add support for CloudFormation Fn::GetAtt to KMS Key (#1681) 2018-07-13 11:40:54 +01:00
Nate Peterson
dcdaca8984 parameters return from root path (#1701) 2018-07-13 10:24:11 +01:00
Michael Bell
51db19067c Allow attributes to be set with subscribe command (#1705) 2018-07-13 10:21:33 +01:00
Gary Donovan
802402bdba Tweak comparison to treat NULL/NOT_NULL correctly. (#1709)
The AWS documentation says that a ComparisonOperator of NULL means
the attribute should not exist, whereas NOT_NULL means that the
attribute should exist. It explicitly says that an attribute with a
value of NULL is considered to exist, which contradicts our previous
implementation. This affects both put_item and get_item in dynamodb2.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Condition.html
2018-07-13 10:11:10 +01:00
Henadzi Tsaryk
46dd351965 Add ApproximateArrivalTimestamp and MillisBehindLatest to Kinesis get_records response (#1715)
* Add ApproximateArrivalTimestamp to Kinesis response

* Add MillisBehindLatest to Kinesis get_records response
2018-07-13 10:06:28 +01:00
Waleed Hamied
f8fdd439ad Added support for multipart upload confirmation with unquoted etags 2018-07-03 15:36:41 -04:00
Stephan Huber
10f96b2ccf next_token (pagination) added for list_thing_types 2018-06-28 12:59:08 +02:00
Stephan Huber
db3593575f list_thing_types and list_things now uses pagination 2018-06-28 10:32:51 +02:00
Clément Huyghebaert
e32a640861 Fix for spulec/moto#1698 - ECR list_images missing RepositoryNotFoundException 2018-06-25 12:34:10 -04:00
Steve Pulec
bb6da93891
Merge pull request #1697 from spulec/ecs-tasks
Improve ECS update_service and describing tasks.
2018-06-24 20:39:16 -04:00
Steve Pulec
7c1fd0a2f1 Fix ECS update_service and describing tasks. 2018-06-24 20:13:39 -04:00
Sanjeev Suresh
2ebd5f7359 tests for prefixes that return empty result sets 2018-06-22 11:59:01 -07:00
Stephan Huber
ea3366be35 do not allow None as value of image_tags 2018-06-14 09:53:11 +02:00
Stephan Huber
cc799b55da fixed spulec/moto#1684 and fixed spulec/moto#1685 2018-06-14 09:07:09 +02:00
Stephan Huber
6d12c83b89 Merge remote-tracking branch 'upstream/master' 2018-06-14 08:45:23 +02:00
Stephan Huber
3a355f126c first steps undertaken to fix spulec/moto#1684 and spulec/moto#1685 2018-06-13 16:14:18 +02:00
Steve Pulec
38a4558925
Merge pull request #1677 from sepulworld/adding_secretmanager_support
[WIP] Adding secretmanager support
2018-06-10 20:57:49 -04:00
zane
b1a8ae8299 Updating tests 2018-06-09 23:42:33 -07:00
zane
8ee7a9495d UPdate 2018-06-09 22:08:10 -07:00
Steve Pulec
0dfe55fde9
Merge pull request #1675 from william-richard/dynamodb-index-query-bug-fix
Make dynamodb table indexes a list
2018-06-08 18:46:41 -04:00
Steve Pulec
15bc8f5f95
Merge pull request #1563 from william-richard/target-group-cloudformation-name
Correctly generate resource name for target groups when using cloudformation
2018-06-08 18:29:20 -04:00
Steve Pulec
9fd933cc4c
Merge pull request #1671 from sthuber90/master
Fixes #1670
2018-06-08 18:10:36 -04:00
Steve Pulec
85be08de79
Merge pull request #1669 from fferrara/NEW-ecs-service-load-balancer
Extend support for ECS
2018-06-08 18:08:13 -04:00
Steve Pulec
db4c84c680
Merge pull request #1667 from iainb/enforce-message-size
SNS - Enforce 'Message too long' exception when publishing messages
2018-06-08 17:59:10 -04:00
Steve Pulec
b26d233820
Merge pull request #1565 from spulec/fix-1522
Fix security group rules for single rule case. Closes #1522.
2018-06-08 17:58:30 -04:00
zane
c4abd98ed3 Adding server test for get_secret_value 2018-06-07 22:53:34 -07:00
zane
6e893ff055 Adding response, urls and test 2018-06-07 22:31:44 -07:00
Alec Rajeev
6c10dc0403 Fix Storage Class error handling (#1653)
Added check for valid storage classes in set_key and copy_key
added unit test for standard storage and infrequent access
2018-06-07 08:09:36 +01:00
William Richard
014fbbb8cb
Added a test that queries an index when created via the table resource update
When you create an index via the table resource update, in python 3.6, it is saved as a `dict_value`,
which causes an error - this test replicates this bug
2018-06-06 12:51:51 -04:00
William Richard
25b5f03ea4
These tests do not use pytest 2018-06-06 12:09:09 -04:00
William Richard
eb018c01a5
Handle edge case where you can end up with double dashes in target group names 2018-06-06 11:57:42 -04:00
William Richard
81381cd035
Correctly generate resource name for target groups when using cloudformation
They need to have less than 32 character names, so when you don't specify a name
cloudformation generates a name that is less than 32 characters.

And make sure that flake8 passes
2018-06-06 11:07:14 -04:00
Flavio Ferrara
5298b221b5 Add support for creating ECS services with Load Balancer 2018-06-06 09:50:03 +01:00