Commit Graph

1162 Commits

Author SHA1 Message Date
Mike Grima
5d8cd22b01 Fixed S3 lifecycle error message. (#1110)
Fixes #1109
Also added PutBucketTagging support
Also added Bucket CORS support
2017-09-07 11:30:05 -07:00
Toshiya Kawasaki
2f6f42a183 handle short form function in cfn yaml template (#1103) 2017-09-07 11:28:15 -07:00
Toshiya Kawasaki
8f0e2e7954 fix TargetGroupNnotFoundError is not definied correctly (#1099) 2017-09-07 11:25:59 -07:00
Toshiya Kawasaki
ee4ca0c39a Support IAM account alias (#1088) 2017-09-07 11:21:44 -07:00
Toshiya Kawasaki
0c3708a8e7 Support SNS subscription attributes (#1087)
* remove code for local test

* Add SNS set_subscription_attributes and get_subscription_attributes
2017-09-07 11:19:34 -07:00
Daniel Lutsch
1f6b1b8c4a Add list support to filters (#1083)
* initial pass with TODOs

* add list support to get_object_value

* fix group-id filters

* add tests for sg name and id filters
2017-08-25 23:43:29 -07:00
Daniel Lutsch
945b984538 Add private-dns-name filter and fix regional DNS (#1076)
* add private-dns-name to filter_dict_attribute_mapping

* add region_name attribute to Instance and InstanceResponse

* set dns name based on region

* test private-dns-name and network-interface.private-dns-name filters. checking both regional dns formats

* update test_ec2_classic_has_public_ip_address to use correct dns values
2017-08-23 01:39:50 -07:00
Toshiya Kawasaki
2ace59a60e fix bug that remove_rule doesnt remove rule correctly (#1074) 2017-08-21 12:30:03 -07:00
Toshiya Kawasaki
ce7eabd44a Envelope sns message when sending to sqs (#1066)
* envelop message when sendig from sns to sqs

* add test for publishing sns message to sqs

* specify separators options to json.dumps to avoid json bug in python2

* remove unused print

* replace time string for testing server mode
2017-08-21 12:29:34 -07:00
Toshiya Kawasaki
b6cc208534 ELBv2 modify_rule changes listener rule partially (#1073)
* modify_rule changes listener rule partially

* fix syntax

* fix outdated code

* fix outdated code
2017-08-21 12:28:58 -07:00
Jack Danger
bd98996a19 Merge pull request #1065 from kawasakitoshiya/toshitanian/validate_elbv2_target_group_name
validate target group name
2017-08-18 08:46:39 -07:00
Toshiya Kawasaki
775b8a953a add validation for target name 2017-08-19 00:36:12 +09:00
Toshiya Kawasaki
d4c6111c40 raise error when name is more than 32 when creating target group 2017-08-18 23:54:28 +09:00
Toshiya Kawasaki
469cfb7b3e fix bug that Names filter dont work at describe_target_groups 2017-08-18 15:56:53 +09:00
Toshiya Kawasaki
f38212a545 sort keys when dumping dict to json 2017-08-18 10:23:11 +09:00
Toshiya Kawasaki
ccf4cf28b1 escape json string when sending message from sns mock to sqs mock 2017-08-18 10:23:11 +09:00
Jack Danger
de0d201e40 Merge pull request #1056 from aleerizw/fix/get_parameters_invalid
SSM get_parameters should list InvalidParameters
2017-08-16 14:37:29 -07:00
Toshiya Kawasaki
2b10ef8517 dont use base64 for marker at describe_rules 2017-08-17 04:37:42 +09:00
Toshiya Kawasaki
5c0d5e920a rename test_create_listener_rules to test_handle_listener_rules 2017-08-17 04:28:32 +09:00
Toshiya Kawasaki
e07bce003c add set_rule_priorities to elbv2 2017-08-17 03:15:30 +09:00
Toshiya Kawasaki
0aaa624205 Fix respose number of rules of create_rule 2017-08-17 02:29:49 +09:00
Toshiya Kawasaki
9bc6779485 add modify_rules to elbv2 2017-08-17 02:25:39 +09:00
Toshiya Kawasaki
a73fa64043 add describe_rules to elbv2 2017-08-17 01:57:02 +09:00
Toshiya Kawasaki
3ac10945c1 add delete_rule to elbv2 2017-08-17 00:38:05 +09:00
Toshiya Kawasaki
05a2715f4b add create_rule to elbv2 2017-08-17 00:22:00 +09:00
Ali Rizwan
1c96335895 get_parameters should list InvalidParameters
Signed-off-by: Ali Rizwan <ari@hellofresh.com>
2017-08-16 12:49:03 +02:00
Jack Danger
f6fc9c7d54 Merge pull request #1053 from rocky4570/rds-stop-start
Rds stop start
2017-08-14 17:53:32 -07:00
rocky4570fft
592bf868ff remove test for rds snapshot quota exceed as moto_server doesnt support it 2017-08-15 10:34:10 +10:00
Brian Pandola
bca5047202 Implement additional IAM endpoints
- attach_user_policy
- detach_user_policy
- list_attached_user_policies
2017-08-14 13:55:53 -07:00
rocky4570fft
c84e8c86f0 modify to use create_snapshot, add extra tests for certain error conditions 2017-08-15 00:55:09 +10:00
Jack Danger
d22671a756 Merge pull request #1049 from aleerizw/feature/add_ssm_delete_parameters
Added support for SSM delete_parameters
2017-08-13 23:47:03 -07:00
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
rocky4570fft
ed39c2ea4e fix up some issues found in unittests - comment out snapshotting until later 2017-08-14 00:27:15 +10:00
Ali Rizwan
d8b0df2bef Added support for SSM delete_parameters
Signed-off-by: Ali Rizwan <ari@hellofresh.com>
2017-08-11 15:19:36 +02: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
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
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
Waldemar Hummer
24d1562d2f allow non-ascii characters in request URLs 2017-08-05 21:03:50 +10: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
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
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
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
Peter Us
d76559ee7c SNS delete_topic should also delete subscriptions. 2017-07-31 13:37:29 +02:00