Skip to content

Network September release #10202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 112 commits into from
Oct 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
894274c
commit1
Sep 23, 2019
a278da4
PacketCapture1
Sep 23, 2019
7326f23
Introduce new SKUs and Generations for VirtualNetwork VPN gateways.
ritwikbasu Sep 25, 2019
dd69f39
Changes2
Sep 25, 2019
0e05611
fixing stop conn
Sep 25, 2019
fc08cb2
Fixing bugs
Sep 25, 2019
9047214
Review Comments
ritwikbasu Sep 25, 2019
2ca8eb7
commit4
Sep 25, 2019
8e141ce
IpConfChange
Sep 25, 2019
83e34b0
Merge pull request #5 from Azure/network-september
ejdelrio Sep 25, 2019
8616a84
Created definitions for traffic selector policy
ejdelrio Aug 29, 2019
fe63826
Implemnted trafficselector policy in connection configuration comandlets
ejdelrio Aug 29, 2019
2508220
Added traffic selector policy to NewAzureVirtualNetworkGatewayConnect…
ejdelrio Aug 29, 2019
c127bfc
Created New-AzTrafficSelectorPolicy.md to provide documentation of th…
ejdelrio Aug 29, 2019
802d7c2
Updated the ChangeLog to include upcoming changes
ejdelrio Aug 29, 2019
a2ae8d6
Added CRUD json for traffic selector.
ejdelrio Sep 18, 2019
51c8481
Added traffic selector powershell cmdlet to various files. Updated test
ejdelrio Sep 18, 2019
c2977ec
Added passing unit test with session record data
ejdelrio Sep 25, 2019
66c4216
Used ps script to generate MD file
ejdelrio Sep 25, 2019
0456ee5
Updated MDfile
ejdelrio Sep 25, 2019
2d8c8f8
Moved changes to the top
ejdelrio Sep 25, 2019
3a5965a
Updated documentation on New-AzVirtualNEtworkGatewayConnection and Se…
ejdelrio Sep 25, 2019
0879b62
Initial commit
Sep 25, 2019
86220e7
partial
jarango Sep 25, 2019
a43b038
API 2019-08-01
anton-evseev Sep 18, 2019
e4d3309
Network recordings
anton-evseev Sep 19, 2019
2974499
Recordings for Dns and PrivateDns
anton-evseev Sep 23, 2019
e7fd211
Recordings for NetAppFiles
anton-evseev Sep 23, 2019
ef100af
Network recordings
anton-evseev Sep 23, 2019
f0bc23a
Temporarily skip failing tests
anton-evseev Sep 25, 2019
aff0a49
Fixing output
Sep 26, 2019
a78363e
Fixing Comments
Sep 26, 2019
43c85d5
Fixing Comments
Sep 26, 2019
e2956c8
Improve exception handling in Cortex cmdlets
anton-evseev Sep 26, 2019
7c44b60
CredScan suppression
anton-evseev Sep 26, 2019
d2a8afc
Renamed powershell parameter
jarango Sep 26, 2019
fc4b953
Help file generation
jarango Sep 26, 2019
05f2a23
adding tests
Sep 27, 2019
d77cd2c
Update AppGw tests
anton-evseev Sep 27, 2019
c65e783
Review Comments
ritwikbasu Sep 27, 2019
4457562
Tests and bug fixes
jarango Sep 27, 2019
072efd5
Resolving Internal Comments
Sep 27, 2019
499018e
Reverting PS-VSPrompt.lnk to original in network-september. Commiting…
jarango Sep 27, 2019
de7e9ea
Merge pull request #10106 from ritwikbasu/network-september
erich-wang Sep 29, 2019
6675241
GatewayTests
Sep 30, 2019
e93efb2
Merge branch 'network-september' into nrp-2019-08-01
anton-evseev Sep 30, 2019
9d8b6f0
Fixes after merge
anton-evseev Sep 30, 2019
3108ad8
Merge pull request #10115 from number213/nrp-2019-08-01
cormacpayne Sep 30, 2019
72fbbfd
Changed online version URL from blank to Analyze
ejdelrio Sep 30, 2019
3265b08
Initial commit
Sep 25, 2019
6992ec5
Add BgpCommunities property to VirtualNetwork resource
jarango Sep 25, 2019
f26a44a
Merge branch 'network-september' into eddelrio/traffic_selector
anton-evseev Sep 30, 2019
fef383e
commit1
Sep 23, 2019
ea3e0c1
IpConfChange
Sep 25, 2019
9aa86fc
Fixing Comments
Sep 26, 2019
6762188
Resolving Internal Comments
Sep 27, 2019
d74d90f
Merge branch 'jearango-network-september' of https://github.com/jaran…
jarango Sep 30, 2019
0d28214
Merge branch 'support-esp-ah-protocols' of https://github.com/wdehric…
Sep 30, 2019
192ade5
Session recording with Merge of PR #10115 (API 2019-08-01)
jarango Sep 30, 2019
03b7ca7
Add testing and update change log
Sep 30, 2019
e83a5b7
Fix formatting issues
Sep 30, 2019
1ebd5b7
Test recording
anton-evseev Sep 30, 2019
4e08874
Re-recording tests without hardcoded group name
jarango Oct 1, 2019
680e490
Adding help files
Oct 1, 2019
c73cc91
Merge branch 'BastionChanges' of https://github.com/Khushboo-Baheti/a…
Oct 1, 2019
c82cd35
Resolving Comments
Oct 1, 2019
b8ee93a
Adding ConnTests Records
Oct 1, 2019
c829f54
Fixing vsPrompt
Oct 1, 2019
cd54650
Merge pull request #10113 from wdehrich/support-esp-ah-protocols
markcowl Oct 1, 2019
d127487
Merge branch 'network-september' into jearango-network-september
markcowl Oct 1, 2019
d867d5f
Merge branch 'network-september' into BastionChanges
markcowl Oct 1, 2019
be27293
Merge branch 'network-september' into PacketCaptureChanges
markcowl Oct 1, 2019
cc4de26
Merge pull request #10141 from jarango/jearango-network-september
markcowl Oct 1, 2019
1f06c4a
Re-ran test with pulled changes
ejdelrio Oct 1, 2019
3243134
Fixing Help change request
Oct 1, 2019
732c8d2
Changed naming conventions from plural to singular
ejdelrio Oct 1, 2019
1578569
Updated test data
ejdelrio Oct 1, 2019
df8d55e
Merge branch 'BastionChanges' of https://github.com/Khushboo-Baheti/a…
Oct 1, 2019
7d6bed8
Merge pull request #3 from Azure/network-september
Khushboo-Baheti Oct 1, 2019
59d2d4e
Merge branch 'network-september' into eddelrio/traffic_selector
ejdelrio Oct 1, 2019
c6a4a12
Resolving Comments
Oct 1, 2019
3c9e466
Merge branch 'PacketCaptureChanges' of https://github.com/Khushboo-Ba…
Oct 1, 2019
b0967a2
Added shouldprocess parameter
ejdelrio Oct 1, 2019
1d88a80
Merge branch 'eddelrio/traffic_selector' of https://github.com/ejdelr…
ejdelrio Oct 1, 2019
89cc3fa
Fixing Errors
Oct 1, 2019
d658600
fixing Json files
Oct 2, 2019
5d74d8f
Merge branch 'network-september' into BastionChanges
markcowl Oct 2, 2019
0d89e8e
Fixxing Security Errors
Oct 2, 2019
7696797
Merge pull request #10142 from Khushboo-Baheti/BastionChanges
markcowl Oct 2, 2019
908cffa
Rename TestVirtualNetworkGatewayConnectionwithTrafficSelectorCRUD.jso…
ejdelrio Oct 2, 2019
1b4a47e
Minor : Fixed typo in comment
ejdelrio Oct 2, 2019
d238bca
Merge branch 'network-september' into eddelrio/traffic_selector
ejdelrio Oct 2, 2019
c60e802
Merge branch 'network-september' into PacketCaptureChanges
Khushboo-Baheti Oct 2, 2019
6f8488d
Fixing Tests
Oct 2, 2019
30b6cd6
Fixing Help Files
Oct 2, 2019
65960df
Fixing Tests2
Oct 3, 2019
cf340a1
fixing Tests
Oct 3, 2019
53da254
Merge pull request #10111 from ejdelrio/eddelrio/traffic_selector
markcowl Oct 3, 2019
9c22f1a
Merge branch 'network-september' into PacketCaptureChanges
anton-evseev Oct 3, 2019
229870b
Remove local SDK package and use one from NuGet
anton-evseev Oct 3, 2019
7a54c1f
Merge pull request #10164 from Khushboo-Baheti/PacketCaptureChanges
markcowl Oct 4, 2019
d463013
Merge branch 'network-september' into network-sdk
markcowl Oct 4, 2019
1179302
Merge pull request #10188 from number213/network-sdk
anton-evseev Oct 4, 2019
4857b90
Add Get-AzAvailableServiceAlias cmdlet.
JK-microsoft Oct 4, 2019
85a88c1
Merge branch 'network-september' into usr/jakhuran/mergeGetAvailableS…
jkhurana19 Oct 4, 2019
da720ed
PR changes: update link in help and rename the modeling class to PsAv…
JK-microsoft Oct 4, 2019
11ee14a
Merge branch 'usr/jakhuran/mergeGetAvailableServiceAlias' of https://…
JK-microsoft Oct 4, 2019
a5f68d2
Merge pull request #10198 from jkhurana19/usr/jakhuran/mergeGetAvaila…
markcowl Oct 7, 2019
793d35c
Merge remote-tracking branch 'remotes/upstream/master' into merge
anton-evseev Oct 7, 2019
63f192e
Fix after incorrect merge
anton-evseev Oct 7, 2019
13668a2
Update Network SDK in SqlVirtualMachine.Test.csproj
anton-evseev Oct 8, 2019
55e0ebe
Merge branch 'master' into merge
erich-wang Oct 8, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Management.CognitiveServices" Version="6.0.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.15.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Compute/Compute.Test/Compute.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="29.1.0" />
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="2.4.2" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.15.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Management.DataLake.Store" Version="2.4.2-preview" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.15.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Dns/Dns.Test/Dns.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Management.Dns" Version="3.0.1" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.15.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
</ItemGroup>

</Project>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/KeyVault/KeyVault.Test/KeyVault.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.1" />
<PackageReference Include="Microsoft.Azure.KeyVault.WebKey" Version="3.0.1" />
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="2.4.2" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.15.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/NetAppFiles/NetAppFiles.Test/NetAppFiles.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Management.NetApp" Version="1.1.0" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.15.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function Test-VolumeCrud
Assert-AreEqual $retrievedVolume.ExportPolicy.Rules[0].AllowedClients '0.0.0.0/0'
Assert-AreEqual $retrievedVolume.ExportPolicy.Rules[1].AllowedClients '1.2.3.0/24'
Assert-AreEqual $retrievedVolume.ProtocolTypes[0] 'NFSv3'
Assert-AreEqual $retrievedVolume.ProtocolTypes[1] 'NFSv4'
Assert-AreEqual $retrievedVolume.ProtocolTypes[1] 'NFSv4.1'
Assert-NotNull $retrievedVolume.MountTargets

# create second volume and check using the confirm flag
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Network/Network.Test/Network.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.15.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.16.0-preview" />
<PackageReference Include="Microsoft.Azure.Insights" Version="0.16.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="29.1.0" />
<PackageReference Include="Microsoft.Azure.Management.ContainerInstance" Version="2.0.0" />
Expand Down
35 changes: 20 additions & 15 deletions src/Network/Network.Test/ScenarioTests/ApplicationGatewayTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ function Test-ApplicationGatewayCRUDRewriteRuleSet

# remove autoscale config
$getgw = Remove-AzApplicationGatewayAutoscaleConfiguration -ApplicationGateway $getgw -Force
$getgw = Set-AzApplicationGatewaySku -Name Standard_v2 -Tier Standard_v2 -Capacity 3 -ApplicationGateway $getgw
$getgw = Set-AzApplicationGatewaySku -Name Standard_v2 -Tier Standard_v2 -Capacity 2 -ApplicationGateway $getgw

# Set
$getgw01 = Set-AzApplicationGateway -ApplicationGateway $getgw
Expand Down Expand Up @@ -750,7 +750,7 @@ function Test-ApplicationGatewayCRUDRewriteRuleSet
# check sku
$sku01 = Get-AzApplicationGatewaySku -ApplicationGateway $getgw01
Assert-NotNull $sku01
Assert-AreEqual $sku01.Capacity 3
Assert-AreEqual $sku01.Capacity 2
Assert-AreEqual $sku01.Name Standard_v2
Assert-AreEqual $sku01.Tier Standard_v2

Expand Down Expand Up @@ -919,7 +919,7 @@ function Test-ApplicationGatewayCRUDRewriteRuleSetWithConditions

# remove autoscale config
$getgw = Remove-AzApplicationGatewayAutoscaleConfiguration -ApplicationGateway $getgw -Force
$getgw = Set-AzApplicationGatewaySku -Name Standard_v2 -Tier Standard_v2 -Capacity 3 -ApplicationGateway $getgw
$getgw = Set-AzApplicationGatewaySku -Name Standard_v2 -Tier Standard_v2 -Capacity 2 -ApplicationGateway $getgw

# Set
$getgw01 = Set-AzApplicationGateway -ApplicationGateway $getgw
Expand Down Expand Up @@ -954,7 +954,7 @@ function Test-ApplicationGatewayCRUDRewriteRuleSetWithConditions
# check sku
$sku01 = Get-AzApplicationGatewaySku -ApplicationGateway $getgw01
Assert-NotNull $sku01
Assert-AreEqual $sku01.Capacity 3
Assert-AreEqual $sku01.Capacity 2
Assert-AreEqual $sku01.Name Standard_v2
Assert-AreEqual $sku01.Tier Standard_v2

Expand Down Expand Up @@ -1088,15 +1088,15 @@ function Test-ApplicationGatewayCRUD3

# remove autoscale config
$getgw = Remove-AzApplicationGatewayAutoscaleConfiguration -ApplicationGateway $getgw -Force
$getgw = Set-AzApplicationGatewaySku -Name Standard_v2 -Tier Standard_v2 -Capacity 3 -ApplicationGateway $getgw
$getgw = Set-AzApplicationGatewaySku -Name Standard_v2 -Tier Standard_v2 -Capacity 2 -ApplicationGateway $getgw

# Set
$getgw01 = Set-AzApplicationGateway -ApplicationGateway $getgw

# check sku
$sku01 = Get-AzApplicationGatewaySku -ApplicationGateway $getgw01
Assert-NotNull $sku01
Assert-AreEqual $sku01.Capacity 3
Assert-AreEqual $sku01.Capacity 2
Assert-AreEqual $sku01.Name Standard_v2
Assert-AreEqual $sku01.Tier Standard_v2

Expand Down Expand Up @@ -1739,20 +1739,24 @@ function Test-ApplicationGatewayCRUDSubItems2
$appgw = Set-AzApplicationGateway -ApplicationGateway $appgw

# WAF Policy and Custom Rule
$variable = New-AzApplicationGatewayFirewallMatchVariable -VariableName RequestHeaders -Selector Content-Length
# Disabled until Firewall Policy cmdlets are updated
<#$variable = New-AzApplicationGatewayFirewallMatchVariable -VariableName RequestHeaders -Selector Content-Length
$condition = New-AzApplicationGatewayFirewallCondition -MatchVariable $variable -Operator GreaterThan -MatchValue 1000 -Transform Lowercase -NegationCondition $False
$rule = New-AzApplicationGatewayFirewallCustomRule -Name example -Priority 2 -RuleType MatchRule -MatchCondition $condition -Action Block
New-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname -Location $location
$policy = Get-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname
$policy.CustomRules = $rule
Set-AzApplicationGatewayFirewallPolicy -InputObject $policy
# Get Application Gateway
Set-AzApplicationGatewayFirewallPolicy -InputObject $policy#>

# Get Application Gateway
$appgw = Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $rgname
$appgw.FirewallPolicy = $policy
$appgw = Set-AzApplicationGateway -ApplicationGateway $appgw

# Disabled until Firewall Policy cmdlets are updated
#$appgw.FirewallPolicy = $policy
#$appgw = Set-AzApplicationGateway -ApplicationGateway $appgw

$appgw = Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $rgname
$policy = Get-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname
#$policy = Get-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname

# First Check firewall configuraiton
Assert-AreEqual $appgw.WebApplicationFirewallConfiguration.Enabled $true
Expand All @@ -1764,9 +1768,10 @@ function Test-ApplicationGatewayCRUDSubItems2
Assert-AreEqual $appgw.WebApplicationFirewallConfiguration.MaxRequestBodySizeInKb 80
Assert-AreEqual $appgw.WebApplicationFirewallConfiguration.FileUploadLimitInMb 70
Assert-AreEqual $appgw.WebApplicationFirewallConfiguration.Exclusions.Count 2


# Disabled until Firewall Policy cmdlets are updated
# Second check firewll policy
Assert-AreEqual $policy.Id $appgw.FirewallPolicy.Id
<#Assert-AreEqual $policy.Id $appgw.FirewallPolicy.Id
Assert-AreEqual $policy.CustomRules[0].Name $rule.Name
Assert-AreEqual $policy.CustomRules[0].RuleType $rule.RuleType
Assert-AreEqual $policy.CustomRules[0].Action $rule.Action
Expand All @@ -1776,7 +1781,7 @@ function Test-ApplicationGatewayCRUDSubItems2
Assert-AreEqual $policy.CustomRules[0].MatchConditions[0].NegationConditon $rule.MatchConditions[0].NegationConditon
Assert-AreEqual $policy.CustomRules[0].MatchConditions[0].MatchValues[0] $rule.MatchConditions[0].MatchValues[0]
Assert-AreEqual $policy.CustomRules[0].MatchConditions[0].MatchVariables[0].VariableName $rule.MatchConditions[0].MatchVariables[0].VariableName
Assert-AreEqual $policy.CustomRules[0].MatchConditions[0].MatchVariables[0].Selector $rule.MatchConditions[0].MatchVariables[0].Selector
Assert-AreEqual $policy.CustomRules[0].MatchConditions[0].MatchVariables[0].Selector $rule.MatchConditions[0].MatchVariables[0].Selector#>

# Set non-exiting
Assert-ThrowsLike { Set-AzApplicationGatewayHttpListenerCustomError -HttpListener $listener01 -StatusCode HttpStatus408 -CustomErrorPageUrl $customError403Url02 } "*does not exist*"
Expand Down
36 changes: 36 additions & 0 deletions src/Network/Network.Test/ScenarioTests/AvailableAliasTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Commands.Network.Test.ScenarioTests;
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Xunit;

namespace Commands.Network.Test.ScenarioTests
{
public class AvailableAliasTests :NetworkTestRunner
{
public AvailableAliasTests(Xunit.Abstractions.ITestOutputHelper output)
: base(output)
{
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, NrpTeamAlias.sdnnrp)]
public void TestAvailableAliasList()
{
TestRunner.RunTestScript( "Test-GetAvailableAliasList");
}
}
}
33 changes: 33 additions & 0 deletions src/Network/Network.Test/ScenarioTests/AvailableAliasTests.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------

<#
.SYNOPSIS
Tests checking API to list available Alias.
#>
function Test-GetAvailableAliasList
{
$location = Get-ProviderLocation ResourceManagement

try
{
$results = Get-AzAvailableServiceAlias -Location $location;
Assert-NotNull $results;
}
finally
{
# Cleanup
Clean-ResourceGroup $rgname
}
}
61 changes: 61 additions & 0 deletions src/Network/Network.Test/ScenarioTests/BastionTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

namespace Commands.Network.Test.ScenarioTests
{
using Microsoft.Azure.Commands.Network.Test.ScenarioTests;
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Xunit;
using Xunit.Abstractions;

public class BastionTests : NetworkTestRunner
{
public BastionTests(ITestOutputHelper output)
: base(output)
{
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, Category.bastion)]
public void TestBastionCRUD()
{
TestRunner.RunTestScript("Test-BastionCRUD");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, Category.bastion)]
public void TestBastionVnetsIpObjectsParams()
{
TestRunner.RunTestScript("Test-BastionVnetsIpObjectsParams");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, Category.bastion)]
public void TestBastionVnetObjectParam()
{
TestRunner.RunTestScript("Test-BastionVnetObjectParam");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, Category.bastion)]
public void TestBastionIpObjectParam()
{
TestRunner.RunTestScript("Test-BastionIpObjectParam");
}
}
}
Loading