Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch os.environ in Identity mock tests #7452

Merged
merged 1 commit into from
Sep 26, 2019
Merged

Conversation

chlowell
Copy link
Member

Live testing azure-identity entails setting environment variables to configure EnvironmentCredential. These variables are then set during mock tests as well, potentially breaking those tests. With this change, mock tests patch os.environ to ensure the environment under test contains only the values they set.

@chlowell chlowell added Client This issue points to a problem in the data-plane of the library. Azure.Identity labels Sep 26, 2019
@chlowell chlowell requested a review from bryevdv September 26, 2019 17:15
@chlowell chlowell requested a review from schaabs as a code owner September 26, 2019 17:15
@chlowell chlowell self-assigned this Sep 26, 2019
@adxsdk6
Copy link

adxsdk6 commented Sep 26, 2019

Can one of the admins verify this patch?

@chlowell chlowell merged commit 863f735 into Azure:master Sep 26, 2019
@chlowell chlowell deleted the pipeline branch September 26, 2019 17:27
iscai-msft added a commit to iscai-msft/azure-sdk-for-python that referenced this pull request Sep 28, 2019
…into base_to_properties

* 'master' of https://github.com/Azure/azure-sdk-for-python:
  Eventhub tracing (Azure#7153)
  [devtools-cognitiveservices] temp fix to allow passing cog key in headers for azure-core (Azure#7471)
  adds back create mgmt client (Azure#7470)
  Update SDK Tools Consumption (Azure#7148)
  [AutoPR] peering/resource-manager (Azure#6923)
  Key Vault: making poller return Certificate or CertificateOperation (Azure#7349)
  Patch os.environ in Identity mock tests (Azure#7452)
  Unskip urllib3 related test (Azure#7442)
YijunXieMS pushed a commit to YijunXieMS/azure-sdk-for-python that referenced this pull request Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants