Commit Graph

2274 Commits

Author SHA1 Message Date
David Cuthbert
672604d3e7 Add support for iam:DetachRolePolicy and iam:DeleteRolePolicy. (#1052)
* Add support for iam:DetachRolePolicy and iam:DeleteRolePolicy.

* Raise proper exceptions for iam:DetachRolePolicy and iam:DeleteRolePolicy when the policy doesn't exist.
2017-08-13 21:58:11 -07:00
Steve Pulec
9ebcaf561e Merge pull request #1046 from spulec/feature/add-proper-errors-to-ecr-calls
Add proper errors to ECR calls
2017-08-10 21:40:55 -04:00
Alexander Mohr
2447725e98 fix list-object-versions with prefix (#1045)
fix list-object-versions with prefix
2017-08-10 17:14:31 -07:00
Hugo Lopes Tavares
973264d940 Convert struct argument to bytestring to avoid errors with Python 2.7.6 2017-08-10 19:59:46 -04:00
Hugo Lopes Tavares
e4da4f6cd5 Add more error handling to the ECR backend
The error messages were copied from `botocore`.
New exceptions: RepositoryNotFoundException & ImageNotFoundException.
2017-08-10 19:54:10 -04:00
Jack Danger
c9e392a5fe Merge pull request #1039 from bpandola/redshift-updates
Redshift Updates
2017-08-09 19:45:14 -07:00
Brian Pandola
0a03a7237e Redshift Updates
- Implement create_cluster_snapshot endpoint
- Implement describe_cluster_snapshots endpoint
- Implement delete_cluster_snapshot endpoint
- Implement restore_from_cluster_snapshot endpoint
- Implement limited support for describe_tags endpoint
- Correctly serialize errors to json (for boto) or xml (for boto3)
- Simulate cluster spin up by returning initial status as 'creating' and subsequent statuses as 'available'
- Fix issue with modify_cluster endpoint where cluster values get set to None when omitted from request
- Add 'Endpoint' key to describe_clusters response syntax
2017-08-09 18:43:21 -07:00
Jack Danger
efc0a71d96 Merge pull request #1037 from ygrosu/doc_update_for_boto2
updating documentation to describe support for boto2
2017-08-09 14:00:52 -07:00
ygrosu
5ed546d59c updating documentation to describe support for boto2 2017-08-09 10:56:15 +03:00
Jack Danger
38dfcca269 Merge pull request #1035 from whummer/fix/py2-s3-names-unicode
Allow non-ascii characters in request URLs
2017-08-05 21:07:33 -07:00
Waldemar Hummer
24d1562d2f allow non-ascii characters in request URLs 2017-08-05 21:03:50 +10:00
Jack Danger
ac99ece5ca Merge pull request #1034 from whummer/fix/receive-queue-name-with-dot
Fix receiving of messages from queues with a dot character in their name
2017-08-05 00:39:22 -07:00
Waldemar Hummer
ce2f3e6e2b fix receiving of messages from queues with a dot character in their name 2017-08-05 15:47:40 +10:00
Jack Danger
61a778bb17 Merge pull request #1032 from andrewhillcode/fix-swf-name-in-docs
Fix SWF name in docs
2017-08-03 23:07:04 -07:00
Andrew Hill
0bceaabc40 Fix SWF name in docs 2017-08-04 11:57:48 +10:00
Jack Danger
95e3cbe2b2 Merge pull request #1031 from JackDanger/elbv2-target-group-attributes
Implementing ELBV2 target group attributes
2017-08-02 16:03:59 -07:00
Jack Danger
7cff406778 fixing case of comments 2017-08-02 15:58:32 -07:00
Jack Danger
543e5fb077 Implementing ELBV2 target group attributes 2017-08-02 15:57:15 -07:00
Jack Danger
b061ac4d28 Merge pull request #1019 from JackDanger/elbv2
Implemented core endpoints of ELBv2
2017-08-02 13:54:20 -07:00
Jack Danger
1dcddf3a7e Merge pull request #1030 from JackDanger/boto3-redshift
Allow boto3 redshift cluster subnet group creation
2017-08-02 13:42:09 -07:00
Jack Danger
161a187ee5 updating explanation of boto client usage 2017-08-02 13:41:39 -07:00
Jack Danger
08a932f5f1 handling AWSPreparedRequest instances in dispatch 2017-08-02 13:41:39 -07:00
Jack Danger
2f05f6c9ea Adding version string to server tests 2017-08-02 13:41:39 -07:00
Jack Danger
8188fea0ce This is required for the server test to work 2017-08-02 13:41:38 -07:00
Jack Danger
d56c30932f this is handled in moto/elb/urls.py 2017-08-02 13:41:38 -07:00
Jack Danger
ce392fab79 Properly dispatch by api version in server mode
I'm not happy with this solution. Please think of a fix if you're reading this.
2017-08-02 13:41:38 -07:00
Jack Danger
5cd1e2450d adding elbv2 backend 2017-08-02 13:41:38 -07:00
Jack Danger
ee6d253700 updating reference in server test 2017-08-02 13:41:38 -07:00
Jack Danger
04e623ea14 Implemented core endpoints of ELBv2 2017-08-02 13:41:38 -07:00
Jack Danger
5011cd28b6 Allow boto3 redshift cluster subnet group creation
Boto3 deviates from the AWS docs in the way subnets are described when
creating a Redshift cluster subnet group.

This entry in botocore nests the SubnetIds under SubnetIdentifier tags:
https://github.com/boto/botocore/blob/develop/botocore/data/redshift/2012-12-01/service-2.json#L5423-L5429
referenced here:
https://github.com/boto/botocore/blob/develop/botocore/data/redshift/2012-12-01/service-2.json#L2296

And the AWS docs do not nest them that way:
https://docs.aws.amazon.com/redshift/latest/APIReference/API_CreateClusterSubnetGroup.html

Fixes #1029
2017-08-02 11:48:12 -07:00
Jack Danger
2b76d07558 Merge pull request #1027 from iCHEF/fix_sns_should_send_json_http_message
Send JSON message to HTTP endpoint of SNS
2017-07-31 12:45:17 -07:00
Jack Danger
fc8c4c67b2 Merge pull request #1028 from ptrus/sns-delete-subscriptions
SNS delete_topic should also delete subscriptions.
2017-07-31 11:44:20 -07:00
Peter Us
d76559ee7c SNS delete_topic should also delete subscriptions. 2017-07-31 13:37:29 +02:00
sodastsai
92eedcf291 Send JSON message to HTTP endpoint of SNS
By the documentation from AWS -
http://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.html ,
SNS would send messages to HTTP/HTTPS endpoint in JSON format. But
current implementation of `moto` sends messages in form-data format.
2017-07-30 20:44:06 +08:00
Jack Danger
2564953ce7 Merge pull request #1021 from JackDanger/implement-get-update-login-profiles
Implement IAM {update,get}_login_profile
2017-07-27 14:36:12 -07:00
Jack Danger
e445c81e83 Implement IAM {update,get}_login_profile 2017-07-27 14:22:25 -07:00
Jack Danger
1387013879 Merge pull request #1025 from JackDanger/update-README
Updating examples in README to latest API
2017-07-26 23:04:20 -07:00
Jack Danger
3eef3c23b1 Updating examples in README to latest API 2017-07-26 22:57:55 -07:00
Jack Danger
4028fe1abd Merge pull request #1023 from william-richard/add-ecr-get-authorization-token
Add ecr get_authorization_token response and tests
2017-07-26 11:52:16 -07:00
Jack Danger
c350562c35 Merge pull request #1024 from jpb/ssm-tags
Add add, remove, list endpoints for SSM tags
2017-07-26 11:50:59 -07:00
William Richard
aeefc8056d
Boto actually returns a base64 encoded string of <user>:<password>
Fix the mock to do the same thing
2017-07-26 12:03:20 -04:00
James Brennan
a5089c3d69 Add add, remove, list endpoints for SSM tags 2017-07-26 11:38:12 +00:00
William Richard
025e975e44
Add ecr get_authorization_token response and tests 2017-07-25 17:54:05 -04:00
Jack Danger
57c5c6df26 Merge pull request #1018 from okomestudio/ts/throw-client-error-on-head-bucket
Make HEAD bucket throw ClientError instead of NoSuchBucket on boto3
2017-07-20 15:55:07 -07:00
Taro Sato
e66b6173c9 Merge branch 'master' into ts/throw-client-error-on-head-bucket 2017-07-20 15:40:53 -07:00
Taro Sato
38fa6809c0 Make HEAD bucket throw ClientError instead of NoSuchBucket on boto3 2017-07-20 15:39:45 -07:00
Jack Danger
1e7fcb8bdd Merge pull request #1017 from whummer/feat/cf-models-kinesis
Add CloudFormation model for Kinesis streams
2017-07-20 12:08:51 -07:00
Waldemar Hummer
115b9cee3e add CloudFormation model for Kinesis streams 2017-07-20 14:37:53 +10:00
Jack Danger
074ff68bf1 Merge pull request #1016 from JackDanger/elb-security-groups
Implementing ELB apply_security_groups_to_load_balancer
2017-07-19 17:41:53 -07:00
Jack Danger
7d00f6e92c python 2 support for dict_values 2017-07-19 17:14:20 -07:00