forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KeyVault] - Fix user-agent tests in KeyVault Admin (Azure#21189)
### Packages impacted by this PR @azure/keyvault-admin ### Issues associated with this PR Resolves Azure#21188 ### Describe the problem that is addressed by this PR `KeyVaultClientContext` is a generated file that in core v1 included a non-exported constant `packageVersion`. Because we have a test that depends on that constant we always have to update the file to re-export it (as the generated code does not export it). Even worse, in coreV2 that constant is not even generated anymore, so the test is outdated. This PR fixes all of these issues by examining what we _actually_ care about, which is that our user-agent includes the correct package version. This way anyone can regenerate the code at any time without getting weird build errors.
- Loading branch information
Showing
10 changed files
with
123 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
sdk/keyvault/keyvault-admin/src/generated/keyVaultClientContext.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
sdk/keyvault/keyvault-certificates/src/generated/keyVaultClientContext.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
sdk/keyvault/keyvault-keys/src/generated/keyVaultClientContext.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
sdk/keyvault/keyvault-secrets/src/generated/keyVaultClientContext.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters