Skip to content

. #58

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 62 commits into from
Jul 29, 2015
Merged

. #58

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
74c142f
Auto Generate Invoke Cmdlets for Compute
huangpf Jul 3, 2015
244e98e
Update Comment
huangpf Jul 7, 2015
9254fdc
Update PIR Proj. with Auto-Generated Cmdlets
huangpf Jul 8, 2015
b743aa9
Merge branch 'dev' of https://github.com/huangpf/azure-powershell int…
huangpf Jul 8, 2015
b855ded
Changed the cmdlet suffix to 'Method'
huangpf Jul 8, 2015
61bf7cd
Add Parameter Cmdlets
huangpf Jul 8, 2015
23406f7
Update
huangpf Jul 9, 2015
6339abd
remove unused code
huangpf Jul 9, 2015
7739908
Merge pull request #41 from Azure/dev
huangpf Jul 9, 2015
9871d4f
Test Update
huangpf Jul 9, 2015
192bef7
Merge branch 'dev' of https://github.com/huangpf/azure-powershell int…
huangpf Jul 9, 2015
a4d2153
update
huangpf Jul 9, 2015
09e5ede
Update Build Target
huangpf Jul 10, 2015
e946389
Update
huangpf Jul 10, 2015
2c2fdcc
Merge branch 'dev' of https://github.com/huangpf/azure-powershell int…
huangpf Jul 10, 2015
67013db
Merge branch 'dev' of https://github.com/huangpf/azure-powershell int…
huangpf Jul 10, 2015
cae351d
Include Sub-Param and List Types
huangpf Jul 11, 2015
8dafb0f
Merge branch 'dev' of https://github.com/huangpf/azure-powershell int…
huangpf Jul 11, 2015
4f98cd6
- Use Verb Code Instead of Strings
huangpf Jul 13, 2015
4e6f318
Merge branch 'dev' of https://github.com/huangpf/azure-powershell int…
huangpf Jul 13, 2015
0214df5
Add some comments
huangpf Jul 13, 2015
c2b395e
Address CR
huangpf Jul 14, 2015
0796ee8
Merge branch 'dev' of https://github.com/huangpf/azure-powershell int…
huangpf Jul 14, 2015
544eab5
Handle Name Spaces
huangpf Jul 14, 2015
5df8e86
Update for bool
huangpf Jul 14, 2015
7198489
Handle ValueFromPipelineByPropertyName
huangpf Jul 14, 2015
576b12d
Update DateTime
huangpf Jul 14, 2015
8919393
Fix Invoke Verb
huangpf Jul 14, 2015
d1df023
Merge branch 'dev' of https://github.com/huangpf/azure-powershell int…
huangpf Jul 14, 2015
7747446
Merge branch 'dev' of https://github.com/huangpf/azure-powershell int…
huangpf Jul 14, 2015
8fa005d
Add OutputType
huangpf Jul 14, 2015
76798f5
Add VM Tests
huangpf Jul 14, 2015
ea7d541
Invoke-AzureComputeMethod
huangpf Jul 17, 2015
9c1a5a4
+ ParseParameter & Tests
huangpf Jul 17, 2015
65677db
+ NewAzureComputeParameterCmdlet & Tests
huangpf Jul 17, 2015
a41fd99
Set Default ParamSet
huangpf Jul 18, 2015
2d250e0
Move to Preview Module
huangpf Jul 18, 2015
2f0268d
Remove Individual Invoke Cmdlets
huangpf Jul 18, 2015
c0e7e98
Use Dynamic Parameters
huangpf Jul 18, 2015
1811cc2
Use Explicit FunctionName param to distinguish two param sets
huangpf Jul 18, 2015
dabfaaa
Merge branch 'dev' of https://github.com/huangpf/azure-powershell int…
huangpf Jul 18, 2015
88d7ecf
remove unused build target
huangpf Jul 18, 2015
f847735
AllowNull for DiskSizeInGB
huangpf Jul 18, 2015
03a4fba
Update Tests
huangpf Jul 18, 2015
f94820e
Fix Param
huangpf Jul 19, 2015
681423b
AllowNull
huangpf Jul 19, 2015
87606d2
Update
huangpf Jul 19, 2015
1257f97
Separate the code into files
huangpf Jul 20, 2015
b24b87b
Throw Warnings if Deployment Cannot be Found in the IaaS cmdlets
huangpf Jul 21, 2015
6bb07c7
Fix TableColumnHeader for Get-AzureVM
huangpf Jul 21, 2015
dcc0677
Merge branch 'dev' of https://github.com/huangpf/azure-powershell int…
huangpf Jul 24, 2015
2b4d1df
Change -Parameter to -ArgumentList (ref. to New-Object)
huangpf Jul 24, 2015
048bf57
ArgumentList Update
huangpf Jul 24, 2015
390e24f
+ PSArgument
huangpf Jul 25, 2015
a801c91
New-AzureComputeParameterObject
huangpf Jul 25, 2015
b556fd1
+ Format File
huangpf Jul 25, 2015
90dcdf6
Update WXI
huangpf Jul 25, 2015
c6aa681
Help File Update
huangpf Jul 25, 2015
37b9141
remove wxi files
huangpf Jul 25, 2015
0a2d8da
Merge branch 'dev' of https://github.com/huangpf/azure-powershell int…
huangpf Jul 25, 2015
6dec519
wxi update
huangpf Jul 26, 2015
0ea0dcf
Merge pull request #631 from huangpf/d0717
stankovski Jul 29, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
380 changes: 380 additions & 0 deletions setup/azurecmdfiles.wxi

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/AzurePowershell.sln
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTest", "Co
ProjectSection(ProjectDependencies) = postProject
{CD5AA507-F5EF-473D-855B-84B91A1ABE54} = {CD5AA507-F5EF-473D-855B-84B91A1ABE54}
{DDF5D225-C9C5-42B7-BDB5-2C3646E479AA} = {DDF5D225-C9C5-42B7-BDB5-2C3646E479AA}
{E895BBDA-0B06-46AB-B909-9B97B3ECE47E} = {E895BBDA-0B06-46AB-B909-9B97B3ECE47E}
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ServiceManagement", "ServiceManagement\Compute\Commands.ServiceManagement\Commands.ServiceManagement.csproj", "{E1CA72BA-8374-45F6-904D-FD34ECDF5B6F}"
Expand Down Expand Up @@ -577,6 +578,7 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{B7FD03F6-98BC-4F54-9A14-0455E579FCD4} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{37455286-D8A7-4E0C-8B4D-C517D20C641A} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{D6F470A6-7395-4B8B-9D29-44DF0EC8F624} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{A3965B66-5A3E-4B8C-9574-28E5958D4828} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
Expand All @@ -587,7 +589,6 @@ Global
{4BC0E3D3-6EDD-43AA-8F15-DCFED8ACC93D} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{9D5A40CA-5594-4F5C-8230-7ADF7CC0558E} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{3B48A77B-5956-4A62-9081-92BA04B02B27} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{B7FD03F6-98BC-4F54-9A14-0455E579FCD4} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{4C2FE49A-09E1-4979-AD46-CD64FD04C8F7} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{374D4000-DEDE-4995-9B63-E3B9FE0C4D29} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{127D0D51-FDEA-4E1A-8CD8-34DEB5C2F7F6} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
Expand Down
12 changes: 12 additions & 0 deletions src/Common/Commands.ScenarioTest/Commands.ScenarioTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,18 @@
<None Include="SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.AutomationTests\TestAutomationSuspendAndResumeJob.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.ServiceManagementTests\RunAutoGeneratedHostedServiceCmdletTests.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.ServiceManagementTests\RunAutoGeneratedVirtualMachineCmdletTests.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.ServiceManagementTests\RunNewAzureComputeArgumentListTests.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.ServiceManagementTests\RunNewAzureComputeParameterObjectTests.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.ServiceManagementTests\RunServiceManagementCloudExceptionTests.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,217 @@ function Run-StartAndStopMultipleVirtualMachinesTest
# Cleanup
Cleanup-CloudService $svcName;
}
}

# Run Auto-Generated Hosted Service Cmdlet Tests
function Run-AutoGeneratedHostedServiceCmdletTests
{
# Setup
$location = Get-DefaultLocation;
$imgName = Get-DefaultImage $location;

$storageName = 'pstest' + (getAssetName);
New-AzureStorageAccount -StorageAccountName $storageName -Location $location;

# Associate the new storage account with the current subscription
Set-CurrentStorageAccountName $storageName;

$vmNameList = @("vm01", "vm02", "test04");
$svcName = 'pstest' + (Get-CloudServiceName);
$userName = "pstestuser";
$password = "p@ssw0rd";

try
{
# Create Parameters
$svcCreateParams = New-AzureComputeParameterObject -FriendlyName 'HostedServiceCreateParameters';
$svcCreateParams.ServiceName = $svcName;
$svcCreateParams.Location = $location;
$svcCreateParams.Description = $svcName;
$svcCreateParams.Label = $svcName;

# Invoke Create
$st = Invoke-AzureComputeMethod -MethodName 'HostedServiceCreate' -HostedServiceCreateParameters $svcCreateParams;

Assert-AreEqual $st.StatusCode 'Created';
Assert-NotNull $st.RequestId;

# Invoke Get
$svcGetResult = Invoke-AzureComputeMethod -MethodName 'HostedServiceGet' -ServiceName $svcName;
Assert-AreEqual $svcGetResult.ServiceName $svcName;
Assert-AreEqual $svcGetResult.Properties.Description $svcName;
Assert-AreEqual $svcGetResult.Properties.Label $svcName;

# Update Parameters
$svcUpdateParams = New-AzureComputeParameterObject -FriendlyName 'HostedServiceUpdateParameters';
$svcUpdateParams.Description = 'update1';
$svcUpdateParams.Label = 'update2';

# Invoke Update
$svcGetResult2 = Invoke-AzureComputeMethod -MethodName 'HostedServiceUpdate' -ServiceName $svcName -HostedServiceUpdateParameters $svcUpdateParams;

# Invoke Get
$svcGetResult2 = Invoke-AzureComputeMethod -MethodName 'HostedServiceGet' -ServiceName $svcName;
Assert-AreEqual $svcGetResult2.ServiceName $svcName;
Assert-AreEqual $svcGetResult2.Properties.Description $svcUpdateParams.Description;
Assert-AreEqual $svcGetResult2.Properties.Label $svcUpdateParams.Label;

# Invoke List
$svcListResult = Invoke-AzureComputeMethod -MethodName 'HostedServiceList';
Assert-True { ($svcListResult | where { $_.ServiceName -eq $svcName }).Count -gt 0 };

# Invoke Delete
$st = Invoke-AzureComputeMethod -MethodName 'HostedServiceDelete' -ServiceName $svcName;
Assert-AreEqual $st.StatusCode 'OK';
Assert-NotNull $st.RequestId;
}
finally
{
# Cleanup
Cleanup-CloudService $svcName;
}
}

# Run Auto-Generated Virtual Machine Cmdlet Tests
function Run-AutoGeneratedVirtualMachineCmdletTests
{
# Setup
$location = Get-DefaultLocation;

$storageName = 'pstest' + (getAssetName);
New-AzureStorageAccount -StorageAccountName $storageName -Location $location;

# Associate the new storage account with the current subscription
Set-CurrentStorageAccountName $storageName;

$svcName = 'pstest' + (Get-CloudServiceName);
$userName = "pstestuser";
$password = "p@ssw0rd";

try
{
# Create Hosted Service Parameters
$svcCreateParams = New-AzureComputeParameterObject -FriendlyName 'HostedServiceCreateParameters';
$svcCreateParams.ServiceName = $svcName;
$svcCreateParams.Location = $location;
$svcCreateParams.Description = $svcName;
$svcCreateParams.Label = $svcName;

# Invoke Hosted Service Create
$st = Invoke-AzureComputeMethod -MethodName 'HostedServiceCreate' -ArgumentList $svcCreateParams;
Assert-AreEqual $st.StatusCode 'Created';
Assert-NotNull $st.RequestId;

# Invoke Hosted Service Get
$svcGetResult = Invoke-AzureComputeMethod -MethodName 'HostedServiceGet' -ArgumentList $svcName;
Assert-AreEqual $svcGetResult.ServiceName $svcName;
Assert-AreEqual $svcGetResult.Properties.Description $svcName;
Assert-AreEqual $svcGetResult.Properties.Label $svcName;

# Invoke Virtual Machine OS Image List
$images = (Invoke-AzureComputeMethod -MethodName 'VirtualMachineOSImageList').Images;
$image = $images | where { $_.OperatingSystemType -eq 'Windows' -and $_.LogicalSizeInGB -le 100 } | select -First 1;

# Create Virtual Machine Deployment Create Parameters
$vmDeployment = New-AzureComputeParameterObject -FriendlyName 'VirtualMachineCreateDeploymentParameters';
$vmDeployment.Name = $svcName;
$vmDeployment.Label = $svcName;
$vmDeployment.DeploymentSlot = 'Production';
$vmDeployment.Roles = New-AzureComputeParameterObject -FriendlyName 'VirtualMachineRoleList';
$vmDeployment.Roles.Add((New-AzureComputeParameterObject -FriendlyName 'VirtualMachineRole'));
$vmDeployment.Roles[0].RoleName = $svcName;
$vmDeployment.Roles[0].RoleSize = 'Large';
$vmDeployment.Roles[0].RoleType = 'PersistentVMRole';
$vmDeployment.Roles[0].ProvisionGuestAgent = $false;
$vmDeployment.Roles[0].ResourceExtensionReferences = $null;
$vmDeployment.Roles[0].DataVirtualHardDisks = $null;
$vmDeployment.Roles[0].OSVirtualHardDisk = New-AzureComputeParameterObject -FriendlyName 'VirtualMachineOSVirtualHardDisk';
$vmDeployment.Roles[0].OSVirtualHardDisk.SourceImageName = $image.Name;
$vmDeployment.Roles[0].OSVirtualHardDisk.MediaLink = "http://${storageName}.blob.core.windows.net/myvhds/${svcName}.vhd";
$vmDeployment.Roles[0].OSVirtualHardDisk.ResizedSizeInGB = 128;
$vmDeployment.Roles[0].OSVirtualHardDisk.HostCaching = 'ReadWrite';
$vmDeployment.Roles[0].ConfigurationSets = New-AzureComputeParameterObject -FriendlyName 'VirtualMachineConfigurationSetList';
$vmDeployment.Roles[0].ConfigurationSets.Add((New-AzureComputeParameterObject -FriendlyName 'VirtualMachineConfigurationSet'));
$vmDeployment.Roles[0].ConfigurationSets[0].ConfigurationSetType = "WindowsProvisioningConfiguration";
$vmDeployment.Roles[0].ConfigurationSets[0].AdminUserName = $userName;
$vmDeployment.Roles[0].ConfigurationSets[0].AdminPassword = $password;
$vmDeployment.Roles[0].ConfigurationSets[0].ComputerName = 'test';
$vmDeployment.Roles[0].ConfigurationSets[0].HostName = "${svcName}.cloudapp.net";
$vmDeployment.Roles[0].ConfigurationSets[0].EnableAutomaticUpdates = $false;
$vmDeployment.Roles[0].ConfigurationSets[0].TimeZone = "Pacific Standard Time";

# Invoke Virtual Machine Create Deployment
$st = Invoke-AzureComputeMethod -MethodName 'VirtualMachineCreateDeployment' -ArgumentList $svcName,$vmDeployment;
Assert-AreEqual $st.StatusCode 'OK';
Assert-NotNull $st.RequestId;

# Invoke Virtual Machine Get
$st = Invoke-AzureComputeMethod -MethodName 'VirtualMachineGet' -ArgumentList $svcName,$svcName,$svcName;
Assert-AreEqual $st.RoleName $svcName;

# Invoke Hosted Service Delete
$st = Invoke-AzureComputeMethod -MethodName 'HostedServiceDeleteAll' -ArgumentList $svcName;
Assert-AreEqual $st.StatusCode 'OK';
Assert-NotNull $st.RequestId;
}
finally
{
# Cleanup
Cleanup-CloudService $svcName;
}
}


# Run New-AzureComputeArgumentList Cmdlet Tests Using Method Names
function Run-NewAzureComputeArgumentListTests
{
$command = Get-Command -Name 'New-AzureComputeArgumentList';
$all_methods = $command.Parameters['MethodName'].Attributes.ValidValues;

foreach ($method in $all_methods)
{
$args = New-AzureComputeArgumentList -MethodName $method;
foreach ($arg in $args)
{
Assert-NotNull $arg;
}

Write-Verbose "Invoke-AzureComputeMethod -MethodName $method -ArgumentList $args;";

if ($args.Count -gt 0)
{
# If the method requires any inputs, empty/null input call would fail
Assert-Throws { Invoke-AzureComputeMethod -MethodName $method -ArgumentList $args; }
}
else
{
# If the method doesn't requires any inputs, it shall succeed.
$st = Invoke-AzureComputeMethod -MethodName $method;
}
}
}


# Run New-AzureComputeParameterObject Cmdlet Tests
function Run-NewAzureComputeParameterObjectTests
{
$command = Get-Command -Name 'New-AzureComputeParameterObject';

$all_friendly_names = $command.Parameters['FriendlyName'].Attributes.ValidValues;
foreach ($friendly_name in $all_friendly_names)
{
$param = New-AzureComputeParameterObject -FriendlyName $friendly_name;
Assert-NotNull $param;
}

$all_full_names = $command.Parameters['FullName'].Attributes.ValidValues;
foreach ($full_name in $all_full_names)
{
$param = New-AzureComputeParameterObject -FullName $full_name;
Assert-NotNull $param;

$param_type_name = $param.GetType().ToString().Replace('+', '.');
$full_name_query = $full_name.Replace('+', '.').Replace('<', '*').Replace('>', '*');
Assert-True { $param_type_name -like $full_name_query } "`'$param_type_name`' & `'$full_name`'";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,41 @@ public void RunStartAndStopMultipleVirtualMachinesTest()
{
this.RunPowerShellTest("Run-StartAndStopMultipleVirtualMachinesTest");
}

[Fact]
[Trait(Category.Service, Category.ServiceManagement)]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.AcceptanceType, Category.BVT)]
public void RunAutoGeneratedHostedServiceCmdletTests()
{
this.RunPowerShellTest("Run-AutoGeneratedHostedServiceCmdletTests");
}

[Fact]
[Trait(Category.Service, Category.ServiceManagement)]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.AcceptanceType, Category.BVT)]
public void RunAutoGeneratedVirtualMachineCmdletTests()
{
this.RunPowerShellTest("Run-AutoGeneratedVirtualMachineCmdletTests");
}

[Fact]
[Trait(Category.Service, Category.ServiceManagement)]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.AcceptanceType, Category.BVT)]
public void RunNewAzureComputeArgumentListTests()
{
this.RunPowerShellTest("Run-NewAzureComputeArgumentListTests");
}

[Fact]
[Trait(Category.Service, Category.ServiceManagement)]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.AcceptanceType, Category.BVT)]
public void RunNewAzureComputeParameterObjectTests()
{
this.RunPowerShellTest("Run-NewAzureComputeParameterObjectTests");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ protected void RunPowerShellTest(params string[] scripts)
List<string> modules = Directory.GetFiles(@"Resources\ServiceManagement", "*.ps1").ToList();
modules.Add("Common.ps1");
modules.Add(@"..\..\..\..\Package\Debug\ServiceManagement\Azure\Azure.psd1");
modules.Add(@"..\..\..\..\Package\Debug\ServiceManagement\Azure\Compute\AzurePreview.psd1");

helper.SetupEnvironment(AzureModule.AzureServiceManagement);
helper.SetupModules(modules.ToArray());
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Entries": [],
"Names": {},
"Variables": {
"SubscriptionId": "4d368445-cbb1-42a7-97a6-6850ab99f48e"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{127D0D51-FDEA-4E1A-8CD8-34DEB5C2F7F6}</ProjectGuid>
<ProjectGuid>{59D1B5DC-9175-43EC-90C6-CBA601B3565F}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Microsoft.Azure.Commands.ResourceManager.Automation.Test</RootNamespace>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public class AddAzureVMDataDiskCommand : AzurePSCmdlet
Position = 4,
ValueFromPipelineByPropertyName = true,
HelpMessage = HelpMessages.VMDataDiskSizeInGB)]
[AllowNull]
public int? DiskSizeInGB { get; set; }

[Parameter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@
<None Include="SessionRecords\Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ServerCrudTests\TestServerUpdate.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ServerUpgradeTests\TestServerUpgradeWithUpgradeHint.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ServiceTierAdvisorTests\GetUpgradeDatabaseHint.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand All @@ -419,9 +422,6 @@
<None Include="SessionRecords\Microsoft.Azure.Commands.Sql.Test.ScenarioTests.TransparentDataEncryptionCrudTests\TestDatabaseTransparentDataEncryptionUpdate.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ServerUpgradeTests\TestServerUpgradeWithRecommendedDatabase.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ServerUpgradeTests\TestServerUpgradeAndCancel.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public class ServerUpgradeTests : SqlTestsBase
{
[Fact]
[Trait(Category.Sql, Category.CheckIn)]
public void TestServerUpgradeWithRecommendedDatabase()
public void TestServerUpgradeWithUpgradeHint()
{
RunPowerShellTest("Test-ServerUpgradeWithRecommendedDatabase");
RunPowerShellTest("Test-ServerUpgradeWithUpgradeHint");
}

[Fact]
Expand Down
Loading