Skip to content

Commit ebfa558

Browse files
committed
Rerecorded tests for NetworkWatcher: connectivityCheck, providerList, reachabilityReport
1 parent 1184100 commit ebfa558

File tree

5 files changed

+35249
-76321
lines changed

5 files changed

+35249
-76321
lines changed

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/NetworkWatcherAPITests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void TestFlowLog()
7575
NetworkResourcesController.NewInstance.RunPsTest("Test-FlowLog");
7676
}
7777

78-
[Fact(Skip = "There was a bug in API. After fix is deployed, we need to rerecord test.")]
78+
[Fact]
7979
[Trait(Category.AcceptanceType, Category.CheckIn)]
8080
public void TestConnectivityCheck()
8181
{
@@ -89,7 +89,7 @@ public void TestReachabilityReport()
8989
NetworkResourcesController.NewInstance.RunPsTest("Test-ReachabilityReport");
9090
}
9191

92-
[Fact(Skip = "There was a bug in API. After fix is deployed, we need to rerecord test.")]
92+
[Fact]
9393
[Trait(Category.AcceptanceType, Category.CheckIn)]
9494
public void TestProvidersList()
9595
{

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/NetworkWatcherAPITests.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ function Test-ConnectivityCheck
577577
# Setup
578578
$resourceGroupName = Get-ResourceGroupName
579579
$nwName = Get-ResourceName
580-
$location = "eastus"
580+
$location = "westcentralus"
581581
$resourceTypeParent = "Microsoft.Network/networkWatchers"
582582
$nwLocation = Get-ProviderLocation $resourceTypeParent
583583
$nwRgName = Get-ResourceGroupName
@@ -683,7 +683,7 @@ function Test-ProvidersList
683683
$nwName = Get-ResourceName
684684
$rglocation = Get-ProviderLocation ResourceManagement
685685
$resourceTypeParent = "Microsoft.Network/networkWatchers"
686-
$location = "westus"
686+
$location = "westcentralus"
687687

688688
try
689689
{
@@ -698,6 +698,7 @@ function Test-ProvidersList
698698
$job | Wait-Job
699699
$list1 = $job | Receive-Job
700700
$list2 = Get-AzureRmNetworkWatcherReachabilityProvidersList -NetworkWatcher $nw -Location "West US" -Country "United States" -State "washington"
701+
$list3 = Get-AzureRmNetworkWatcherReachabilityProvidersList -NetworkWatcher $nw -Location "West US" -Country "United States" -State "washington" -City "seattle"
701702

702703
Assert-AreEqual $list1.Countries.CountryName "United States"
703704
Assert-AreEqual $list2.Countries.CountryName "United States"

src/ResourceManager/Network/Commands.Network.Test/SessionRecords/Commands.Network.Test.ScenarioTests.NetworkWatcherAPITests/TestConnectivityCheck.json

Lines changed: 34732 additions & 76022 deletions
Large diffs are not rendered by default.

src/ResourceManager/Network/Commands.Network.Test/SessionRecords/Commands.Network.Test.ScenarioTests.NetworkWatcherAPITests/TestProvidersList.json

Lines changed: 198 additions & 150 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)