Skip to content

Commit db3e4e2

Browse files
azure-sdkckairen
andauthored
Sync eng/common directory with azure-sdk-tools for PR 3491 (Azure#22399)
* stress test script and docs migration from test to pg cluster * comments for stress-test-deployment-lib script Co-authored-by: Albert Cheng <[email protected]>
1 parent ae0dab0 commit db3e4e2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ function Login([string]$subscription, [string]$clusterGroup, [switch]$pushImages
6363
function DeployStressTests(
6464
[string]$searchDirectory = '.',
6565
[hashtable]$filters = @{},
66-
[string]$environment = 'test',
66+
# Default to playground environment
67+
[string]$environment = 'pg',
6768
[string]$repository = '',
6869
[switch]$pushImages,
6970
[string]$clusterGroup = '',
@@ -80,11 +81,11 @@ function DeployStressTests(
8081
})]
8182
[System.IO.FileInfo]$LocalAddonsPath
8283
) {
83-
if ($environment -eq 'test') {
84+
if ($environment -eq 'pg') {
8485
if ($clusterGroup -or $subscription) {
85-
Write-Warning "Overriding cluster group and subscription with defaults for 'test' environment."
86+
Write-Warning "Overriding cluster group and subscription with defaults for 'pg' environment."
8687
}
87-
$clusterGroup = 'rg-stress-cluster-test'
88+
$clusterGroup = 'rg-stress-cluster-pg'
8889
$subscription = 'Azure SDK Developer Playground'
8990
} elseif ($environment -eq 'prod') {
9091
if ($clusterGroup -or $subscription) {
@@ -96,7 +97,7 @@ function DeployStressTests(
9697

9798
if ($login) {
9899
if (!$clusterGroup -or !$subscription) {
99-
throw "clusterGroup and subscription parameters must be specified when logging into an environment that is not test or prod."
100+
throw "clusterGroup and subscription parameters must be specified when logging into an environment that is not pg or prod."
100101
}
101102
Login -subscription $subscription -clusterGroup $clusterGroup -pushImages:$pushImages
102103
}

0 commit comments

Comments
 (0)