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

Make live managed identity tests independent of soft delete #10879

Merged
merged 2 commits into from
Apr 17, 2020

Conversation

chlowell
Copy link
Member

When soft delete is enabled for the Key Vault used by these tests, the second case executed will fail because it tries to set and delete a secret deleted by the first case executed. When these tests were written soft delete was disabled by default on new Key Vaults. Now it's enabled by default.

It doesn't matter which Key Vault operation the tests attempt because the purpose is to validate the access token acquired by the credential. The simple fix here is to list the vault's secrets. This eliminates problems due to the state of the Vault's secrets (and requires authorization even when the vault has none).

@chlowell chlowell added Client This issue points to a problem in the data-plane of the library. Azure.Identity labels Apr 16, 2020
@chlowell chlowell requested a review from schaabs as a code owner April 16, 2020 17:43
@chlowell chlowell self-assigned this Apr 16, 2020
xiangyan99
xiangyan99 previously approved these changes Apr 17, 2020
@chlowell chlowell merged commit 379f829 into Azure:master Apr 17, 2020
@chlowell chlowell deleted the update-managed-id-tests branch April 17, 2020 20:01
iscai-msft added a commit to iscai-msft/azure-sdk-for-python that referenced this pull request Apr 20, 2020
…into fr_samples

* 'master' of https://github.com/Azure/azure-sdk-for-python:
  release mgmt loganalytics 0.4.0 (Azure#10923)
  Refresh appservice test (Azure#10911)
  Alertsmanagement test (Azure#10912)
  regeneated cosmos (Azure#10907)
  adding azure core to packaging (Azure#10910)
  [formrecognizer] update docstrings and adds literalincludes (Azure#10901)
  [formrecognizer] enable mypy (Azure#10864)
  Make live managed identity tests independent of soft delete (Azure#10879)
  [pylint] check newlines on docstring admonition statements for ms docs (Azure#10844)
  Add Search Synonym Maps (Azure#10831)
  Adding Ashish to CODEOWNERS for storage folder (Azure#10870)
  [text analytics] fix readme (Azure#10881)
  Track2 flakey test improvements (Azure#10767)
  [formrecognizer] error map (Azure#10882)
  [Batch] Update Management API used (Azure#10797)
  Autogenerated tests for keyvault (Azure#10849)
  Regenerated attestation (Azure#10847)
  [DataLake][FixDoc]The Doc is not accurate for rename operation (Azure#10857)
  [formrecognizer] working on tests (Azure#10711)
  [formrecognizer] preview 1 design changes (Azure#10677)
iscai-msft added a commit to iscai-msft/azure-sdk-for-python that referenced this pull request Apr 20, 2020
…into fr_readme

* 'master' of https://github.com/Azure/azure-sdk-for-python:
  [formrecognizer] rename async training method to train_model and sync method to begin_train_model (Azure#10929)
  Adding Azure Core Requirements (Azure#10926)
  release mgmt loganalytics 0.4.0 (Azure#10923)
  Refresh appservice test (Azure#10911)
  Alertsmanagement test (Azure#10912)
  regeneated cosmos (Azure#10907)
  adding azure core to packaging (Azure#10910)
  [formrecognizer] update docstrings and adds literalincludes (Azure#10901)
  [formrecognizer] enable mypy (Azure#10864)
  Make live managed identity tests independent of soft delete (Azure#10879)
  [pylint] check newlines on docstring admonition statements for ms docs (Azure#10844)
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.

2 participants