Prepare release 4.0.5 (#5487)

This commit is contained in:
Bert Blommers 2022-09-19 22:00:50 +00:00 committed by GitHub
parent b9f5ecacde
commit 580e154ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 61 additions and 6 deletions

View File

@ -1,6 +1,21 @@
Moto Changelog 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 4.0.3
----- -----
Docker Digest for 4.0.3: <autopopulateddigest> Docker Digest for 4.0.3: <autopopulateddigest>

View File

@ -607,7 +607,7 @@
## cloudfront ## cloudfront
<details> <details>
<summary>7% implemented</summary> <summary>8% implemented</summary>
- [ ] associate_alias - [ ] associate_alias
- [ ] create_cache_policy - [ ] create_cache_policy
@ -711,7 +711,7 @@
## cloudtrail ## cloudtrail
<details> <details>
<summary>55% implemented</summary> <summary>44% implemented</summary>
- [X] add_tags - [X] add_tags
- [ ] cancel_query - [ ] cancel_query
@ -721,13 +721,18 @@
- [X] delete_trail - [X] delete_trail
- [ ] describe_query - [ ] describe_query
- [X] describe_trails - [X] describe_trails
- [ ] get_channel
- [ ] get_event_data_store - [ ] get_event_data_store
- [X] get_event_selectors - [X] get_event_selectors
- [ ] get_import
- [X] get_insight_selectors - [X] get_insight_selectors
- [ ] get_query_results - [ ] get_query_results
- [X] get_trail - [X] get_trail
- [X] get_trail_status - [X] get_trail_status
- [ ] list_channels
- [ ] list_event_data_stores - [ ] list_event_data_stores
- [ ] list_import_failures
- [ ] list_imports
- [ ] list_public_keys - [ ] list_public_keys
- [ ] list_queries - [ ] list_queries
- [X] list_tags - [X] list_tags
@ -737,8 +742,10 @@
- [X] put_insight_selectors - [X] put_insight_selectors
- [X] remove_tags - [X] remove_tags
- [ ] restore_event_data_store - [ ] restore_event_data_store
- [ ] start_import
- [X] start_logging - [X] start_logging
- [ ] start_query - [ ] start_query
- [ ] stop_import
- [X] stop_logging - [X] stop_logging
- [ ] update_event_data_store - [ ] update_event_data_store
- [X] update_trail - [X] update_trail
@ -1575,7 +1582,7 @@
## ec2 ## ec2
<details> <details>
<summary>36% implemented</summary> <summary>35% implemented</summary>
- [ ] accept_reserved_instances_exchange_quote - [ ] accept_reserved_instances_exchange_quote
- [ ] accept_transit_gateway_multicast_domain_associations - [ ] accept_transit_gateway_multicast_domain_associations
@ -1630,6 +1637,8 @@
- [X] create_carrier_gateway - [X] create_carrier_gateway
- [ ] create_client_vpn_endpoint - [ ] create_client_vpn_endpoint
- [ ] create_client_vpn_route - [ ] create_client_vpn_route
- [ ] create_coip_cidr
- [ ] create_coip_pool
- [X] create_customer_gateway - [X] create_customer_gateway
- [ ] create_default_subnet - [ ] create_default_subnet
- [X] create_default_vpc - [X] create_default_vpc
@ -1649,6 +1658,8 @@
- [X] create_launch_template - [X] create_launch_template
- [ ] create_launch_template_version - [ ] create_launch_template_version
- [ ] create_local_gateway_route - [ ] 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 - [ ] create_local_gateway_route_table_vpc_association
- [X] create_managed_prefix_list - [X] create_managed_prefix_list
- [X] create_nat_gateway - [X] create_nat_gateway
@ -1700,6 +1711,8 @@
- [X] delete_carrier_gateway - [X] delete_carrier_gateway
- [ ] delete_client_vpn_endpoint - [ ] delete_client_vpn_endpoint
- [ ] delete_client_vpn_route - [ ] delete_client_vpn_route
- [ ] delete_coip_cidr
- [ ] delete_coip_pool
- [X] delete_customer_gateway - [X] delete_customer_gateway
- [ ] delete_dhcp_options - [ ] delete_dhcp_options
- [X] delete_egress_only_internet_gateway - [X] delete_egress_only_internet_gateway
@ -1715,6 +1728,8 @@
- [X] delete_launch_template - [X] delete_launch_template
- [ ] delete_launch_template_versions - [ ] delete_launch_template_versions
- [ ] delete_local_gateway_route - [ ] 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 - [ ] delete_local_gateway_route_table_vpc_association
- [X] delete_managed_prefix_list - [X] delete_managed_prefix_list
- [X] delete_nat_gateway - [X] delete_nat_gateway
@ -2016,6 +2031,7 @@
- [ ] modify_ipam_resource_cidr - [ ] modify_ipam_resource_cidr
- [ ] modify_ipam_scope - [ ] modify_ipam_scope
- [ ] modify_launch_template - [ ] modify_launch_template
- [ ] modify_local_gateway_route
- [X] modify_managed_prefix_list - [X] modify_managed_prefix_list
- [X] modify_network_interface_attribute - [X] modify_network_interface_attribute
- [ ] modify_private_dns_name_options - [ ] modify_private_dns_name_options
@ -5754,7 +5770,7 @@
## sns ## sns
<details> <details>
<summary>55% implemented</summary> <summary>52% implemented</summary>
- [X] add_permission - [X] add_permission
- [ ] check_if_phone_number_is_opted_out - [ ] check_if_phone_number_is_opted_out
@ -5767,6 +5783,7 @@
- [X] delete_platform_application - [X] delete_platform_application
- [ ] delete_sms_sandbox_phone_number - [ ] delete_sms_sandbox_phone_number
- [X] delete_topic - [X] delete_topic
- [ ] get_data_protection_policy
- [ ] get_endpoint_attributes - [ ] get_endpoint_attributes
- [ ] get_platform_application_attributes - [ ] get_platform_application_attributes
- [ ] get_sms_attributes - [ ] get_sms_attributes
@ -5785,6 +5802,7 @@
- [ ] opt_in_phone_number - [ ] opt_in_phone_number
- [X] publish - [X] publish
- [X] publish_batch - [X] publish_batch
- [ ] put_data_protection_policy
- [X] remove_permission - [X] remove_permission
- [X] set_endpoint_attributes - [X] set_endpoint_attributes
- [ ] set_platform_application_attributes - [ ] set_platform_application_attributes

View File

@ -35,7 +35,7 @@ cloudfront
use-case. use-case.
- [ ] create_distribution_with_tags - [X] create_distribution_with_tags
- [ ] create_field_level_encryption_config - [ ] create_field_level_encryption_config
- [ ] create_field_level_encryption_profile - [ ] create_field_level_encryption_profile
- [ ] create_function - [ ] create_function

View File

@ -35,13 +35,18 @@ cloudtrail
- [X] delete_trail - [X] delete_trail
- [ ] describe_query - [ ] describe_query
- [X] describe_trails - [X] describe_trails
- [ ] get_channel
- [ ] get_event_data_store - [ ] get_event_data_store
- [X] get_event_selectors - [X] get_event_selectors
- [ ] get_import
- [X] get_insight_selectors - [X] get_insight_selectors
- [ ] get_query_results - [ ] get_query_results
- [X] get_trail - [X] get_trail
- [X] get_trail_status - [X] get_trail_status
- [ ] list_channels
- [ ] list_event_data_stores - [ ] list_event_data_stores
- [ ] list_import_failures
- [ ] list_imports
- [ ] list_public_keys - [ ] list_public_keys
- [ ] list_queries - [ ] list_queries
- [X] list_tags - [X] list_tags
@ -55,8 +60,10 @@ cloudtrail
- [X] put_insight_selectors - [X] put_insight_selectors
- [X] remove_tags - [X] remove_tags
- [ ] restore_event_data_store - [ ] restore_event_data_store
- [ ] start_import
- [X] start_logging - [X] start_logging
- [ ] start_query - [ ] start_query
- [ ] stop_import
- [X] stop_logging - [X] stop_logging
- [ ] update_event_data_store - [ ] update_event_data_store
- [X] update_trail - [X] update_trail

View File

@ -80,6 +80,8 @@ ec2
- [X] create_carrier_gateway - [X] create_carrier_gateway
- [ ] create_client_vpn_endpoint - [ ] create_client_vpn_endpoint
- [ ] create_client_vpn_route - [ ] create_client_vpn_route
- [ ] create_coip_cidr
- [ ] create_coip_pool
- [X] create_customer_gateway - [X] create_customer_gateway
- [ ] create_default_subnet - [ ] create_default_subnet
- [X] create_default_vpc - [X] create_default_vpc
@ -99,6 +101,8 @@ ec2
- [X] create_launch_template - [X] create_launch_template
- [ ] create_launch_template_version - [ ] create_launch_template_version
- [ ] create_local_gateway_route - [ ] 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 - [ ] create_local_gateway_route_table_vpc_association
- [X] create_managed_prefix_list - [X] create_managed_prefix_list
- [X] create_nat_gateway - [X] create_nat_gateway
@ -154,6 +158,8 @@ ec2
- [X] delete_carrier_gateway - [X] delete_carrier_gateway
- [ ] delete_client_vpn_endpoint - [ ] delete_client_vpn_endpoint
- [ ] delete_client_vpn_route - [ ] delete_client_vpn_route
- [ ] delete_coip_cidr
- [ ] delete_coip_pool
- [X] delete_customer_gateway - [X] delete_customer_gateway
- [ ] delete_dhcp_options - [ ] delete_dhcp_options
- [X] delete_egress_only_internet_gateway - [X] delete_egress_only_internet_gateway
@ -169,6 +175,8 @@ ec2
- [X] delete_launch_template - [X] delete_launch_template
- [ ] delete_launch_template_versions - [ ] delete_launch_template_versions
- [ ] delete_local_gateway_route - [ ] 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 - [ ] delete_local_gateway_route_table_vpc_association
- [X] delete_managed_prefix_list - [X] delete_managed_prefix_list
- [X] delete_nat_gateway - [X] delete_nat_gateway
@ -493,6 +501,7 @@ ec2
- [ ] modify_ipam_resource_cidr - [ ] modify_ipam_resource_cidr
- [ ] modify_ipam_scope - [ ] modify_ipam_scope
- [ ] modify_launch_template - [ ] modify_launch_template
- [ ] modify_local_gateway_route
- [X] modify_managed_prefix_list - [X] modify_managed_prefix_list
- [X] modify_network_interface_attribute - [X] modify_network_interface_attribute
- [ ] modify_private_dns_name_options - [ ] modify_private_dns_name_options

View File

@ -38,6 +38,7 @@ sns
- [X] delete_platform_application - [X] delete_platform_application
- [ ] delete_sms_sandbox_phone_number - [ ] delete_sms_sandbox_phone_number
- [X] delete_topic - [X] delete_topic
- [ ] get_data_protection_policy
- [ ] get_endpoint_attributes - [ ] get_endpoint_attributes
- [ ] get_platform_application_attributes - [ ] get_platform_application_attributes
- [ ] get_sms_attributes - [ ] get_sms_attributes
@ -60,6 +61,7 @@ sns
The MessageStructure and MessageDeduplicationId-parameters have not yet been implemented. The MessageStructure and MessageDeduplicationId-parameters have not yet been implemented.
- [ ] put_data_protection_policy
- [X] remove_permission - [X] remove_permission
- [X] set_endpoint_attributes - [X] set_endpoint_attributes
- [ ] set_platform_application_attributes - [ ] set_platform_application_attributes

View File

@ -247,6 +247,10 @@ class CloudFrontBackend(BaseBackend):
we're not persisting/returning the correct attributes for your we're not persisting/returning the correct attributes for your
use-case. 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) dist = Distribution(self.account_id, distribution_config)
caller_reference = dist.distribution_config.caller_reference caller_reference = dist.distribution_config.caller_reference
existing_dist = self._distribution_with_caller_reference(caller_reference) existing_dist = self._distribution_with_caller_reference(caller_reference)