From 2e1559dbf30169c8b013bc7e842d6893e7843226 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Sat, 2 Sep 2023 21:11:07 +0000 Subject: [PATCH] Prep release 4.2.1 (#6758) --- .github/workflows/release.yml | 6 ++++ CHANGELOG.md | 44 ++++++++++++++++++++++++ IMPLEMENTATION_COVERAGE.md | 32 ++++++++++------- docs/docs/services/elasticache.rst | 10 +++--- docs/docs/services/identitystore.rst | 2 +- docs/docs/services/sagemaker-runtime.rst | 1 + docs/docs/services/sagemaker.rst | 7 +++- docs/docs/services/sesv2.rst | 5 +++ moto/__init__.py | 9 ++--- 9 files changed, 90 insertions(+), 26 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f277250a..2d972a649 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,8 @@ jobs: release-moto-job: runs-on: ubuntu-latest name: Release Moto + permissions: + contents: write env: VERSION: 0.0.0 steps: @@ -55,6 +57,10 @@ jobs: run: | git tag ${{ env.VERSION }} git push origin ${{ env.VERSION }} + - name: Create GitHub release + uses: softprops/action-gh-release@v1 + with: + files: dist/* # Required to get the correct Digest # See https://github.com/docker/build-push-action/issues/461 - name: Set up QEMU diff --git a/CHANGELOG.md b/CHANGELOG.md index 12af14c7d..864a0d5a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,50 @@ Moto Changelog ============== + +4.2.1 +------ +Docker Digest for 4.2.1: + + New Services: + * Sagemaker Runtime: + * invoke_endpoint() + + New Methods: + * CognitoIDP: + * describe_resource_server() + * list_resource_servers() + + * CognitoIDP: + * create_cache_cluster() + * delete_cache_cluster() + * describe_cache_clusters() + + * IdentityStore: + * list_users() + + * Logs: + * describe_query_results() + * get_query_results() + * list_tags_for_resource() + * tag_resource() + * untag_resource() + + * Sagemaker: + * list_notebook_instances() + + Miscellaneous: + * EC2: describe_transit_gateways() now returns the ARN + * IAM policies now allow S3 accesspoint arns + * KMS: sign() now supports RSASSA_PSS_SHA_384, RSASSA_PSS_SHA_512 and RSASSA_PKCS1_* algorithms + * Logs: Now supports two subscription filters + * RDS: Clusters now support the ServerlessV2ScalingConfiguration parameter + * ResourceGroupsTaggingAPI: tag_resource() now supports RDS resources + * S3: CrossAccount access can now be disabled, using MOTO_S3_ALLOW_CROSSACCOUNT_ACCESS=false + * SecretsManager: Allow creation/update of secrets without values + * SES: set_identity_mail_from_domain() - the Identity can now also be an email + + 4.2.0 ------ Docker Digest for 4.2.0: _sha256:92e59875783037b2558067d2d3f9dd2502c140881ff5c44c44ddbce6658a89b7_ diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md index 55921b3cf..27a3fe290 100644 --- a/IMPLEMENTATION_COVERAGE.md +++ b/IMPLEMENTATION_COVERAGE.md @@ -1166,7 +1166,7 @@ ## cognito-idp
-57% implemented +59% implemented - [X] add_custom_attributes - [X] admin_add_user_to_group @@ -1216,7 +1216,7 @@ - [X] delete_user_pool_client - [X] delete_user_pool_domain - [X] describe_identity_provider -- [ ] describe_resource_server +- [X] describe_resource_server - [ ] describe_risk_configuration - [ ] describe_user_import_job - [X] describe_user_pool @@ -1239,7 +1239,7 @@ - [ ] list_devices - [X] list_groups - [X] list_identity_providers -- [ ] list_resource_servers +- [X] list_resource_servers - [ ] list_tags_for_resource - [ ] list_user_import_jobs - [X] list_user_pool_clients @@ -2691,7 +2691,7 @@ ## elasticache
-4% implemented +9% implemented - [ ] add_tags_to_resource - [ ] authorize_cache_security_group_ingress @@ -2699,7 +2699,7 @@ - [ ] batch_stop_update_action - [ ] complete_migration - [ ] copy_snapshot -- [ ] create_cache_cluster +- [X] create_cache_cluster - [ ] create_cache_parameter_group - [ ] create_cache_security_group - [ ] create_cache_subnet_group @@ -2710,7 +2710,7 @@ - [ ] create_user_group - [ ] decrease_node_groups_in_global_replication_group - [ ] decrease_replica_count -- [ ] delete_cache_cluster +- [X] delete_cache_cluster - [ ] delete_cache_parameter_group - [ ] delete_cache_security_group - [ ] delete_cache_subnet_group @@ -2719,7 +2719,7 @@ - [ ] delete_snapshot - [X] delete_user - [ ] delete_user_group -- [ ] describe_cache_clusters +- [X] describe_cache_clusters - [ ] describe_cache_engine_versions - [ ] describe_cache_parameter_groups - [ ] describe_cache_parameters @@ -3810,7 +3810,7 @@ ## identitystore
-52% implemented +57% implemented - [X] create_group - [X] create_group_membership @@ -3828,7 +3828,7 @@ - [X] list_group_memberships - [ ] list_group_memberships_for_member - [X] list_groups -- [ ] list_users +- [X] list_users - [ ] update_group - [ ] update_user
@@ -6354,7 +6354,7 @@ - [ ] list_monitoring_executions - [ ] list_monitoring_schedules - [ ] list_notebook_instance_lifecycle_configs -- [ ] list_notebook_instances +- [X] list_notebook_instances - [ ] list_pipeline_execution_steps - [X] list_pipeline_executions - [X] list_pipeline_parameters_for_execution @@ -6439,10 +6439,11 @@ ## sagemaker-runtime
-50% implemented +33% implemented - [X] invoke_endpoint - [ ] invoke_endpoint_async +- [ ] invoke_endpoint_with_response_stream
## scheduler @@ -6643,9 +6644,10 @@ ## sesv2
-10% implemented +9% implemented - [ ] batch_get_metric_data +- [ ] cancel_export_job - [ ] create_configuration_set - [ ] create_configuration_set_event_destination - [X] create_contact @@ -6656,6 +6658,7 @@ - [ ] create_email_identity - [ ] create_email_identity_policy - [ ] create_email_template +- [ ] create_export_job - [ ] create_import_job - [ ] delete_configuration_set - [ ] delete_configuration_set_event_destination @@ -6684,7 +6687,9 @@ - [ ] get_email_identity - [ ] get_email_identity_policies - [ ] get_email_template +- [ ] get_export_job - [ ] get_import_job +- [ ] get_message_insights - [ ] get_suppressed_destination - [ ] list_configuration_sets - [X] list_contact_lists @@ -6695,6 +6700,7 @@ - [ ] list_domain_deliverability_campaigns - [ ] list_email_identities - [ ] list_email_templates +- [ ] list_export_jobs - [ ] list_import_jobs - [ ] list_recommendations - [ ] list_suppressed_destinations @@ -7449,6 +7455,7 @@ - mobile - mturk - mwaa +- neptunedata - network-firewall - networkmanager - nimble @@ -7461,6 +7468,7 @@ - panorama - payment-cryptography - payment-cryptography-data +- pca-connector-ad - personalize-events - personalize-runtime - pi diff --git a/docs/docs/services/elasticache.rst b/docs/docs/services/elasticache.rst index 2c5a64e3b..227bf1204 100644 --- a/docs/docs/services/elasticache.rst +++ b/docs/docs/services/elasticache.rst @@ -33,7 +33,7 @@ elasticache - [ ] batch_stop_update_action - [ ] complete_migration - [ ] copy_snapshot -- [x] create_cache_cluster +- [X] create_cache_cluster - [ ] create_cache_parameter_group - [ ] create_cache_security_group - [ ] create_cache_subnet_group @@ -44,7 +44,7 @@ elasticache - [ ] create_user_group - [ ] decrease_node_groups_in_global_replication_group - [ ] decrease_replica_count -- [x] delete_cache_cluster +- [X] delete_cache_cluster - [ ] delete_cache_parameter_group - [ ] delete_cache_security_group - [ ] delete_cache_subnet_group @@ -53,7 +53,7 @@ elasticache - [ ] delete_snapshot - [X] delete_user - [ ] delete_user_group -- [x] describe_cache_clusters +- [X] describe_cache_clusters - [ ] describe_cache_engine_versions - [ ] describe_cache_parameter_groups - [ ] describe_cache_parameters @@ -70,10 +70,10 @@ elasticache - [ ] describe_update_actions - [ ] describe_user_groups - [X] describe_users - + Only the `user_id` parameter is currently supported. Pagination is not yet implemented. - + - [ ] disassociate_global_replication_group - [ ] failover_global_replication_group diff --git a/docs/docs/services/identitystore.rst b/docs/docs/services/identitystore.rst index 9125cb0f1..01054ae05 100644 --- a/docs/docs/services/identitystore.rst +++ b/docs/docs/services/identitystore.rst @@ -43,7 +43,7 @@ identitystore - [X] list_group_memberships - [ ] list_group_memberships_for_member - [X] list_groups -- [ ] list_users +- [X] list_users - [ ] update_group - [ ] update_user diff --git a/docs/docs/services/sagemaker-runtime.rst b/docs/docs/services/sagemaker-runtime.rst index eff4d9028..fdeaf11f5 100644 --- a/docs/docs/services/sagemaker-runtime.rst +++ b/docs/docs/services/sagemaker-runtime.rst @@ -63,4 +63,5 @@ sagemaker-runtime - [ ] invoke_endpoint_async +- [ ] invoke_endpoint_with_response_stream diff --git a/docs/docs/services/sagemaker.rst b/docs/docs/services/sagemaker.rst index eb7ba3c36..3579789a2 100644 --- a/docs/docs/services/sagemaker.rst +++ b/docs/docs/services/sagemaker.rst @@ -248,7 +248,12 @@ sagemaker - [ ] list_monitoring_executions - [ ] list_monitoring_schedules - [ ] list_notebook_instance_lifecycle_configs -- [ ] list_notebook_instances +- [X] list_notebook_instances + + The following parameters are not yet implemented: + CreationTimeBefore, CreationTimeAfter, LastModifiedTimeBefore, LastModifiedTimeAfter, NotebookInstanceLifecycleConfigNameContains, DefaultCodeRepositoryContains, AdditionalCodeRepositoryEquals + + - [ ] list_pipeline_execution_steps - [X] list_pipeline_executions - [X] list_pipeline_parameters_for_execution diff --git a/docs/docs/services/sesv2.rst b/docs/docs/services/sesv2.rst index 3cef2329d..7ffe443ee 100644 --- a/docs/docs/services/sesv2.rst +++ b/docs/docs/services/sesv2.rst @@ -28,6 +28,7 @@ sesv2 |start-h3| Implemented features for this service |end-h3| - [ ] batch_get_metric_data +- [ ] cancel_export_job - [ ] create_configuration_set - [ ] create_configuration_set_event_destination - [X] create_contact @@ -38,6 +39,7 @@ sesv2 - [ ] create_email_identity - [ ] create_email_identity_policy - [ ] create_email_template +- [ ] create_export_job - [ ] create_import_job - [ ] delete_configuration_set - [ ] delete_configuration_set_event_destination @@ -66,7 +68,9 @@ sesv2 - [ ] get_email_identity - [ ] get_email_identity_policies - [ ] get_email_template +- [ ] get_export_job - [ ] get_import_job +- [ ] get_message_insights - [ ] get_suppressed_destination - [ ] list_configuration_sets - [X] list_contact_lists @@ -77,6 +81,7 @@ sesv2 - [ ] list_domain_deliverability_campaigns - [ ] list_email_identities - [ ] list_email_templates +- [ ] list_export_jobs - [ ] list_import_jobs - [ ] list_recommendations - [ ] list_suppressed_destinations diff --git a/moto/__init__.py b/moto/__init__.py index 29bae381b..b012da6d0 100644 --- a/moto/__init__.py +++ b/moto/__init__.py @@ -83,9 +83,7 @@ mock_ecr = lazy_load(".ecr", "mock_ecr") mock_ecs = lazy_load(".ecs", "mock_ecs") mock_efs = lazy_load(".efs", "mock_efs") mock_eks = lazy_load(".eks", "mock_eks") -mock_elasticache = lazy_load( - ".elasticache", "mock_elasticache", boto3_name="elasticache" -) +mock_elasticache = lazy_load(".elasticache", "mock_elasticache") mock_elastictranscoder = lazy_load(".elastictranscoder", "mock_elastictranscoder") mock_elb = lazy_load(".elb", "mock_elb") mock_elbv2 = lazy_load(".elbv2", "mock_elbv2") @@ -180,6 +178,7 @@ mock_stepfunctions = lazy_load( mock_sts = lazy_load(".sts", "mock_sts") mock_support = lazy_load(".support", "mock_support") mock_swf = lazy_load(".swf", "mock_swf") +mock_textract = lazy_load(".textract", "mock_textract") mock_timestreamwrite = lazy_load( ".timestreamwrite", "mock_timestreamwrite", boto3_name="timestream-write" ) @@ -188,10 +187,6 @@ XRaySegment = lazy_load(".xray", "XRaySegment") mock_xray = lazy_load(".xray", "mock_xray") mock_xray_client = lazy_load(".xray", "mock_xray_client") mock_wafv2 = lazy_load(".wafv2", "mock_wafv2") -mock_textract = lazy_load(".textract", "mock_textract") -mock_elasticache = lazy_load( - ".elasticache", "mock_elasticache", boto3_name="elasticache" -) class MockAll(ContextDecorator):