File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Network/Network.Test/ScenarioTests
Resources/Resources.Test/ScenarioTests Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -3089,17 +3089,17 @@ function Test-ApplicationGatewayPrivateEndpointWorkFlows
3089
3089
$approve = Approve-AzPrivateEndpointConnection - ResourceId $connection.Id
3090
3090
Assert-NotNull $approve ;
3091
3091
Assert-AreEqual " Approved" $approve.PrivateLinkServiceConnectionState.Status
3092
- Start-Sleep - s 30
3092
+ Start-TestSleep - s 30
3093
3093
3094
3094
# Deny Connection
3095
3095
$deny = Deny-AzPrivateEndpointConnection - ResourceId $connection.Id
3096
3096
Assert-NotNull $deny ;
3097
3097
Assert-AreEqual " Rejected" $deny.PrivateLinkServiceConnectionState.Status
3098
- Start-Sleep - s 30
3098
+ Start-TestSleep - s 30
3099
3099
3100
3100
# Remove Connection
3101
3101
$remove = Remove-AzPrivateEndpointConnection - ResourceId $connection.Id - Force
3102
- Start-Sleep - s 30
3102
+ Start-TestSleep - s 30
3103
3103
3104
3104
# Verify PrivateEndpointConnections on Application Gateway
3105
3105
$getgw = Get-AzApplicationGateway - Name $appgwName - ResourceGroupName $rgname
Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ function Test-InvokeResourceActionsWithResouceId
46
46
$statusChanged = $true
47
47
break
48
48
}
49
- start-sleep - seconds 20
49
+ if ([Microsoft.Azure.Test.HttpRecorder.HttpMockServer ]::Mode -ne [Microsoft.Azure.Test.HttpRecorder.HttpRecorderMode ]::Playback) {
50
+ start-sleep - seconds 20
51
+ }
50
52
}
51
53
52
54
Assert-True { $statusChanged }
Original file line number Diff line number Diff line change @@ -889,7 +889,9 @@ function Test-SetAResourceTagCase
889
889
890
890
# Set resource (add a new tag with key testTag2 = "TestVal2")
891
891
Set-AzResource - Tags @ {testtag = " testval" ; testTag2 = " TestVal2" } - ResourceGroupName $rgname - ResourceName $rname - ResourceType $resourceType - Properties @ {" key2" = " value2" } - Force
892
- Start-Sleep - s 30
892
+ if ([Microsoft.Azure.Test.HttpRecorder.HttpMockServer ]::Mode -ne [Microsoft.Azure.Test.HttpRecorder.HttpRecorderMode ]::Playback) {
893
+ Start-Sleep - s 30
894
+ }
893
895
$resource = Get-AzResource - ResourceGroupName $rgname - ResourceName $rname - ResourceType $resourceType
894
896
895
897
# Verify tag keys
@@ -908,7 +910,9 @@ function Test-SetAResourceTagCase
908
910
909
911
# Set resource (replace tags with keys of different cases)
910
912
Set-AzResource - Tags @ {testTag = " testVAL" ; testtag2 = " Testval2" } - ResourceGroupName $rgname - ResourceName $rname - ResourceType $resourceType - Properties @ {" key2" = " value2" } - Force
911
- Start-Sleep - s 30
913
+ if ([Microsoft.Azure.Test.HttpRecorder.HttpMockServer ]::Mode -ne [Microsoft.Azure.Test.HttpRecorder.HttpRecorderMode ]::Playback) {
914
+ Start-Sleep - s 30
915
+ }
912
916
$resource = Get-AzResource - ResourceGroupName $rgname - ResourceName $rname - ResourceType $resourceType
913
917
914
918
# Verify tag keys
You can’t perform that action at this time.
0 commit comments