diff --git a/tests/providers/gcp/services/dns/dns_dnssec_disabled/dns_dnssec_disabled_test.py b/tests/providers/gcp/services/dns/dns_dnssec_disabled/dns_dnssec_disabled_test.py index e5294e332c1..101c109987f 100644 --- a/tests/providers/gcp/services/dns/dns_dnssec_disabled/dns_dnssec_disabled_test.py +++ b/tests/providers/gcp/services/dns/dns_dnssec_disabled/dns_dnssec_disabled_test.py @@ -1,13 +1,18 @@ from re import search from unittest import mock -from tests.providers.gcp.gcp_fixtures import GCP_PROJECT_ID, set_mocked_gcp_provider +from tests.providers.gcp.gcp_fixtures import ( + GCP_EU1_LOCATION, + GCP_PROJECT_ID, + set_mocked_gcp_provider, +) class Test_dns_dnssec_disabled: def test_dns_no_managed_zones(self): dns_client = mock.MagicMock dns_client.managed_zones = [] + dns_client.region = GCP_EU1_LOCATION with mock.patch( "prowler.providers.common.provider.Provider.get_global_provider", @@ -51,6 +56,7 @@ def test_one_compliant_managed_zone(self): dns_client = mock.MagicMock dns_client.project_ids = [GCP_PROJECT_ID] dns_client.managed_zones = [managed_zone] + dns_client.region = GCP_EU1_LOCATION with mock.patch( "prowler.providers.common.provider.Provider.get_global_provider", @@ -101,6 +107,7 @@ def test_managed_zone_with_dnssec_disabled(self): dns_client = mock.MagicMock dns_client.project_ids = [GCP_PROJECT_ID] dns_client.managed_zones = [managed_zone] + dns_client.region = GCP_EU1_LOCATION with mock.patch( "prowler.providers.common.provider.Provider.get_global_provider", diff --git a/tests/providers/gcp/services/dns/dns_rsasha1_in_use_to_key_sign_in_dnssec/dns_rsasha1_in_use_to_key_sign_in_dnssec_test.py b/tests/providers/gcp/services/dns/dns_rsasha1_in_use_to_key_sign_in_dnssec/dns_rsasha1_in_use_to_key_sign_in_dnssec_test.py index 6b52984942f..ae2252f6ffd 100644 --- a/tests/providers/gcp/services/dns/dns_rsasha1_in_use_to_key_sign_in_dnssec/dns_rsasha1_in_use_to_key_sign_in_dnssec_test.py +++ b/tests/providers/gcp/services/dns/dns_rsasha1_in_use_to_key_sign_in_dnssec/dns_rsasha1_in_use_to_key_sign_in_dnssec_test.py @@ -1,13 +1,18 @@ from re import search from unittest import mock -from tests.providers.gcp.gcp_fixtures import GCP_PROJECT_ID, set_mocked_gcp_provider +from tests.providers.gcp.gcp_fixtures import ( + GCP_EU1_LOCATION, + GCP_PROJECT_ID, + set_mocked_gcp_provider, +) class Test_dns_rsasha1_in_use_to_key_sign_in_dnssec: def test_dns_no_managed_zones(self): dns_client = mock.MagicMock dns_client.managed_zones = [] + dns_client.region = GCP_EU1_LOCATION with mock.patch( "prowler.providers.common.provider.Provider.get_global_provider", @@ -51,6 +56,7 @@ def test_one_compliant_managed_zone(self): dns_client = mock.MagicMock dns_client.project_ids = [GCP_PROJECT_ID] dns_client.managed_zones = [managed_zone] + dns_client.region = GCP_EU1_LOCATION with mock.patch( "prowler.providers.common.provider.Provider.get_global_provider", @@ -101,6 +107,7 @@ def test_managed_zone_with_rsasha1_key_sign(self): dns_client = mock.MagicMock dns_client.project_ids = [GCP_PROJECT_ID] dns_client.managed_zones = [managed_zone] + dns_client.region = GCP_EU1_LOCATION with mock.patch( "prowler.providers.common.provider.Provider.get_global_provider", diff --git a/tests/providers/gcp/services/dns/dns_rsasha1_in_use_to_zone_sign_in_dnssec/dns_rsasha1_in_use_to_zone_sign_in_dnssec_test.py b/tests/providers/gcp/services/dns/dns_rsasha1_in_use_to_zone_sign_in_dnssec/dns_rsasha1_in_use_to_zone_sign_in_dnssec_test.py index fe53e52c77d..66e0dcae885 100644 --- a/tests/providers/gcp/services/dns/dns_rsasha1_in_use_to_zone_sign_in_dnssec/dns_rsasha1_in_use_to_zone_sign_in_dnssec_test.py +++ b/tests/providers/gcp/services/dns/dns_rsasha1_in_use_to_zone_sign_in_dnssec/dns_rsasha1_in_use_to_zone_sign_in_dnssec_test.py @@ -1,13 +1,18 @@ from re import search from unittest import mock -from tests.providers.gcp.gcp_fixtures import GCP_PROJECT_ID, set_mocked_gcp_provider +from tests.providers.gcp.gcp_fixtures import ( + GCP_EU1_LOCATION, + GCP_PROJECT_ID, + set_mocked_gcp_provider, +) class Test_dns_rsasha1_in_use_to_zone_sign_in_dnssec: def test_dns_no_managed_zones(self): dns_client = mock.MagicMock dns_client.managed_zones = [] + dns_client.region = GCP_EU1_LOCATION with mock.patch( "prowler.providers.common.provider.Provider.get_global_provider", @@ -51,6 +56,7 @@ def test_one_compliant_managed_zone(self): dns_client = mock.MagicMock dns_client.project_ids = [GCP_PROJECT_ID] dns_client.managed_zones = [managed_zone] + dns_client.region = GCP_EU1_LOCATION with mock.patch( "prowler.providers.common.provider.Provider.get_global_provider", @@ -101,6 +107,7 @@ def test_managed_zone_with_dnssec_disabled(self): dns_client = mock.MagicMock dns_client.project_ids = [GCP_PROJECT_ID] dns_client.managed_zones = [managed_zone] + dns_client.region = GCP_EU1_LOCATION with mock.patch( "prowler.providers.common.provider.Provider.get_global_provider",