Skip to content

Commit d2ff478

Browse files
turalfTural Farhadov
andauthored
Disable mgmt tests (Azure#15860)
Co-authored-by: Tural Farhadov <tufarhad@microsoft.com>
1 parent 185c0f1 commit d2ff478

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

sdk/communication/azure-mgmt-communication/tests/test_mgmt_communication.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# license information.
77
#--------------------------------------------------------------------------
88
import unittest
9+
import pytest
910

1011
import azure.mgmt.communication
1112
from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer
@@ -17,6 +18,8 @@
1718
AZURE_LOCATION = "westus"
1819
COMMUNICATION_SERVICE_LOCATION = "global"
1920
COMMUNICATION_SERVICE_DATA_LOCATION = "UnitedStates"
21+
DISABLE_MGMT_TESTS = True
22+
DISABLE_REASON = "Temporary issue causing the tests to fail"
2023

2124
class MgmtCommunicationTest(AzureMgmtTestCase):
2225

@@ -26,6 +29,7 @@ def setUp(self):
2629
azure.mgmt.communication.CommunicationServiceManagementClient
2730
)
2831

32+
@pytest.mark.skipif(DISABLE_MGMT_TESTS, reason=DISABLE_REASON)
2933
@ResourceGroupPreparer(location=AZURE_LOCATION)
3034
def test_communication_crud(self, resource_group):
3135
GROUP_NAME = resource_group.name

sdk/communication/azure-mgmt-communication/tests/test_mgmt_communication_list_resources.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# license information.
77
#--------------------------------------------------------------------------
88
import unittest
9+
import pytest
910

1011
import azure.mgmt.communication
1112
from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer
@@ -17,6 +18,8 @@
1718
AZURE_LOCATION = "westus"
1819
COMMUNICATION_SERVICE_LOCATION = "global"
1920
COMMUNICATION_SERVICE_DATA_LOCATION = "UnitedStates"
21+
DISABLE_MGMT_TESTS = True
22+
DISABLE_REASON = "Temporary issue causing the tests to fail"
2023

2124
class MgmtCommunicationTest(AzureMgmtTestCase):
2225

@@ -26,6 +29,7 @@ def setUp(self):
2629
azure.mgmt.communication.CommunicationServiceManagementClient
2730
)
2831

32+
@pytest.mark.skipif(DISABLE_MGMT_TESTS, reason=DISABLE_REASON)
2933
@ResourceGroupPreparer(location=AZURE_LOCATION)
3034
def test_communication_list_by_subscription(self, resource_group):
3135
GROUP_NAME = resource_group.name
@@ -59,6 +63,7 @@ def test_communication_list_by_subscription(self, resource_group):
5963
resource_found = True
6064
self.assertTrue(resource_found)
6165

66+
@pytest.mark.skipif(DISABLE_MGMT_TESTS, reason=DISABLE_REASON)
6267
@ResourceGroupPreparer(location=AZURE_LOCATION)
6368
def test_communication_list_by_rg(self, resource_group):
6469
GROUP_NAME = resource_group.name

sdk/communication/azure-mgmt-communication/tests/test_mgmt_communication_notification_hub.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#--------------------------------------------------------------------------
88
import unittest
99
import time
10+
import pytest
1011

1112
import azure.mgmt.communication
1213
import azure.mgmt.notificationhubs
@@ -20,6 +21,8 @@
2021
AZURE_LOCATION = "westus"
2122
COMMUNICATION_SERVICE_LOCATION = "global"
2223
COMMUNICATION_SERVICE_DATA_LOCATION = "UnitedStates"
24+
DISABLE_MGMT_TESTS = True
25+
DISABLE_REASON = "Temporary issue causing the tests to fail"
2326

2427
class MgmtCommunicationTest(AzureMgmtTestCase):
2528

@@ -32,6 +35,7 @@ def setUp(self):
3235
azure.mgmt.notificationhubs.NotificationHubsManagementClient
3336
)
3437

38+
@pytest.mark.skipif(DISABLE_MGMT_TESTS, reason=DISABLE_REASON)
3539
@ResourceGroupPreparer(location=AZURE_LOCATION)
3640
def test_communication_link_notif_hub(self, resource_group):
3741
GROUP_NAME = resource_group.name

0 commit comments

Comments
 (0)