From f0e258f459c0b1bc4363829d3b55d6c03a0e991e Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Sun, 2 Mar 2025 18:45:33 -0100 Subject: [PATCH] Prep release 5.1.1 (#8623) --- .../data-update_ssm-default-parameters.yml | 2 +- CHANGELOG.md | 24 +++++++++++++++++++ IMPLEMENTATION_COVERAGE.md | 1 - .../test_apigateway_cloudformation.py | 2 ++ .../test_lambda_layers_invoked.py | 2 ++ .../test_events/test_events_cloudformation.py | 1 + .../test_resourcegroupstaggingapi.py | 4 ++-- 7 files changed, 32 insertions(+), 4 deletions(-) diff --git a/.github/workflows/data-update_ssm-default-parameters.yml b/.github/workflows/data-update_ssm-default-parameters.yml index 1a1d398d6629..bdf3d50b2704 100644 --- a/.github/workflows/data-update_ssm-default-parameters.yml +++ b/.github/workflows/data-update_ssm-default-parameters.yml @@ -46,5 +46,5 @@ jobs: uses: peter-evans/create-pull-request@v7 with: branch: 'chore-update-ssm-params-${{ github.run_number }}' - title: "chore: update SSM Instance parameters" + title: "chore: update SSM Default parameters" commit-message: "chore: update SSM default parameters" diff --git a/CHANGELOG.md b/CHANGELOG.md index 8efbd49a1372..80b0448f934c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,30 @@ Moto Changelog ============== +5.1.1 +----- +Docker Digest for 5.1.1: + + * General: + * Compatible with the new Account-based endpoint for DynamoDB (see https://github.com/boto/boto3/issues/4449) + * Removed dependency on typing_extensions (introduced in 5.1.0) + + * New Methods: + * CognitoIDP: + * delete_identity_pool() + + * Glue: + * create_connection() + * get_connection() + * get_connections() + + * GuardDuty: + * get_administrator_account() + + * Miscellaneous: + * ResourceGroupsTaggingAPI: get_resources() now supports EventBusses + * RDS: create_db_instance() now throws an error when referencing a non-existent DBCluster + 5.1.0 ----- Docker Digest for 5.1.0: _sha256:aaf5f4a72412b753b2115417e26360612564d3a29b1831f9316708e15138d699_ diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md index 980605ca355e..e45f78be1428 100644 --- a/IMPLEMENTATION_COVERAGE.md +++ b/IMPLEMENTATION_COVERAGE.md @@ -9733,7 +9733,6 @@ - ds-data - ecr-public - eks-auth -- elastic-inference - entityresolution - evidently - finspace diff --git a/tests/test_apigateway/test_apigateway_cloudformation.py b/tests/test_apigateway/test_apigateway_cloudformation.py index 3552cca06b3b..d46f46e35f5e 100644 --- a/tests/test_apigateway/test_apigateway_cloudformation.py +++ b/tests/test_apigateway/test_apigateway_cloudformation.py @@ -1,6 +1,7 @@ import json import boto3 +import pytest from moto import mock_aws @@ -372,6 +373,7 @@ def test_simple_apigateway_with_lambda_proxy(): @mock_aws +@pytest.mark.filterwarnings("ignore:Tried to parse") def test_apigateway_with_unknown_description(): region = "us-east-1" apigw = boto3.client("apigateway", region_name=region) diff --git a/tests/test_awslambda/test_lambda_layers_invoked.py b/tests/test_awslambda/test_lambda_layers_invoked.py index 2f7dfdf948d8..bc7d089db2ee 100644 --- a/tests/test_awslambda/test_lambda_layers_invoked.py +++ b/tests/test_awslambda/test_lambda_layers_invoked.py @@ -2,6 +2,7 @@ from uuid import uuid4 import boto3 +import pytest from moto import mock_aws from tests.markers import requires_docker @@ -23,6 +24,7 @@ def lambda_handler(event, context): @requires_docker @mock_aws +@pytest.mark.filterwarnings("ignore:Error extracting layer to Lambda") def test_invoke_local_lambda_layers(): conn = boto3.client("lambda", _lambda_region) lambda_name = str(uuid4())[0:6] diff --git a/tests/test_events/test_events_cloudformation.py b/tests/test_events/test_events_cloudformation.py index c643d9b631f4..c271e5b3d7ee 100644 --- a/tests/test_events/test_events_cloudformation.py +++ b/tests/test_events/test_events_cloudformation.py @@ -247,6 +247,7 @@ def test_delete_rule(): @aws_verified @pytest.mark.aws_verified +@pytest.mark.filterwarnings("ignore:Tried to parse") def test_create_rule_with_targets(): # given cfn_client = boto3.client("cloudformation", region_name="eu-central-1") diff --git a/tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py b/tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py index 043bd9075d7e..9ffe8d832d50 100644 --- a/tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py +++ b/tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py @@ -448,7 +448,7 @@ def test_get_tag_values_ec2(): @mock_aws def test_get_tag_values_event_bus(): - client = boto3.client("events") + client = boto3.client("events", "us-east-1") client.create_event_bus(Name="test-bus1") event_bus_2 = client.create_event_bus( Name="test-bus2", Tags=[{"Key": "Test", "Value": "Test2"}] @@ -458,7 +458,7 @@ def test_get_tag_values_event_bus(): ResourceARN=event_bus_3["EventBusArn"], Tags=[{"Key": "Test", "Value": "Added"}] ) - rtapi = boto3.client("resourcegroupstaggingapi") + rtapi = boto3.client("resourcegroupstaggingapi", "us-east-1") resp = rtapi.get_resources(ResourceTypeFilters=["events:event-bus"]) assert len(resp["ResourceTagMappingList"]) == 2 assert event_bus_2["EventBusArn"] in [