diff --git a/poetry.lock b/poetry.lock index 5c46be35d2..50a8999646 100644 --- a/poetry.lock +++ b/poetry.lock @@ -424,20 +424,21 @@ typing-extensions = ">=4.6.0" [[package]] name = "azure-mgmt-containerregistry" -version = "10.3.0" +version = "12.0.0" description = "Microsoft Azure Container Registry Client Library for Python" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" groups = ["main"] files = [ - {file = "azure-mgmt-containerregistry-10.3.0.tar.gz", hash = "sha256:ae21651855dfb19c42d91d6b3a965c6c611e23f8bc4bf7138835e652d2f918e3"}, - {file = "azure_mgmt_containerregistry-10.3.0-py3-none-any.whl", hash = "sha256:851e1c57f9bc4a3589c6b21fb627c11fd6cbb57a0388b7dfccd530ba3160805f"}, + {file = "azure_mgmt_containerregistry-12.0.0-py3-none-any.whl", hash = "sha256:464abd4d3d9ecc0456ed8f63a6b9b93afc2e3e194f2d34f26a758afb67ad3b5c"}, + {file = "azure_mgmt_containerregistry-12.0.0.tar.gz", hash = "sha256:f19f8faa7881deaf2b5015c0eb050a92e2380cd9d18dee33cdb5f27d44a06c03"}, ] [package.dependencies] -azure-common = ">=1.1,<2.0" -azure-mgmt-core = ">=1.3.2,<2.0.0" -isodate = ">=0.6.1,<1.0.0" +azure-common = ">=1.1" +azure-mgmt-core = ">=1.3.2" +isodate = ">=0.6.1" +typing-extensions = ">=4.6.0" [[package]] name = "azure-mgmt-containerservice" @@ -5336,4 +5337,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.1" python-versions = ">3.9.1,<3.13" -content-hash = "04a5713e73ad4eee7eb3e9f1c72504f2488374f4b134600f87c8c31aab9f8684" +content-hash = "40634eb731e69a9732fdd67e108def20e8d1f33c77acd6ea414cf35034fcacc4" diff --git a/pyproject.toml b/pyproject.toml index 1d263b0793..52fb609fa9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ dependencies = [ "azure-mgmt-applicationinsights==4.0.0", "azure-mgmt-authorization==4.0.0", "azure-mgmt-compute==34.0.0", - "azure-mgmt-containerregistry==10.3.0", + "azure-mgmt-containerregistry==12.0.0", "azure-mgmt-containerservice==34.1.0", "azure-mgmt-cosmosdb==9.7.0", "azure-mgmt-keyvault==10.3.1", diff --git a/tests/providers/azure/services/containerregistry/containerregistry_uses_private_link/containerregistry_uses_private_link_test.py b/tests/providers/azure/services/containerregistry/containerregistry_uses_private_link/containerregistry_uses_private_link_test.py index c49da40f98..f8b9237a21 100644 --- a/tests/providers/azure/services/containerregistry/containerregistry_uses_private_link/containerregistry_uses_private_link_test.py +++ b/tests/providers/azure/services/containerregistry/containerregistry_uses_private_link/containerregistry_uses_private_link_test.py @@ -2,12 +2,6 @@ from unittest import mock from unittest.mock import MagicMock from uuid import uuid4 -from azure.mgmt.containerregistry.models import ( - PrivateEndpoint, - PrivateEndpointConnection, - PrivateLinkServiceConnectionState, -) - from tests.providers.azure.azure_fixtures import ( AZURE_SUBSCRIPTION_ID, set_mocked_azure_provider, @@ -110,6 +104,7 @@ class Test_containerregistry_uses_private_link: ): from prowler.providers.azure.services.containerregistry.containerregistry_service import ( ContainerRegistryInfo, + PrivateEndpointConnection, ) from prowler.providers.azure.services.containerregistry.containerregistry_uses_private_link.containerregistry_uses_private_link import ( containerregistry_uses_private_link, @@ -132,15 +127,8 @@ class Test_containerregistry_uses_private_link: private_endpoint_connections=[ PrivateEndpointConnection( id="/subscriptions/AZURE_SUBSCRIPTION_ID/resourceGroups/mock_resource_group/providers/Microsoft.ContainerRegistry/registries/mock_registry/privateEndpointConnections/myConnection", - private_endpoint=PrivateEndpoint( - id="/subscriptions/AZURE_SUBSCRIPTION_ID/resourceGroups/mock_resource_group/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" - ), - private_link_service_connection_state=PrivateLinkServiceConnectionState( - status="Approved", - description="Auto-approved connection", - actions_required="None", - ), - provisioning_state="Succeeded", + name="myConnection", + type="Microsoft.ContainerRegistry/registries/privateEndpointConnections", ) ], )