Skip to content

Commit

Permalink
Prepare release 4.0.5 (#5487)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers authored Sep 19, 2022
1 parent b9f5eca commit 580e154
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 6 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
Moto Changelog
==============

4.0.5
-----
Docker Digest for 4.0.5: <autopopulateddigest>

General:
* Moto now has a Recorder, to easily record and replay a given set of requests.
See http://docs.getmoto.org/en/latest/docs/configuration/recorder/index.html

Miscellaneous:
* CloudFormation now supports the creation/update/deletion of AWS::EC2::LaunchTemplate
* Glue:start_job_run() now respects the MaxConcurrentRuns-parameter
* S3:get_object() now performs rudimentary BucketPolicy validation
* StateManager now supports `glue::job_run`, managing how long it takes to for a Glue job to become 'SUCCEEDED'


4.0.3
-----
Docker Digest for 4.0.3: <autopopulateddigest>
Expand Down
28 changes: 23 additions & 5 deletions IMPLEMENTATION_COVERAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@

## cloudfront
<details>
<summary>7% implemented</summary>
<summary>8% implemented</summary>

- [ ] associate_alias
- [ ] create_cache_policy
Expand Down Expand Up @@ -711,7 +711,7 @@

## cloudtrail
<details>
<summary>55% implemented</summary>
<summary>44% implemented</summary>

- [X] add_tags
- [ ] cancel_query
Expand All @@ -721,13 +721,18 @@
- [X] delete_trail
- [ ] describe_query
- [X] describe_trails
- [ ] get_channel
- [ ] get_event_data_store
- [X] get_event_selectors
- [ ] get_import
- [X] get_insight_selectors
- [ ] get_query_results
- [X] get_trail
- [X] get_trail_status
- [ ] list_channels
- [ ] list_event_data_stores
- [ ] list_import_failures
- [ ] list_imports
- [ ] list_public_keys
- [ ] list_queries
- [X] list_tags
Expand All @@ -737,8 +742,10 @@
- [X] put_insight_selectors
- [X] remove_tags
- [ ] restore_event_data_store
- [ ] start_import
- [X] start_logging
- [ ] start_query
- [ ] stop_import
- [X] stop_logging
- [ ] update_event_data_store
- [X] update_trail
Expand Down Expand Up @@ -1575,7 +1582,7 @@

## ec2
<details>
<summary>36% implemented</summary>
<summary>35% implemented</summary>

- [ ] accept_reserved_instances_exchange_quote
- [ ] accept_transit_gateway_multicast_domain_associations
Expand Down Expand Up @@ -1630,6 +1637,8 @@
- [X] create_carrier_gateway
- [ ] create_client_vpn_endpoint
- [ ] create_client_vpn_route
- [ ] create_coip_cidr
- [ ] create_coip_pool
- [X] create_customer_gateway
- [ ] create_default_subnet
- [X] create_default_vpc
Expand All @@ -1649,6 +1658,8 @@
- [X] create_launch_template
- [ ] create_launch_template_version
- [ ] create_local_gateway_route
- [ ] create_local_gateway_route_table
- [ ] create_local_gateway_route_table_virtual_interface_group_association
- [ ] create_local_gateway_route_table_vpc_association
- [X] create_managed_prefix_list
- [X] create_nat_gateway
Expand Down Expand Up @@ -1700,6 +1711,8 @@
- [X] delete_carrier_gateway
- [ ] delete_client_vpn_endpoint
- [ ] delete_client_vpn_route
- [ ] delete_coip_cidr
- [ ] delete_coip_pool
- [X] delete_customer_gateway
- [ ] delete_dhcp_options
- [X] delete_egress_only_internet_gateway
Expand All @@ -1715,6 +1728,8 @@
- [X] delete_launch_template
- [ ] delete_launch_template_versions
- [ ] delete_local_gateway_route
- [ ] delete_local_gateway_route_table
- [ ] delete_local_gateway_route_table_virtual_interface_group_association
- [ ] delete_local_gateway_route_table_vpc_association
- [X] delete_managed_prefix_list
- [X] delete_nat_gateway
Expand Down Expand Up @@ -2016,6 +2031,7 @@
- [ ] modify_ipam_resource_cidr
- [ ] modify_ipam_scope
- [ ] modify_launch_template
- [ ] modify_local_gateway_route
- [X] modify_managed_prefix_list
- [X] modify_network_interface_attribute
- [ ] modify_private_dns_name_options
Expand Down Expand Up @@ -5754,7 +5770,7 @@

## sns
<details>
<summary>55% implemented</summary>
<summary>52% implemented</summary>

- [X] add_permission
- [ ] check_if_phone_number_is_opted_out
Expand All @@ -5767,6 +5783,7 @@
- [X] delete_platform_application
- [ ] delete_sms_sandbox_phone_number
- [X] delete_topic
- [ ] get_data_protection_policy
- [ ] get_endpoint_attributes
- [ ] get_platform_application_attributes
- [ ] get_sms_attributes
Expand All @@ -5785,6 +5802,7 @@
- [ ] opt_in_phone_number
- [X] publish
- [X] publish_batch
- [ ] put_data_protection_policy
- [X] remove_permission
- [X] set_endpoint_attributes
- [ ] set_platform_application_attributes
Expand Down Expand Up @@ -6465,4 +6483,4 @@
- workspaces
- workspaces-web
- xray
</details>
</details>
2 changes: 1 addition & 1 deletion docs/docs/services/cloudfront.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ cloudfront
use-case.


- [ ] create_distribution_with_tags
- [X] create_distribution_with_tags
- [ ] create_field_level_encryption_config
- [ ] create_field_level_encryption_profile
- [ ] create_function
Expand Down
7 changes: 7 additions & 0 deletions docs/docs/services/cloudtrail.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,18 @@ cloudtrail
- [X] delete_trail
- [ ] describe_query
- [X] describe_trails
- [ ] get_channel
- [ ] get_event_data_store
- [X] get_event_selectors
- [ ] get_import
- [X] get_insight_selectors
- [ ] get_query_results
- [X] get_trail
- [X] get_trail_status
- [ ] list_channels
- [ ] list_event_data_stores
- [ ] list_import_failures
- [ ] list_imports
- [ ] list_public_keys
- [ ] list_queries
- [X] list_tags
Expand All @@ -55,8 +60,10 @@ cloudtrail
- [X] put_insight_selectors
- [X] remove_tags
- [ ] restore_event_data_store
- [ ] start_import
- [X] start_logging
- [ ] start_query
- [ ] stop_import
- [X] stop_logging
- [ ] update_event_data_store
- [X] update_trail
Expand Down
9 changes: 9 additions & 0 deletions docs/docs/services/ec2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ ec2
- [X] create_carrier_gateway
- [ ] create_client_vpn_endpoint
- [ ] create_client_vpn_route
- [ ] create_coip_cidr
- [ ] create_coip_pool
- [X] create_customer_gateway
- [ ] create_default_subnet
- [X] create_default_vpc
Expand All @@ -99,6 +101,8 @@ ec2
- [X] create_launch_template
- [ ] create_launch_template_version
- [ ] create_local_gateway_route
- [ ] create_local_gateway_route_table
- [ ] create_local_gateway_route_table_virtual_interface_group_association
- [ ] create_local_gateway_route_table_vpc_association
- [X] create_managed_prefix_list
- [X] create_nat_gateway
Expand Down Expand Up @@ -154,6 +158,8 @@ ec2
- [X] delete_carrier_gateway
- [ ] delete_client_vpn_endpoint
- [ ] delete_client_vpn_route
- [ ] delete_coip_cidr
- [ ] delete_coip_pool
- [X] delete_customer_gateway
- [ ] delete_dhcp_options
- [X] delete_egress_only_internet_gateway
Expand All @@ -169,6 +175,8 @@ ec2
- [X] delete_launch_template
- [ ] delete_launch_template_versions
- [ ] delete_local_gateway_route
- [ ] delete_local_gateway_route_table
- [ ] delete_local_gateway_route_table_virtual_interface_group_association
- [ ] delete_local_gateway_route_table_vpc_association
- [X] delete_managed_prefix_list
- [X] delete_nat_gateway
Expand Down Expand Up @@ -493,6 +501,7 @@ ec2
- [ ] modify_ipam_resource_cidr
- [ ] modify_ipam_scope
- [ ] modify_launch_template
- [ ] modify_local_gateway_route
- [X] modify_managed_prefix_list
- [X] modify_network_interface_attribute
- [ ] modify_private_dns_name_options
Expand Down
2 changes: 2 additions & 0 deletions docs/docs/services/sns.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ sns
- [X] delete_platform_application
- [ ] delete_sms_sandbox_phone_number
- [X] delete_topic
- [ ] get_data_protection_policy
- [ ] get_endpoint_attributes
- [ ] get_platform_application_attributes
- [ ] get_sms_attributes
Expand All @@ -60,6 +61,7 @@ sns
The MessageStructure and MessageDeduplicationId-parameters have not yet been implemented.


- [ ] put_data_protection_policy
- [X] remove_permission
- [X] set_endpoint_attributes
- [ ] set_platform_application_attributes
Expand Down
4 changes: 4 additions & 0 deletions moto/cloudfront/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ def create_distribution(self, distribution_config, tags):
we're not persisting/returning the correct attributes for your
use-case.
"""
# We'll always call dist_with_tags, as the incoming request is the same
return self.create_distribution_with_tags(distribution_config, tags)

def create_distribution_with_tags(self, distribution_config, tags):
dist = Distribution(self.account_id, distribution_config)
caller_reference = dist.distribution_config.caller_reference
existing_dist = self._distribution_with_caller_reference(caller_reference)
Expand Down

0 comments on commit 580e154

Please sign in to comment.