Skip to content

Commit a367614

Browse files
committed
Fix Network scenario tests in order to continue the test scripts on non-terminating error messages.
1 parent 7c7ca9d commit a367614

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed

src/ServiceManagement/Network/Commands.Network.Test/ScenarioTests/MultiVip/MultiVipTests.ps1

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@
2121

2222
function Test-AdditionalVipLifecycle
2323
{
24+
# Virtual Machine cmdlets are now showing a non-terminating error message for ResourceNotFound
25+
# To continue script, $ErrorActionPreference should be set to 'SilentlyContinue'.
26+
$ErrorActionPreference='SilentlyContinue';
27+
2428
# Setup
25-
2629
$vmname = getAssetName
2730
$vipName = getAssetName
2831
$serviceName = getAssetName
@@ -118,8 +121,11 @@ function CreateMultivipDeployment($vmname, $vipName, $serviceName, $storageAccou
118121
#>
119122
function Test-AdditionalVipMobility
120123
{
124+
# Virtual Machine cmdlets are now showing a non-terminating error message for ResourceNotFound
125+
# To continue script, $ErrorActionPreference should be set to 'SilentlyContinue'.
126+
$ErrorActionPreference='SilentlyContinue';
127+
121128
# Setup
122-
123129
$vmname = getAssetName
124130
$vipName = getAssetName
125131
$serviceName = getAssetName
@@ -176,8 +182,11 @@ function Test-AdditionalVipMobility
176182
#>
177183
function Test-ReserveExistingDeploymentIPMultivip
178184
{
185+
# Virtual Machine cmdlets are now showing a non-terminating error message for ResourceNotFound
186+
# To continue script, $ErrorActionPreference should be set to 'SilentlyContinue'.
187+
$ErrorActionPreference='SilentlyContinue';
188+
179189
# Setup
180-
181190
$vmname = getAssetName
182191
$vipName = getAssetName
183192
$serviceName = getAssetName
@@ -217,8 +226,11 @@ function Test-ReserveExistingDeploymentIPMultivip
217226

218227
function Test-SetLBEndpoint
219228
{
229+
# Virtual Machine cmdlets are now showing a non-terminating error message for ResourceNotFound
230+
# To continue script, $ErrorActionPreference should be set to 'SilentlyContinue'.
231+
$ErrorActionPreference='SilentlyContinue';
232+
220233
# Setup
221-
222234
$vmname = getAssetName
223235
$vipName = getAssetName
224236
$serviceName = getAssetName

src/ServiceManagement/Network/Commands.Network.Test/ScenarioTests/ReservedIPs/ReservedIPTests.ps1

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ function Test-AzureReservedIPSimpleOperations
4747

4848
function Test-CreateVMWithReservedIP
4949
{
50+
# Virtual Machine cmdlets are now showing a non-terminating error message for ResourceNotFound
51+
# To continue script, $ErrorActionPreference should be set to 'SilentlyContinue'.
52+
$ErrorActionPreference='SilentlyContinue';
53+
5054
# Setup
51-
5255
$vmname = getAssetName
5356
$serviceName = getAssetName
5457
$storageAccountName = getAssetName
@@ -98,8 +101,11 @@ function Test-CreateVMWithReservedIP
98101

99102
function Test-ReserveExistingDeploymentIP
100103
{
104+
# Virtual Machine cmdlets are now showing a non-terminating error message for ResourceNotFound
105+
# To continue script, $ErrorActionPreference should be set to 'SilentlyContinue'.
106+
$ErrorActionPreference='SilentlyContinue';
107+
101108
# Setup
102-
103109
$vmname = getAssetName
104110
$serviceName = getAssetName
105111
$storageAccountName = getAssetName
@@ -139,8 +145,11 @@ function Test-ReserveExistingDeploymentIP
139145
#>
140146
function Test-SetAzureReservedIPAssociationSingleVip
141147
{
148+
# Virtual Machine cmdlets are now showing a non-terminating error message for ResourceNotFound
149+
# To continue script, $ErrorActionPreference should be set to 'SilentlyContinue'.
150+
$ErrorActionPreference='SilentlyContinue';
151+
142152
# Setup
143-
144153
$vmname = getAssetName
145154
$serviceName = getAssetName
146155
$storageAccountName = getAssetName
@@ -192,8 +201,11 @@ function Test-SetAzureReservedIPAssociationSingleVip
192201

193202
function Test-RemoveAzureReservedIPAssociationSingleVip
194203
{
204+
# Virtual Machine cmdlets are now showing a non-terminating error message for ResourceNotFound
205+
# To continue script, $ErrorActionPreference should be set to 'SilentlyContinue'.
206+
$ErrorActionPreference='SilentlyContinue';
207+
195208
# Setup
196-
197209
$vmname = getAssetName
198210
$serviceName = getAssetName
199211
$storageAccountName = getAssetName

0 commit comments

Comments
 (0)