From 3d546e611568c4244ab6dd8d85e80e725233ef48 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Fri, 7 Jun 2019 09:50:34 -0700 Subject: [PATCH] policies.credentials -> .authentication --- sdk/core/azure-core/azure/core/pipeline/policies/__init__.py | 4 ++-- .../pipeline/policies/{credentials.py => authentication.py} | 0 .../{credentials_async.py => authentication_async.py} | 2 +- .../{test_credentials.py => test_authentication.py} | 3 +-- .../tests/{test_credentials.py => test_authentication.py} | 0 5 files changed, 4 insertions(+), 5 deletions(-) rename sdk/core/azure-core/azure/core/pipeline/policies/{credentials.py => authentication.py} (100%) rename sdk/core/azure-core/azure/core/pipeline/policies/{credentials_async.py => authentication_async.py} (94%) rename sdk/core/azure-core/tests/azure_core_asynctests/{test_credentials.py => test_authentication.py} (93%) rename sdk/core/azure-core/tests/{test_credentials.py => test_authentication.py} (100%) diff --git a/sdk/core/azure-core/azure/core/pipeline/policies/__init__.py b/sdk/core/azure-core/azure/core/pipeline/policies/__init__.py index ecf999a66aba..6f8a456d2b82 100644 --- a/sdk/core/azure-core/azure/core/pipeline/policies/__init__.py +++ b/sdk/core/azure-core/azure/core/pipeline/policies/__init__.py @@ -25,7 +25,7 @@ # -------------------------------------------------------------------------- from .base import HTTPPolicy, SansIOHTTPPolicy -from .credentials import BearerTokenCredentialPolicy +from .authentication import BearerTokenCredentialPolicy from .custom_hook import CustomHookPolicy from .redirect import RedirectPolicy from .retry import RetryPolicy @@ -55,7 +55,7 @@ try: from .base_async import AsyncHTTPPolicy - from .credentials_async import AsyncBearerTokenCredentialPolicy + from .authentication_async import AsyncBearerTokenCredentialPolicy from .redirect_async import AsyncRedirectPolicy from .retry_async import AsyncRetryPolicy __all__.extend([ diff --git a/sdk/core/azure-core/azure/core/pipeline/policies/credentials.py b/sdk/core/azure-core/azure/core/pipeline/policies/authentication.py similarity index 100% rename from sdk/core/azure-core/azure/core/pipeline/policies/credentials.py rename to sdk/core/azure-core/azure/core/pipeline/policies/authentication.py diff --git a/sdk/core/azure-core/azure/core/pipeline/policies/credentials_async.py b/sdk/core/azure-core/azure/core/pipeline/policies/authentication_async.py similarity index 94% rename from sdk/core/azure-core/azure/core/pipeline/policies/credentials_async.py rename to sdk/core/azure-core/azure/core/pipeline/policies/authentication_async.py index 416fd76be3cc..641f7fae5fed 100644 --- a/sdk/core/azure-core/azure/core/pipeline/policies/credentials_async.py +++ b/sdk/core/azure-core/azure/core/pipeline/policies/authentication_async.py @@ -5,7 +5,7 @@ # -------------------------------------------------------------------------- from azure.core.pipeline import PipelineRequest, PipelineResponse from azure.core.pipeline.policies import AsyncHTTPPolicy -from azure.core.pipeline.policies.credentials import _BearerTokenCredentialPolicyBase +from azure.core.pipeline.policies.authentication import _BearerTokenCredentialPolicyBase class AsyncBearerTokenCredentialPolicy(_BearerTokenCredentialPolicyBase, AsyncHTTPPolicy): diff --git a/sdk/core/azure-core/tests/azure_core_asynctests/test_credentials.py b/sdk/core/azure-core/tests/azure_core_asynctests/test_authentication.py similarity index 93% rename from sdk/core/azure-core/tests/azure_core_asynctests/test_credentials.py rename to sdk/core/azure-core/tests/azure_core_asynctests/test_authentication.py index f998e9268084..345f7751d0b5 100644 --- a/sdk/core/azure-core/tests/azure_core_asynctests/test_credentials.py +++ b/sdk/core/azure-core/tests/azure_core_asynctests/test_authentication.py @@ -5,8 +5,7 @@ # -------------------------------------------------------------------------- from unittest.mock import Mock from azure.core.pipeline import AsyncPipeline, PipelineResponse -from azure.core.pipeline.policies import HTTPPolicy -from azure.core.pipeline.policies.credentials_async import AsyncBearerTokenCredentialPolicy +from azure.core.pipeline.policies import AsyncBearerTokenCredentialPolicy, HTTPPolicy from azure.core.pipeline.transport import HttpRequest, AsyncHttpTransport import pytest diff --git a/sdk/core/azure-core/tests/test_credentials.py b/sdk/core/azure-core/tests/test_authentication.py similarity index 100% rename from sdk/core/azure-core/tests/test_credentials.py rename to sdk/core/azure-core/tests/test_authentication.py