From 0addc16d8ae0b31be9788da518ecbb048c0b7981 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Sat, 29 Jan 2022 15:52:23 -0100 Subject: [PATCH] Prepare release 3.0.2 (#4812) --- CHANGELOG.md | 32 ++++++++++++++++++++++++++++++++ IMPLEMENTATION_COVERAGE.md | 21 ++++++++++++--------- docs/docs/services/efs.rst | 3 +++ docs/docs/services/elbv2.rst | 2 +- docs/docs/services/rds.rst | 20 ++++++++++---------- moto/rds2/models.py | 8 ++++---- moto/rds2/responses.py | 6 +++--- 7 files changed, 65 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0f931c3e..afd3081d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,38 @@ Moto Changelog =================== +3.0.2 +----- + + * New Methods: + * Kinesis: + * deregister_stream_consumer() + * describe_stream_consumer() + * disable_enhanced_monitoring() + * enable_enhanced_monitoring() + * list_stream_consumers() + * register_stream_consumer() + * start_stream_encryption() + * stop_stream_encryption() + * update_shard_count() + * RDS: + * cancel_export_task() + * copy_db_cluster_snapshot() + * copy_db_snapshot() + * create_db_cluster_snapshot() + * create_event_subscription() + * delete_db_cluster_snapshot() + * delete_event_subscription() + * describe_db_cluster_snapshots() + * describe_event_subscriptions() + * describe_export_tasks() + * start_export_task() + * Route53 + * list_hosted_zones_by_vpc() + + * Miscellaneous: + * Improved configuration options for Docker-instances started by AWSLambda and Batch + 3.0.1 ----- diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md index 13435fb34..861d9a9cc 100644 --- a/IMPLEMENTATION_COVERAGE.md +++ b/IMPLEMENTATION_COVERAGE.md @@ -1918,16 +1918,18 @@ ## efs
-25% implemented +23% implemented - [ ] create_access_point - [X] create_file_system - [X] create_mount_target +- [ ] create_replication_configuration - [ ] create_tags - [ ] delete_access_point - [X] delete_file_system - [ ] delete_file_system_policy - [X] delete_mount_target +- [ ] delete_replication_configuration - [ ] delete_tags - [ ] describe_access_points - [ ] describe_account_preferences @@ -1937,6 +1939,7 @@ - [ ] describe_lifecycle_configuration - [ ] describe_mount_target_security_groups - [X] describe_mount_targets +- [ ] describe_replication_configurations - [ ] describe_tags - [ ] list_tags_for_resource - [ ] modify_mount_target_security_groups @@ -2173,7 +2176,7 @@ ## elbv2
-70% implemented +73% implemented - [ ] add_listener_certificates - [ ] add_tags @@ -2201,7 +2204,7 @@ - [X] modify_load_balancer_attributes - [X] modify_rule - [X] modify_target_group -- [ ] modify_target_group_attributes +- [X] modify_target_group_attributes - [X] register_targets - [ ] remove_listener_certificates - [ ] remove_tags @@ -3800,7 +3803,7 @@ ## rds
-19% implemented +21% implemented - [ ] add_role_to_db_cluster - [ ] add_role_to_db_instance @@ -3829,7 +3832,7 @@ - [ ] create_db_security_group - [ ] create_db_snapshot - [ ] create_db_subnet_group -- [ ] create_event_subscription +- [X] create_event_subscription - [ ] create_global_cluster - [X] create_option_group - [ ] delete_custom_availability_zone @@ -3846,7 +3849,7 @@ - [ ] delete_db_security_group - [ ] delete_db_snapshot - [ ] delete_db_subnet_group -- [ ] delete_event_subscription +- [X] delete_event_subscription - [ ] delete_global_cluster - [ ] delete_installation_media - [X] delete_option_group @@ -3878,7 +3881,7 @@ - [ ] describe_engine_default_cluster_parameters - [ ] describe_engine_default_parameters - [ ] describe_event_categories -- [ ] describe_event_subscriptions +- [X] describe_event_subscriptions - [ ] describe_events - [X] describe_export_tasks - [ ] describe_global_clusters @@ -4107,7 +4110,7 @@ ## route53
-25% implemented +26% implemented - [ ] activate_key_signing_key - [ ] associate_vpc_with_hosted_zone @@ -4156,7 +4159,7 @@ - [X] list_health_checks - [X] list_hosted_zones - [X] list_hosted_zones_by_name -- [ ] list_hosted_zones_by_vpc +- [X] list_hosted_zones_by_vpc - [X] list_query_logging_configs - [X] list_resource_record_sets - [ ] list_reusable_delegation_sets diff --git a/docs/docs/services/efs.rst b/docs/docs/services/efs.rst index 0e4fe05f8..9cd1ed5ac 100644 --- a/docs/docs/services/efs.rst +++ b/docs/docs/services/efs.rst @@ -43,6 +43,7 @@ efs https://docs.aws.amazon.com/efs/latest/ug/API_CreateMountTarget.html +- [ ] create_replication_configuration - [ ] create_tags - [ ] delete_access_point - [X] delete_file_system @@ -62,6 +63,7 @@ efs https://docs.aws.amazon.com/efs/latest/ug/API_DeleteMountTarget.html +- [ ] delete_replication_configuration - [ ] delete_tags - [ ] describe_access_points - [ ] describe_account_preferences @@ -84,6 +86,7 @@ efs https://docs.aws.amazon.com/efs/latest/ug/API_DescribeMountTargets.html +- [ ] describe_replication_configurations - [ ] describe_tags - [ ] list_tags_for_resource - [ ] modify_mount_target_security_groups diff --git a/docs/docs/services/elbv2.rst b/docs/docs/services/elbv2.rst index eee739ef2..3acb4bd41 100644 --- a/docs/docs/services/elbv2.rst +++ b/docs/docs/services/elbv2.rst @@ -51,7 +51,7 @@ elbv2 - [X] modify_load_balancer_attributes - [X] modify_rule - [X] modify_target_group -- [ ] modify_target_group_attributes +- [X] modify_target_group_attributes - [X] register_targets - [ ] remove_listener_certificates - [ ] remove_tags diff --git a/docs/docs/services/rds.rst b/docs/docs/services/rds.rst index bc507f9cb..070b6bd64 100644 --- a/docs/docs/services/rds.rst +++ b/docs/docs/services/rds.rst @@ -32,7 +32,7 @@ rds - [ ] apply_pending_maintenance_action - [ ] authorize_db_security_group_ingress - [ ] backtrack_db_cluster -- [ ] cancel_export_task +- [X] cancel_export_task - [ ] copy_db_cluster_parameter_group - [ ] copy_db_cluster_snapshot - [ ] copy_db_parameter_group @@ -43,7 +43,7 @@ rds - [X] create_db_cluster - [ ] create_db_cluster_endpoint - [ ] create_db_cluster_parameter_group -- [ ] create_db_cluster_snapshot +- [X] create_db_cluster_snapshot - [ ] create_db_instance - [ ] create_db_instance_read_replica - [X] create_db_parameter_group @@ -52,7 +52,7 @@ rds - [ ] create_db_security_group - [ ] create_db_snapshot - [ ] create_db_subnet_group -- [ ] create_event_subscription +- [X] create_event_subscription - [ ] create_global_cluster - [X] create_option_group - [ ] delete_custom_availability_zone @@ -60,7 +60,7 @@ rds - [X] delete_db_cluster - [ ] delete_db_cluster_endpoint - [ ] delete_db_cluster_parameter_group -- [ ] delete_db_cluster_snapshot +- [X] delete_db_cluster_snapshot - [ ] delete_db_instance - [ ] delete_db_instance_automated_backup - [X] delete_db_parameter_group @@ -69,7 +69,7 @@ rds - [ ] delete_db_security_group - [ ] delete_db_snapshot - [ ] delete_db_subnet_group -- [ ] delete_event_subscription +- [X] delete_event_subscription - [ ] delete_global_cluster - [ ] delete_installation_media - [X] delete_option_group @@ -82,7 +82,7 @@ rds - [ ] describe_db_cluster_parameter_groups - [ ] describe_db_cluster_parameters - [ ] describe_db_cluster_snapshot_attributes -- [ ] describe_db_cluster_snapshots +- [X] describe_db_cluster_snapshots - [X] describe_db_clusters - [ ] describe_db_engine_versions - [ ] describe_db_instance_automated_backups @@ -101,9 +101,9 @@ rds - [ ] describe_engine_default_cluster_parameters - [ ] describe_engine_default_parameters - [ ] describe_event_categories -- [ ] describe_event_subscriptions +- [X] describe_event_subscriptions - [ ] describe_events -- [ ] describe_export_tasks +- [X] describe_export_tasks - [ ] describe_global_clusters - [ ] describe_installation_media - [X] describe_option_group_options @@ -151,7 +151,7 @@ rds - [ ] reset_db_cluster_parameter_group - [ ] reset_db_parameter_group - [ ] restore_db_cluster_from_s3 -- [ ] restore_db_cluster_from_snapshot +- [X] restore_db_cluster_from_snapshot - [ ] restore_db_cluster_to_point_in_time - [X] restore_db_instance_from_db_snapshot - [ ] restore_db_instance_from_s3 @@ -161,7 +161,7 @@ rds - [X] start_db_cluster - [ ] start_db_instance - [ ] start_db_instance_automated_backups_replication -- [ ] start_export_task +- [X] start_export_task - [ ] stop_activity_stream - [X] stop_db_cluster - [ ] stop_db_instance diff --git a/moto/rds2/models.py b/moto/rds2/models.py index 66c3dd534..97c20730c 100644 --- a/moto/rds2/models.py +++ b/moto/rds2/models.py @@ -1753,7 +1753,7 @@ class RDS2Backend(BaseBackend): cluster.status = "available" # Already set the final status in the background return initial_state - def create_cluster_snapshot( + def create_db_cluster_snapshot( self, db_cluster_identifier, db_snapshot_identifier, tags=None ): cluster = self.clusters.get(db_cluster_identifier) @@ -1795,7 +1795,7 @@ class RDS2Backend(BaseBackend): self.cluster_snapshots[target_snapshot_identifier] = target_snapshot return target_snapshot - def delete_cluster_snapshot(self, db_snapshot_identifier): + def delete_db_cluster_snapshot(self, db_snapshot_identifier): if db_snapshot_identifier not in self.cluster_snapshots: raise DBClusterSnapshotNotFoundError(db_snapshot_identifier) @@ -1806,7 +1806,7 @@ class RDS2Backend(BaseBackend): return [self.clusters[cluster_identifier]] return self.clusters.values() - def describe_cluster_snapshots( + def describe_db_cluster_snapshots( self, db_cluster_identifier, db_snapshot_identifier, filters=None ): snapshots = self.cluster_snapshots @@ -1845,7 +1845,7 @@ class RDS2Backend(BaseBackend): return temp_state def restore_db_cluster_from_snapshot(self, from_snapshot_id, overrides): - snapshot = self.describe_cluster_snapshots( + snapshot = self.describe_db_cluster_snapshots( db_cluster_identifier=None, db_snapshot_identifier=from_snapshot_id )[0] original_cluster = snapshot.cluster diff --git a/moto/rds2/responses.py b/moto/rds2/responses.py index 34133dfdc..74495f5e6 100644 --- a/moto/rds2/responses.py +++ b/moto/rds2/responses.py @@ -527,7 +527,7 @@ class RDS2Response(BaseResponse): db_cluster_identifier = self._get_param("DBClusterIdentifier") db_snapshot_identifier = self._get_param("DBClusterSnapshotIdentifier") tags = self.unpack_complex_list_params("Tags.Tag", ("Key", "Value")) - snapshot = self.backend.create_cluster_snapshot( + snapshot = self.backend.create_db_cluster_snapshot( db_cluster_identifier, db_snapshot_identifier, tags ) template = self.response_template(CREATE_CLUSTER_SNAPSHOT_TEMPLATE) @@ -551,7 +551,7 @@ class RDS2Response(BaseResponse): db_cluster_identifier = self._get_param("DBClusterIdentifier") db_snapshot_identifier = self._get_param("DBClusterSnapshotIdentifier") filters = filters_from_querystring(self.querystring) - snapshots = self.backend.describe_cluster_snapshots( + snapshots = self.backend.describe_db_cluster_snapshots( db_cluster_identifier, db_snapshot_identifier, filters ) template = self.response_template(DESCRIBE_CLUSTER_SNAPSHOTS_TEMPLATE) @@ -559,7 +559,7 @@ class RDS2Response(BaseResponse): def delete_db_cluster_snapshot(self): db_snapshot_identifier = self._get_param("DBClusterSnapshotIdentifier") - snapshot = self.backend.delete_cluster_snapshot(db_snapshot_identifier) + snapshot = self.backend.delete_db_cluster_snapshot(db_snapshot_identifier) template = self.response_template(DELETE_CLUSTER_SNAPSHOT_TEMPLATE) return template.render(snapshot=snapshot)