Commit Graph

3666 Commits

Author SHA1 Message Date
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
2fec1be1a2
Merge pull request #2160 from copland/fix-role-arn-slash
Add test to verify create_role path defaults to /
2019-04-22 09:58:41 -07:00
Chris Opland
dd898add4d Add test verifying create_role path defaults to / 2019-04-21 18:29:36 -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
Mike Grima
27b525123f
Merge pull request #2153 from TBurnip/master
A fix for tags not mimicking AWS
2019-04-18 12:28:31 -07:00
TBurnip
fcc83318fc Merge branch 'master' of https://github.com/spulec/moto 2019-04-18 20:05:22 +01:00
Chris Kilding
8f21272e57 Use pytz instead of timezone 2019-04-18 17:27:13 +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
Mike Grima
7305630062
Merge pull request #2147 from olleolleolle/patch-1
README: Use SVG badges for readability
2019-04-17 10:57:13 -07:00
Mike Grima
41eb29cc6c
Merge pull request #2152 from danpalmer/patch-1
Security: CVE-2019-10906
2019-04-17 10:56:58 -07:00
Mike Grima
549f6d5d34
Merge pull request #2158 from santoshankr/master
[iam] create_policy_version: Fix version id calculation
2019-04-17 10:55:04 -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
TBurnip
c7b0905c23 A fix for tags not mimicking AWS 2019-04-15 12:40:04 +01:00
Dan Palmer
e28bcf20ea
Bump Jinja2 to >=2.10.1, addresses CVE-2019-10906
Given how moto is intended to be used, and how it uses Jinja2, [CVE-2019-10906](https://nvd.nist.gov/vuln/detail/CVE-2019-10906) is unlikely to affect many users, but we should use a secure version anyway just in case moto is being used in unforeseen ways.
2019-04-15 10:48:55 +01:00
Olle Jonsson
eff4cdfbee
README: Use SVG badges for readability 2019-04-07 13:34:26 +02: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
52ad71879d modified test code for python2.7 2019-03-29 15:52:47 +09:00
Tomoya Iwata
7e28fa7bfe Merge branch 'master' into fix_lambda_publish_version 2019-03-29 09:52:47 +09:00
Mike Grima
62da0839ae
Merge pull request #2078 from kyledecot/kd-describe-clusters
Returns an empty list when the cluster does not exist
2019-03-28 16:23:17 -07: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
78d7d67751
Merge pull request #2127 from mikegrima/testfixes
Fixing broken tests #2126
2019-03-28 11:42:09 -07:00
Mike Grima
921b5a3227 Fixing broken tests #2126
- KMS
- S3
- CloudFormation (Thanks kgutwin!)
2019-03-28 10:09:03 -07:00
Hugo Lopes Tavares
7c62f4a75c Add test to CloudFormation and PrimaryPrivateIpAddress GetAtt
This test would raise an error before d4e39146b7
2019-03-27 16:28:18 -04: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