From 428d689632cae698cd652d4f5e27d4a637c79a43 Mon Sep 17 00:00:00 2001 From: "Tong Xu (Wicresoft North America Ltd)" Date: Mon, 8 Nov 2021 17:43:28 +0800 Subject: [PATCH] update --- sdk/keyvault/azure-keyvault-keys/tests/test_key_client.py | 3 --- sdk/keyvault/azure-keyvault-keys/tests/test_keys_async.py | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/sdk/keyvault/azure-keyvault-keys/tests/test_key_client.py b/sdk/keyvault/azure-keyvault-keys/tests/test_key_client.py index ec83b5e0d5c8..0235d4566fd6 100644 --- a/sdk/keyvault/azure-keyvault-keys/tests/test_key_client.py +++ b/sdk/keyvault/azure-keyvault-keys/tests/test_key_client.py @@ -186,7 +186,6 @@ def _to_bytes(hex): @client_setup def test_key_crud_operations(self, client, is_hsm, **kwargs): self.assertIsNotNone(client) - if (self.is_live and os.environ["KEYVAULT_SKU"] != "premium"): pytest.skip("This test not supprot in usgov/china region. Follow up with service team") @@ -562,7 +561,6 @@ def test_update_release_policy(self, client, **kwargs): @only_vault_7_3_preview() @client_setup def test_key_rotation(self, client, **kwargs): - if (not ".microsoftonline.com" in os.environ["AZURE_AUTHORITY_HOST"] and self.is_live): pytest.skip("This test not supprot in usgov/china region. Follow up with service team.") @@ -578,7 +576,6 @@ def test_key_rotation(self, client, **kwargs): @only_vault_7_3_preview() @client_setup def test_key_rotation_policy(self, client, **kwargs): - if (not ".microsoftonline.com" in os.environ["AZURE_AUTHORITY_HOST"] and self.is_live): pytest.skip("This test not supprot in usgov/china region. Follow up with service team.") diff --git a/sdk/keyvault/azure-keyvault-keys/tests/test_keys_async.py b/sdk/keyvault/azure-keyvault-keys/tests/test_keys_async.py index f3871128ee96..2852fe0492d3 100644 --- a/sdk/keyvault/azure-keyvault-keys/tests/test_keys_async.py +++ b/sdk/keyvault/azure-keyvault-keys/tests/test_keys_async.py @@ -180,9 +180,8 @@ def _to_bytes(hex): @client_setup async def test_key_crud_operations(self, client, is_hsm, **kwargs): self.assertIsNotNone(client) - if (self.is_live and os.environ["KEYVAULT_SKU"] != "premium"): - pytest.skip("This test not supprot in usgov/china region. Follow up with service team") + pytest.skip("This test not supprot in usgov/china region. Follow up with service team.") # create ec key ec_key_name = self.get_resource_name("crud-ec-key") @@ -559,7 +558,6 @@ async def test_update_release_policy(self, client, **kwargs): @only_vault_7_3_preview() @client_setup async def test_key_rotation(self, client, **kwargs): - if (not ".microsoftonline.com" in os.environ["AZURE_AUTHORITY_HOST"] and self.is_live): pytest.skip("This test not supprot in usgov/china region. Follow up with service team.") @@ -575,7 +573,6 @@ async def test_key_rotation(self, client, **kwargs): @only_vault_7_3_preview() @client_setup async def test_key_rotation_policy(self, client, **kwargs): - if (not ".microsoftonline.com" in os.environ["AZURE_AUTHORITY_HOST"] and self.is_live): pytest.skip("This test not supprot in usgov/china region. Follow up with service team.")