From 258a4002a2d17c811e1620f746dc628fcd3df184 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 23 Jun 2022 12:51:42 -0700 Subject: [PATCH 1/2] stress test script and docs migration from test to pg cluster --- .../stress-testing/stress-test-deployment-lib.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 index 0b57f1fb93384..691960838c6c4 100644 --- a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 +++ b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 @@ -63,7 +63,7 @@ function Login([string]$subscription, [string]$clusterGroup, [switch]$pushImages function DeployStressTests( [string]$searchDirectory = '.', [hashtable]$filters = @{}, - [string]$environment = 'test', + [string]$environment = 'pg', [string]$repository = '', [switch]$pushImages, [string]$clusterGroup = '', @@ -80,11 +80,11 @@ function DeployStressTests( })] [System.IO.FileInfo]$LocalAddonsPath ) { - if ($environment -eq 'test') { + if ($environment -eq 'pg') { if ($clusterGroup -or $subscription) { - Write-Warning "Overriding cluster group and subscription with defaults for 'test' environment." + Write-Warning "Overriding cluster group and subscription with defaults for 'pg' environment." } - $clusterGroup = 'rg-stress-cluster-test' + $clusterGroup = 'rg-stress-cluster-pg' $subscription = 'Azure SDK Developer Playground' } elseif ($environment -eq 'prod') { if ($clusterGroup -or $subscription) { @@ -96,7 +96,7 @@ function DeployStressTests( if ($login) { if (!$clusterGroup -or !$subscription) { - throw "clusterGroup and subscription parameters must be specified when logging into an environment that is not test or prod." + throw "clusterGroup and subscription parameters must be specified when logging into an environment that is not pg or prod." } Login -subscription $subscription -clusterGroup $clusterGroup -pushImages:$pushImages } From cb2af2e9c0af975b3d09efb7a111f9f6c9cadcd6 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Tue, 28 Jun 2022 14:21:23 -0700 Subject: [PATCH 2/2] comments for stress-test-deployment-lib script --- eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 index 691960838c6c4..97c4d925fe20a 100644 --- a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 +++ b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 @@ -63,6 +63,7 @@ function Login([string]$subscription, [string]$clusterGroup, [switch]$pushImages function DeployStressTests( [string]$searchDirectory = '.', [hashtable]$filters = @{}, + # Default to playground environment [string]$environment = 'pg', [string]$repository = '', [switch]$pushImages,