diff --git a/CHANGELOG.md b/CHANGELOG.md index 389d4e8c4..e38bf2481 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,21 @@ Moto Changelog ============== +4.0.5 +----- +Docker Digest for 4.0.5: + + 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: diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md index 6e097633f..5d45a41bf 100644 --- a/IMPLEMENTATION_COVERAGE.md +++ b/IMPLEMENTATION_COVERAGE.md @@ -607,7 +607,7 @@ ## cloudfront
-7% implemented +8% implemented - [ ] associate_alias - [ ] create_cache_policy @@ -711,7 +711,7 @@ ## cloudtrail
-55% implemented +44% implemented - [X] add_tags - [ ] cancel_query @@ -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 @@ -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 @@ -1575,7 +1582,7 @@ ## ec2
-36% implemented +35% implemented - [ ] accept_reserved_instances_exchange_quote - [ ] accept_transit_gateway_multicast_domain_associations @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -5754,7 +5770,7 @@ ## sns
-55% implemented +52% implemented - [X] add_permission - [ ] check_if_phone_number_is_opted_out @@ -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 @@ -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 @@ -6465,4 +6483,4 @@ - workspaces - workspaces-web - xray -
+
\ No newline at end of file diff --git a/docs/docs/services/cloudfront.rst b/docs/docs/services/cloudfront.rst index e8a55a4f4..63940b0c1 100644 --- a/docs/docs/services/cloudfront.rst +++ b/docs/docs/services/cloudfront.rst @@ -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 diff --git a/docs/docs/services/cloudtrail.rst b/docs/docs/services/cloudtrail.rst index 0650c11d0..86e6a5bc6 100644 --- a/docs/docs/services/cloudtrail.rst +++ b/docs/docs/services/cloudtrail.rst @@ -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 @@ -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 diff --git a/docs/docs/services/ec2.rst b/docs/docs/services/ec2.rst index fd3ed0b31..a939b7039 100644 --- a/docs/docs/services/ec2.rst +++ b/docs/docs/services/ec2.rst @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/docs/docs/services/sns.rst b/docs/docs/services/sns.rst index 1e96fab5e..6dd2cfaf4 100644 --- a/docs/docs/services/sns.rst +++ b/docs/docs/services/sns.rst @@ -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 @@ -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 diff --git a/moto/cloudfront/models.py b/moto/cloudfront/models.py index 07a1f6726..d4cc7f682 100644 --- a/moto/cloudfront/models.py +++ b/moto/cloudfront/models.py @@ -247,6 +247,10 @@ class CloudFrontBackend(BaseBackend): 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)