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
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
9ed80f14e8
fix coverage, update IMPLEMENTATION_COVERAGE
2019-03-12 17:52:34 -04: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
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
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
Tay Frost
15b3ede3cc
Add test for case where ebs volume has no tags.
...
This commit adds a test for a case where an EBS 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:25:18 -05: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
bc116ab750
Basic AWS Config service support.
2019-03-02 18:37:20 -08: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
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
William Rubel
e9d8021c86
Fixing list entities for policy
2019-02-18 21:20:29 -06:00
William Rubel
37845e41a6
Trying to improve coverage
2019-02-18 09:44:48 -06:00
William Rubel
c46bc9ae83
Trying to improve coverage
2019-02-18 09:15:07 -06:00
William Rubel
e229d248ad
Trying to improve coverage
2019-02-18 08:52:37 -06:00
William Rubel
8048e39dc0
Fix policy date
2019-02-17 22:32:39 -06:00
William Rubel
ce7b5ebf54
Fix policy date
2019-02-17 21:37:33 -06:00
William Rubel
37a765db8d
Fix policy date
2019-02-17 17:12:27 -06:00
William Rubel
0e73cddf2f
Add test for roles
2019-02-17 16:25:49 -06:00
William Rubel
6e7bd088b3
Add test for roles
2019-02-17 16:04:28 -06:00
William Rubel
31258e9e9e
Add test for roles
2019-02-17 15:23:59 -06:00
William Rubel
37cb5ab4e6
Add test for roles
2019-02-17 14:36:53 -06:00
William Rubel
921a993330
cleaning up files
2019-02-17 14:30:43 -06:00
William Rubel
e35d99ff09
Trying to improve coverage
2019-02-17 09:25:35 -06:00
William Rubel
8ad28f8400
Adding additional tests to increase coverage
2019-02-16 20:53:27 -06:00
William Rubel
5372e6840f
Increasing code coverage
2019-02-16 12:37:46 -06:00
Domenico Testa
6897a118ed
Fixing S3 copy_key error when using unicode.
2019-02-16 16:42:00 +01:00
William Rubel
4c6f08d463
Update kms and lambda to work with terraform
2019-02-16 09:27:23 -06:00
Greg Sterin
f035b9613d
support a bit more of the dynamoDB ConditionExpression syntax
2019-02-14 18:10:01 -08:00
John Corrales
a6f7f06c30
Merge branch 'master' into master
2019-02-11 17:51:18 -08:00
Mike Grima
94672799cf
Fixed a bug in get_account_authorization_details for attached managed policies.
...
Fixed a bug in the XML template for `get_account_authorization_details` where attached managed policies
were empty strings.
2019-02-07 17:32:31 -08:00
Mike Grima
f41c4e756f
Merge pull request #2041 from mikegrima/roletags
...
IAM Role Tagging support
2019-02-06 11:40:59 -08:00
Mike Grima
dfceab9bf0
Some fixes to get_account_authorization_details
2019-02-04 13:44:01 -08:00
Mike Grima
142fc65260
Merge pull request #2014 from garyd203/dynamodb-set-comparison
...
Make EQ conditions on sets work reliably in DynamoDB
2019-02-01 11:49:48 -08:00
Mike Grima
d652755f3b
Merge pull request #2032 from drmorr0/spot_fleet_tag_specifications
...
tag specifications for spot fleet requests
2019-02-01 11:47:36 -08:00
Mike Grima
8d17271ee4
Merge pull request #2028 from acsbendi/network-acl-fixes
...
Network ACL fixes
2019-02-01 11:46:25 -08:00
Mike Grima
1a36c0c377
IAM Role Tagging support
2019-01-31 17:37:26 -08:00
Robert C Jensen
73bd3e1c77
[cognitoidp] feat: add update_identity_provider
2019-01-24 20:39:55 -05:00
David Morrison
b4b63202d9
tag specifications for spot fleet requests
2019-01-24 11:38:07 -08:00
Mark Challoner
337601b5fb
Add CloudFormation methods delete_change_set, describe_change_set and list_change_sets.
2019-01-21 17:18:50 +00:00
acsbendi
68b8e6b636
Implemented adding default entries to default network ACLs.
2019-01-21 15:36:49 +01:00
acsbendi
3c5ce6c09e
Fixed new subnets associated with a network ACL from a different VPC.
2019-01-21 13:30:22 +01:00
Robert Lewis
570b73691b
Add requestid checking for autoscaling
2019-01-20 22:54:05 -08:00
Robert Lewis
acdb1c9768
Add requestid checking for sqs
2019-01-20 22:54:05 -08:00
acsbendi
6bd7e5941f
Added test case for running multiple instances in the same command.
2019-01-15 17:34:22 +01:00
John Corrales
5fb43ee7b6
Operations ( #4 )
...
Added stop, list operation results, and describe operation
2019-01-14 22:01:53 -08:00
John Corrales
4207a8e182
Add stacksets ( #3 )
...
Added most stack set responses
2019-01-10 21:33:15 -08:00
Gary Donovan
0b15bb13b6
Make EQ conditions work reliably in DynamoDB.
...
The AWS API represents a set object as a list of values. Internally
moto also represents a set as a list. This means that when we do value
comparisons, the order of the values can cause a set equality test to
fail.
2019-01-10 21:39:12 +11:00
Steve Pulec
850496f29a
Merge pull request #2005 from fivepapertigers/feature/lambda-env-mapping
...
Lambda Cloudformation Env Variables
2019-01-06 17:22:52 -05:00
Steve Pulec
c2a1f4eb14
Fix S3 bucket location test.
2018-12-29 07:07:29 -05:00
Steve Pulec
1f9ade61c0
Fix iam SAML tests.
2018-12-29 06:47:16 -05:00
Jacob Grismo
4f7d6e15c9
adds failing test case for lambda cfm env vars
...
Adds a failing test case that shows that a Lambda function resource in a CloudFormation template ignores
the Environment variable mapping.
2018-12-28 22:16:07 -05:00
Steve Pulec
97d9d46770
Merge pull request #1999 from dargueta/s3-spooling
...
Don't store S3 entirely in memory
2018-12-28 21:29:19 -05:00
Steve Pulec
e8551988d9
Merge pull request #2000 from AlanAlexander-Janrain/master
...
Updating the list of urls the SSM moto will match to include china
2018-12-28 21:27:45 -05:00
Steve Pulec
d685a9f50a
Merge pull request #1892 from drewpearce/dynamodb-ne
...
Dynamodb ne
2018-12-28 21:23:01 -05:00
Steve Pulec
93f68090e3
Merge pull request #1989 from jrbeilke/bugfix-ec2_ami_is-public
...
Bugfix for filtering EC2 AMIs with is-public (values should be lowercase)
2018-12-28 21:22:28 -05:00
Steve Pulec
dec665be43
Merge pull request #1986 from okomestudio/ts/fix-s3-common-prefix-pagination
...
Activate proper pagination for S3 common prefixes
2018-12-28 21:22:07 -05:00
Steve Pulec
302744242a
Merge pull request #1983 from kawaiwanyelp/autoscaling-instance-protection
...
Add instance protection support in autoscaling, with tests
2018-12-28 21:18:41 -05:00
Steve Pulec
25595815e5
Merge pull request #1972 from surfaslt/implement-get-access-key-last-used
...
Implement get_access_key_last_used
2018-12-28 21:08:13 -05:00
Steve Pulec
5d172d9c97
Merge pull request #1969 from grahamlyons/list-deleted-cloudformation-stacks
...
Return the deleted stacks in the list stacks call
2018-12-28 21:07:06 -05:00
Steve Pulec
e681f55ba1
Merge branch 'master' into bucket-name-length-limit
2018-12-28 21:04:10 -05:00
Steve Pulec
860dfbbe11
Merge pull request #1960 from tatsuyafw/add-trailing-dot-to-resource-record
...
Add a trailing dot to the Name of Route53 ResourceRecordSet
2018-12-28 21:01:35 -05:00
Steve Pulec
65364a8e71
Merge pull request #1961 from gbataille/fix_1959_location_constraint_us_east_1
...
Fix 1959 location constraint us east 1
2018-12-28 21:00:29 -05:00
Steve Pulec
46bf7f0176
Merge branch 'master' into master
2018-12-28 20:57:47 -05:00
Steve Pulec
39c103ec0b
Merge branch 'master' into master
2018-12-28 20:49:24 -05:00
Steve Pulec
f155028d27
Merge pull request #1945 from markchalloner/vpc-peering-delete-fix
...
Set deleted status on vpc peer deletion.
2018-12-28 20:40:51 -05:00
Steve Pulec
8ba1a09c0d
Merge pull request #1921 from adamdavis40208/cloudformation-validate-spike
...
Adding cloudformation-validate. Cfn-lint does the heavy lifting.
2018-12-28 20:39:00 -05:00
Steve Pulec
f82d4bb619
Merge pull request #1938 from kgutwin/i-1937-dynamodb2-update-attributes
...
Correct behavior of ReturnValues parameter to put_item and update_item
2018-12-28 20:36:00 -05:00
Steve Pulec
48ee867245
Merge pull request #1935 from kgutwin/i-1875-dynamodb-streams
...
Support DynamoDB Streams
2018-12-28 20:30:58 -05:00
Steve Pulec
19bdf7de73
Merge pull request #1901 from cm-iwata/add_iot_attach_policy
...
Add support for IoT attach_policy
2018-12-28 20:17:31 -05:00
Steve Pulec
c8a35f0b02
Merge pull request #1920 from pall-valmundsson/iam_credential_report_boto3
...
Support IAM Credential Report in boto3
2018-12-28 20:04:59 -05:00
Steve Pulec
77bf143f80
Merge pull request #1906 from jrstarke/1009
...
Support full ARN in update_container_instance_state calls
2018-12-28 19:57:57 -05:00
Steve Pulec
643c498d01
Merge pull request #1911 from markchalloner/cf-create-change-sets-tags-fix
...
Fix Tags parameter on CloudFormation create_change_set method.
2018-12-28 19:55:36 -05:00
Steve Pulec
a62f15b537
Merge pull request #1730 from garyd203/cognitoidp-groups
...
Implement groups for cognito-idp
2018-12-28 19:53:53 -05:00
Steve Pulec
811197a9bb
Merge pull request #1913 from cm-iwata/add_iot_delete_validation
...
Fix #1908 add some validation for IoT delete operations
2018-12-28 19:52:24 -05:00
Steve Pulec
1244ce53e2
Merge pull request #1898 from sepulworld/zmw/refactor_multiple_secrets
...
Refactor to store multiple scrects, use uuid, tags support
2018-12-28 19:47:49 -05:00
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