Skip to content

Commit

Permalink
Fixing credentials to use AAD (#16885)
Browse files Browse the repository at this point in the history
* fixed credentials to use aad for the aad tests

* undoing changes to async wrapper

* small cleanups and removing unnecessary code

* removing an import

* removing more imports
  • Loading branch information
seankane-msft authored Mar 2, 2021
1 parent 9a398d7 commit 5d5d5e0
Show file tree
Hide file tree
Showing 6 changed files with 151 additions and 146 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@
# --------------------------------------------------------------------------
from devtools_testutils import PowerShellPreparer

from azure.appconfiguration import (
ResourceReadOnlyError,
ConfigurationSetting,
)
from azure.appconfiguration import ConfigurationSetting
from azure.appconfiguration.aio import AzureAppConfigurationClient
from azure.core.exceptions import (
AzureError,
)
from azure.core.exceptions import AzureError
from consts import (
KEY,
LABEL,
Expand Down Expand Up @@ -67,7 +62,6 @@ def trim_kwargs_from_test_function(fn, kwargs):
for key in [k for k in kwargs if k not in args]:
del kwargs[key]


def app_config_decorator(func, **kwargs):

@AppConfigPreparer()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# license information.
# --------------------------------------------------------------------------
from azure.core import MatchConditions
from devtools_testutils import AzureMgmtTestCase, PowerShellPreparer
from devtools_testutils import AzureTestCase, PowerShellPreparer
from azure.core.exceptions import (
ResourceModifiedError,
ResourceNotFoundError,
Expand Down Expand Up @@ -35,7 +35,7 @@
import re
import functools

class AppConfigurationClientTest(AzureMgmtTestCase):
class AppConfigurationClientTest(AzureTestCase):
def __init__(self, method_name):
super(AppConfigurationClientTest, self).__init__(method_name)
self.vcr.match_on = ["path", "method", "query"]
Expand Down
Loading

0 comments on commit 5d5d5e0

Please sign in to comment.