Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand All @@ -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')
Expand Down