-
Notifications
You must be signed in to change notification settings - Fork 23
Fixing the Audience in the load testing apis | Adding the retries for patch test | Securty issue to update the shell commands #131
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
20ec72d
Update README.md
mohitpavan 9012764
Refactor cloud token scopes to use TaskParameters
mohitpavan 3d89755
Add token scopes for Azure management
mohitpavan c4904b3
Simplify token retrieval in AuthenticatorService
mohitpavan 2d78928
Update AzCliUtility.js
mohitpavan f227175
Refactor httpClientRetries for improved readability
mohitpavan 92db3c3
Refactor getTaskParameters and update subscription logic
mohitpavan 2fc6042
Refactor token scopes to use enums
mohitpavan 4fa0cc4
Refactor token scopes in TaskParameters interface
mohitpavan 00a1b86
Simplify token retrieval in getTokenAPI
mohitpavan c6bfceb
Refactor execAz function to accept token scope
mohitpavan 76ef294
Refactor httpClientRetries for improved error handling
mohitpavan 72dd8fa
Refactor subscription parameter retrieval methods
mohitpavan d2639bc
Refactor test stubs for AzCliUtility calls
mohitpavan 93ea47f
Increase timeout for deleteFileAPI test
mohitpavan fde2f27
Add conditional for installing dependencies on main branch
mohitpavan eb7f825
correcting UTs.
mohitpavan f4708d8
Merge branch 'users/mohit/aud-fix' of https://github.com/Azure/load-t…
mohitpavan 51a8e1d
fixing installation step.
mohitpavan 8304585
updating redme.
mohitpavan 130b7b1
printing the platform
mohitpavan ffcd028
account show is not working in the cmd.
mohitpavan 17e359c
changed back to true.
mohitpavan 6ee63c5
changing js too.
mohitpavan 7cefaa4
change.
mohitpavan d76f3d9
updating function name and removing console.
mohitpavan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,15 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.AzureUSGovernmentCloud = exports.AzurePublicCloud = void 0; | ||
| const TaskParameters_1 = require("../models/TaskParameters"); | ||
| exports.AzurePublicCloud = { | ||
| cloudName: "AzureCloud", | ||
| armTokenScope: "https://management.core.windows.net", | ||
| dataPlaneTokenScope: "https://loadtest.azure-dev.com", | ||
| armTokenScope: TaskParameters_1.armPublicTokenScope, | ||
| dataPlaneTokenScope: TaskParameters_1.publicTokenScope, | ||
| armEndpoint: "https://management.azure.com", | ||
| }; | ||
| exports.AzureUSGovernmentCloud = { | ||
| cloudName: "AzureUSGovernment", | ||
| armTokenScope: "https://management.usgovcloudapi.net", | ||
| dataPlaneTokenScope: "https://cnt-prod.loadtesting.azure.us", | ||
| armTokenScope: TaskParameters_1.armUsGovernmentTokenScope, | ||
| dataPlaneTokenScope: TaskParameters_1.usGovernmentTokenScope, | ||
| }; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,7 @@ | ||
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.armUsGovernmentTokenScope = exports.armPublicTokenScope = exports.usGovernmentTokenScope = exports.publicTokenScope = void 0; | ||
| exports.publicTokenScope = "https://cnt-prod.loadtesting.azure.com"; | ||
| exports.usGovernmentTokenScope = "https://cnt-prod.loadtesting.azure.us"; | ||
| exports.armPublicTokenScope = "https://management.core.windows.net"; | ||
| exports.armUsGovernmentTokenScope = "https://management.usgovcloudapi.net"; |
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,21 @@ | ||
| import { ControlPlaneTokenScope, DataPlaneTokenScope, publicTokenScope, usGovernmentTokenScope, armUsGovernmentTokenScope, armPublicTokenScope } from "../models/TaskParameters"; | ||
|
|
||
| type EnvironmentSettings = { | ||
| cloudName: string; | ||
| armTokenScope: string; | ||
| dataPlaneTokenScope: string; | ||
| armTokenScope: ControlPlaneTokenScope; | ||
| dataPlaneTokenScope: DataPlaneTokenScope; | ||
| armEndpoint?: string; | ||
| } | ||
|
|
||
| export const AzurePublicCloud: EnvironmentSettings = { | ||
| cloudName: "AzureCloud", | ||
| armTokenScope: "https://management.core.windows.net", | ||
| dataPlaneTokenScope: "https://loadtest.azure-dev.com", | ||
| armTokenScope: armPublicTokenScope, | ||
| dataPlaneTokenScope: publicTokenScope, | ||
| armEndpoint: "https://management.azure.com", | ||
| } | ||
|
|
||
| export const AzureUSGovernmentCloud: EnvironmentSettings = { | ||
| cloudName: "AzureUSGovernment", | ||
| armTokenScope: "https://management.usgovcloudapi.net", | ||
| dataPlaneTokenScope: "https://cnt-prod.loadtesting.azure.us", | ||
| } | ||
| armTokenScope: armUsGovernmentTokenScope, | ||
| dataPlaneTokenScope: usGovernmentTokenScope, | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,18 @@ | ||
| export const publicTokenScope = "https://cnt-prod.loadtesting.azure.com"; | ||
| export const usGovernmentTokenScope = "https://cnt-prod.loadtesting.azure.us"; | ||
| export const armPublicTokenScope = "https://management.core.windows.net"; | ||
| export const armUsGovernmentTokenScope = "https://management.usgovcloudapi.net"; | ||
| export type ControlPlaneTokenScope = typeof armPublicTokenScope | typeof armUsGovernmentTokenScope; | ||
| export type DataPlaneTokenScope = typeof publicTokenScope | typeof usGovernmentTokenScope; | ||
|
|
||
| export type AccountType = 'Subscription' | 'Cloud'; // cloud is what the service principal logged into, should be only 1. | ||
|
|
||
| export interface TaskParameters { | ||
| subscriptionId: string; | ||
| subscriptionName: string; | ||
| environment: string; | ||
| armTokenScope: string; | ||
| dataPlaneTokenScope: string; | ||
| armTokenScope: ControlPlaneTokenScope; | ||
| dataPlaneTokenScope: DataPlaneTokenScope; | ||
| resourceId: string; | ||
| armEndpoint?: string; | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.