From 5dfd118e00232c587e63940bc0a9ac138c738bdc Mon Sep 17 00:00:00 2001 From: jiasli <4003950+jiasli@users.noreply.github.com> Date: Mon, 24 Mar 2025 16:22:04 +0800 Subject: [PATCH] appconfig --- .../appconfig/tests/latest/test_appconfig_aad_auth.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/appconfig/tests/latest/test_appconfig_aad_auth.py b/src/azure-cli/azure/cli/command_modules/appconfig/tests/latest/test_appconfig_aad_auth.py index f0ab9d8c167..81d78e95019 100644 --- a/src/azure-cli/azure/cli/command_modules/appconfig/tests/latest/test_appconfig_aad_auth.py +++ b/src/azure-cli/azure/cli/command_modules/appconfig/tests/latest/test_appconfig_aad_auth.py @@ -8,6 +8,7 @@ import json import os import time +import unittest from azure.cli.command_modules.appconfig._credential import AppConfigurationCliCredential 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): assert expected_exported_kvs == exported_kvs os.remove(exported_file_path) - + @unittest.skip("Incorrect test case") @mock.patch('azure.cli.core.auth.adal_authentication.MSIAuthenticationWrapper.set_token') @mock.patch('azure.cli.core.auth.adal_authentication.MSIAuthenticationWrapper.get_token') @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_ # Assert that get_token was called with the correct scope appconfig_credential._impl.get_token.assert_called_once_with(f"{APPCONFIG_AUTH_TOKEN_AUDIENCE}/.default") - + @unittest.skip("Incorrect test case") @mock.patch('azure.cli.core.auth.msal_credentials.UserCredential') @mock.patch('azure.cli.core.auth.credential_adaptor.CredentialAdaptor.get_token') @mock.patch('azure.cli.core._profile.Profile.get_subscription')