Skip to content

Commit

Permalink
Disable mgmt tests (#15860)
Browse files Browse the repository at this point in the history
Co-authored-by: Tural Farhadov <tufarhad@microsoft.com>
  • Loading branch information
turalf and Tural Farhadov authored Dec 18, 2020
1 parent 185c0f1 commit d2ff478
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# license information.
#--------------------------------------------------------------------------
import unittest
import pytest

import azure.mgmt.communication
from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer
Expand All @@ -17,6 +18,8 @@
AZURE_LOCATION = "westus"
COMMUNICATION_SERVICE_LOCATION = "global"
COMMUNICATION_SERVICE_DATA_LOCATION = "UnitedStates"
DISABLE_MGMT_TESTS = True
DISABLE_REASON = "Temporary issue causing the tests to fail"

class MgmtCommunicationTest(AzureMgmtTestCase):

Expand All @@ -26,6 +29,7 @@ def setUp(self):
azure.mgmt.communication.CommunicationServiceManagementClient
)

@pytest.mark.skipif(DISABLE_MGMT_TESTS, reason=DISABLE_REASON)
@ResourceGroupPreparer(location=AZURE_LOCATION)
def test_communication_crud(self, resource_group):
GROUP_NAME = resource_group.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# license information.
#--------------------------------------------------------------------------
import unittest
import pytest

import azure.mgmt.communication
from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer
Expand All @@ -17,6 +18,8 @@
AZURE_LOCATION = "westus"
COMMUNICATION_SERVICE_LOCATION = "global"
COMMUNICATION_SERVICE_DATA_LOCATION = "UnitedStates"
DISABLE_MGMT_TESTS = True
DISABLE_REASON = "Temporary issue causing the tests to fail"

class MgmtCommunicationTest(AzureMgmtTestCase):

Expand All @@ -26,6 +29,7 @@ def setUp(self):
azure.mgmt.communication.CommunicationServiceManagementClient
)

@pytest.mark.skipif(DISABLE_MGMT_TESTS, reason=DISABLE_REASON)
@ResourceGroupPreparer(location=AZURE_LOCATION)
def test_communication_list_by_subscription(self, resource_group):
GROUP_NAME = resource_group.name
Expand Down Expand Up @@ -59,6 +63,7 @@ def test_communication_list_by_subscription(self, resource_group):
resource_found = True
self.assertTrue(resource_found)

@pytest.mark.skipif(DISABLE_MGMT_TESTS, reason=DISABLE_REASON)
@ResourceGroupPreparer(location=AZURE_LOCATION)
def test_communication_list_by_rg(self, resource_group):
GROUP_NAME = resource_group.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#--------------------------------------------------------------------------
import unittest
import time
import pytest

import azure.mgmt.communication
import azure.mgmt.notificationhubs
Expand All @@ -20,6 +21,8 @@
AZURE_LOCATION = "westus"
COMMUNICATION_SERVICE_LOCATION = "global"
COMMUNICATION_SERVICE_DATA_LOCATION = "UnitedStates"
DISABLE_MGMT_TESTS = True
DISABLE_REASON = "Temporary issue causing the tests to fail"

class MgmtCommunicationTest(AzureMgmtTestCase):

Expand All @@ -32,6 +35,7 @@ def setUp(self):
azure.mgmt.notificationhubs.NotificationHubsManagementClient
)

@pytest.mark.skipif(DISABLE_MGMT_TESTS, reason=DISABLE_REASON)
@ResourceGroupPreparer(location=AZURE_LOCATION)
def test_communication_link_notif_hub(self, resource_group):
GROUP_NAME = resource_group.name
Expand Down

0 comments on commit d2ff478

Please sign in to comment.