Skip to content

Commit

Permalink
[KeyVault] - Delete methods should ignore 404 (#15586)
Browse files Browse the repository at this point in the history
## What

- Ensure KeyVaultAccessControlClient delete* methods ignore 404s and return the raw response instead of the deleted model.
- Update tests to use `supportsTracing` helper

## Why

- This came up in a recent architecture discussion. By succeeding when trying to delete a role definition that was already deleted we make retries much easier for the consumer. 
- The `supportsTracing` helper was added after these tests were written and is much more comprehensive.

Resolves #15580
  • Loading branch information
maorleger authored Jun 8, 2021
1 parent 1948204 commit 2089881
Show file tree
Hide file tree
Showing 33 changed files with 1,252 additions and 1,065 deletions.
1 change: 1 addition & 0 deletions sdk/keyvault/keyvault-admin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Renamed `KeyVaultBeginSelectiveRestoreOptions` to `KeyVaultBeginSelectiveKeyRestoreOptions`.
- Renamed `KeyVaultSelectiveRestoreOperationState` to `KeyVaultSelectiveKeyRestoreOperationState`.
- Renamed `KeyVaultSelectiveRestoreResult` to `KeyVaultSelectiveKeyRestoreResult`.
- `deleteRoleAssignment` and `deleteRoleDefinition` will no longer throw an exception when the resource no longer exist, and will return the raw response of the operation.

## 4.0.0-beta.3 (2021-04-06)

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2089881

Please sign in to comment.