Skip to content

Re-record failed Compute tests #2664

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 1 commit into from
Jul 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ function Create-AdvancedVM($rgname, $vmname, $loc, $vmsize, $stotype, $nicCount,

# OS & Image
$user = "Foo12";
$password = 'BaR@123' + $rgname;
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function Create-VirtualMachine($rgname, $vmname, $loc)

# OS & Image
$user = "Foo12";
$password = 'BaR@123' + $rgname;
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function Test-GetAzureRmVMDscExtension

# OS & Image
$user = "localadmin";
$password = 'Bull_dog1';
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function Test-SetAzureRmVMSqlServerAKVExtension

# OS & Image
$user = "localadmin";
$password = 'Bull_dog1';
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
Expand Down Expand Up @@ -169,7 +169,7 @@ function Test-SetAzureRmVMSqlServerExtension

# OS & Image
$user = "localadmin";
$password = 'Bull_dog1';
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function create_and_setup_vm_config_object
$vmconfig = get_vm_config_object $rgname $vmsize

$user = "Foo12";
$password = $rgname + "BaR#123";
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = $rgname + "cn";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,12 @@ function Test-VirtualMachineBootDiagnostics

# OS & Image
$user = "Foo12";
$password = 'BaR@123' + $rgname;
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
$vhdContainer = "https://$stoname.blob.core.windows.net/test";

# $p.StorageProfile.OSDisk = $null;
$p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred;

$imgRef = Get-DefaultCRPImage -loc $loc;
Expand Down Expand Up @@ -135,6 +134,10 @@ function Test-VirtualMachineBootDiagnostics
# Remove VM
Remove-AzureRmVM -Name $vmname -ResourceGroupName $rgname -Force;

# Create a Linux VM with boot diagnostics
$osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/linuxos.vhd";
$osDiskName = 'linuxOsDisk';

$p = New-AzureRMVMConfig -VMName $vmname -VMSize $vmsize;
$p = Add-AzureRMVMNetworkInterface -VM $p -Id $nicId;
$p = Set-AzureRMVMOSDisk -VM $p -Name $osDiskName -VhdUri $osDiskVhdUri -Caching $osDiskCaching -CreateOption FromImage;
Expand Down Expand Up @@ -239,7 +242,7 @@ function Test-VirtualMachineBootDiagnosticsPremium

# OS & Image
$user = "Foo12";
$password = 'BaR@123' + $rgname;
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
Expand Down Expand Up @@ -341,7 +344,7 @@ function Test-LinuxVirtualMachineBootDiagnostics

# OS & Image
$user = "Foo12";
$password = 'BaR@123' + $rgname;
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
Expand Down Expand Up @@ -458,7 +461,7 @@ function Test-VirtualMachineBootDiagnosticsSet

# OS & Image
$user = "Foo12";
$password = 'BaR@123' + $rgname;
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ public VirtualMachineExtensionTests(Xunit.Abstractions.ITestOutputHelper output)
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
}

[Fact(Skip = "ClientRuntime upgrade - Please re-record")]
[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVirtualMachineExtension()
{
ComputeTestController.NewInstance.RunPsTest("Test-VirtualMachineExtension");
}

[Fact(Skip = "ClientRuntime upgrade - Please re-record")]
[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVirtualMachineExtensionUsingHashTable()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function Test-VirtualMachineExtension
$extver = '1.1';

# Set extension settings by raw strings
$settingstr = '{"fileUris":[],"commandToExecute":""}';
$settingstr = '{"fileUris":[],"commandToExecute":"powershell Get-Process"}';
$protectedsettingstr = '{"storageAccountName":"' + $stoname + '","storageAccountKey":"' + $stokey + '"}';
Set-AzureRmVMExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -Publisher $publisher -ExtensionType $exttype -TypeHandlerVersion $extver -SettingString $settingstr -ProtectedSettingString $protectedsettingstr;

Expand Down Expand Up @@ -256,7 +256,7 @@ function Test-VirtualMachineExtensionUsingHashTable
$extver = '1.1';

# Set extension settings by hash table
$settings = @{"fileUris" = @(); "commandToExecute" = ""};
$settings = @{"fileUris" = @(); "commandToExecute" = "powershell Get-Process"};
$protectedsettings = @{"storageAccountName" = $stoname; "storageAccountKey" = $stokey};
Set-AzureRmVMExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -Publisher $publisher -ExtensionType $exttype -TypeHandlerVersion $extver -Settings $settings -ProtectedSettings $protectedsettings;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void TestVirtualMachineMultipleNetworkInterface()
ComputeTestController.NewInstance.RunPsTest("Test-MultipleNetworkInterface");
}

[Fact(Skip = "ClientRuntime upgrade - Please re-record")]
[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestSingleNetworkInterfaceDnsSettings()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function Test-SingleNetworkInterface

# OS & Image
$user = "Foo12";
$password = 'BaR@123' + $rgname;
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
Expand Down Expand Up @@ -163,7 +163,7 @@ function Test-SingleNetworkInterfaceDnsSettings
$pubip = New-AzureRmPublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname);
$pubip = Get-AzureRmPublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname;
$pubipId = $pubip.Id;
$nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id -DnsServer "10.0.1.5";
$nic = New-AzureRmNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -SubnetId $subnetId -PublicIpAddressId $pubip.Id -DnsServer "8.8.8.8";
$nic = Get-AzureRmNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname;
$nicId = $nic.Id;

Expand Down Expand Up @@ -194,7 +194,7 @@ function Test-SingleNetworkInterfaceDnsSettings

# OS & Image
$user = "Foo12";
$password = 'BaR@123' + $rgname;
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
Expand Down Expand Up @@ -303,7 +303,7 @@ function Test-MultipleNetworkInterface

# OS & Image
$user = "Foo12";
$password = 'BaR@123' + $rgname;
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
Expand Down Expand Up @@ -426,7 +426,7 @@ function Test-AddNetworkInterface

# OS & Image
$user = "Foo12";
$password = 'BaR@123' + $rgname;
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function Test-VirtualMachineProfile

# Windows OS
$user = "Foo12";
$password = 'BaR@000' + ((Get-Random) % 10000);
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
Expand Down Expand Up @@ -275,7 +275,7 @@ function Test-VirtualMachineProfileWithoutAUC

# Windows OS
$user = "Foo12";
$password = 'BaR@000' + ((Get-Random) % 10000);
$password = $PLACEHOLDER;
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
$computerName = 'test';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public VirtualMachineTests(Xunit.Abstractions.ITestOutputHelper output)
ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
}

[Fact(Skip = "ClientRuntime upgrade - Please re-record")]
[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVirtualMachine()
{
Expand Down Expand Up @@ -171,7 +171,7 @@ public void TestVirtualMachineWithEmptyAuc()
ComputeTestController.NewInstance.RunPsTest("Test-VirtualMachineWithEmptyAuc");
}

[Fact(Skip = "ClientRuntime upgrade - Please re-record")]
[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVirtualMachineWithBYOL()
{
Expand Down
Loading