Skip to content

Commit aae9d1e

Browse files
authored
{Appconfig} Disable incorrect test cases (#31115)
1 parent 9b32f8e commit aae9d1e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/azure-cli/azure/cli/command_modules/appconfig/tests/latest/test_appconfig_aad_auth.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import json
99
import os
1010
import time
11+
import unittest
1112

1213
from azure.cli.command_modules.appconfig._credential import AppConfigurationCliCredential
1314
from azure.cli.command_modules.appconfig._utils import get_appconfig_data_client
@@ -223,7 +224,7 @@ def test_azconfig_aad_auth(self, resource_group, location):
223224
assert expected_exported_kvs == exported_kvs
224225
os.remove(exported_file_path)
225226

226-
227+
@unittest.skip("Incorrect test case")
227228
@mock.patch('azure.cli.core.auth.adal_authentication.MSIAuthenticationWrapper.set_token')
228229
@mock.patch('azure.cli.core.auth.adal_authentication.MSIAuthenticationWrapper.get_token')
229230
@mock.patch('azure.cli.core._profile.Profile.get_subscription')
@@ -246,7 +247,7 @@ def test_azconfig_mi_token_override(self, get_subscriptions_mock, msi_get_token_
246247
# Assert that get_token was called with the correct scope
247248
appconfig_credential._impl.get_token.assert_called_once_with(f"{APPCONFIG_AUTH_TOKEN_AUDIENCE}/.default")
248249

249-
250+
@unittest.skip("Incorrect test case")
250251
@mock.patch('azure.cli.core.auth.msal_credentials.UserCredential')
251252
@mock.patch('azure.cli.core.auth.credential_adaptor.CredentialAdaptor.get_token')
252253
@mock.patch('azure.cli.core._profile.Profile.get_subscription')

0 commit comments

Comments
 (0)