Skip to content

Commit 821ad04

Browse files
committed
Updating test recordings for management ipconfig
1 parent 7cf7748 commit 821ad04

File tree

2 files changed

+1557
-1561
lines changed

2 files changed

+1557
-1561
lines changed

src/Network/Network.Test/ScenarioTests/AzureFirewallTests.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ function Test-AzureFirewallCRUDwithManagementIpConfig {
998998
$rgname = Get-ResourceGroupName
999999
$azureFirewallName = Get-ResourceName
10001000
$resourceTypeParent = "Microsoft.Network/AzureFirewalls"
1001-
$location = Get-ProviderLocation $resourceTypeParent "centraluseuap"
1001+
$location = Get-ProviderLocation $resourceTypeParent "eastus2euap"
10021002

10031003
$vnetName = Get-ResourceName
10041004
$subnetName = "AzureFirewallSubnet"
@@ -1062,6 +1062,9 @@ function Test-AzureFirewallCRUDwithManagementIpConfig {
10621062
Assert-ThrowsContains { $getAzureFirewall.RemovePublicIpAddress("ABCD") } "Cannot convert argument"
10631063
Assert-ThrowsContains { $getAzureFirewall.RemovePublicIpAddress($mgmtPublicIp) } "not attached to firewall"
10641064

1065+
# Change Management PIP
1066+
$getAzureFirewall.ManagementIpConfiguration.PublicIpAddress = $mgmtPublicIp2
1067+
10651068
# Set AzureFirewall
10661069
Set-AzFirewall -AzureFirewall $getAzureFirewall
10671070

src/Network/Network.Test/SessionRecords/Commands.Network.Test.ScenarioTests.AzureFirewallTests/TestAzureFirewallCRUDwithManagementIpConfig.json

Lines changed: 1553 additions & 1560 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)