Skip to content

Commit b778340

Browse files
committed
update tests
1 parent 9cadca1 commit b778340

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineExtensionTests.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,13 @@ function Test-VirtualMachineCustomScriptExtension
275275

276276
$p.StorageProfile.OSDisk = $null;
277277
$p = Set-AzureVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent;
278-
$p = Set-AzureVMSourceImage -VM $p -Name $img -DestinationVhdsContainer $vhdContainer;
278+
$p = Set-AzureVMSourceImage -VM $p -Name $img #-DestinationVhdsContainer $vhdContainer;
279279

280280
Assert-AreEqual $p.OSProfile.AdminUsername $user;
281281
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
282282
Assert-AreEqual $p.OSProfile.AdminPassword $password;
283283
Assert-AreEqual $p.OSProfile.WindowsConfiguration.ProvisionVMAgent $true;
284-
Assert-AreEqual $p.StorageProfile.DestinationVhdsContainer.ToString() $vhdContainer;
284+
#Assert-AreEqual $p.StorageProfile.DestinationVhdsContainer.ToString() $vhdContainer;
285285
Assert-AreEqual $p.StorageProfile.SourceImage.ReferenceUri ('/' + (Get-AzureSubscription -Current).SubscriptionId + '/services/images/' + $img);
286286

287287
# Virtual Machine
@@ -326,7 +326,7 @@ function Test-VirtualMachineCustomScriptExtension
326326
Assert-AreEqual $vm1.Name $vmname;
327327
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1;
328328
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
329-
Assert-AreEqual $vm1.StorageProfile.DestinationVhdsContainer.ToString() $vhdContainer;
329+
# Assert-AreEqual $vm1.StorageProfile.DestinationVhdsContainer.ToString() $vhdContainer;
330330
Assert-AreEqual $vm1.StorageProfile.SourceImage.ReferenceUri ('/' + (Get-AzureSubscription -Current).SubscriptionId + '/services/images/' + $img);
331331
Assert-AreEqual $vm1.OSProfile.AdminUsername $user;
332332
Assert-AreEqual $vm1.OSProfile.ComputerName $computerName;
@@ -434,13 +434,13 @@ function Test-VirtualMachineAccessExtension
434434

435435
$p.StorageProfile.OSDisk = $null;
436436
$p = Set-AzureVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent;
437-
$p = Set-AzureVMSourceImage -VM $p -Name $img -DestinationVhdsContainer $vhdContainer;
437+
$p = Set-AzureVMSourceImage -VM $p -Name $img #-DestinationVhdsContainer $vhdContainer;
438438

439439
Assert-AreEqual $p.OSProfile.AdminUsername $user;
440440
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
441441
Assert-AreEqual $p.OSProfile.AdminPassword $password;
442442
Assert-AreEqual $p.OSProfile.WindowsConfiguration.ProvisionVMAgent $true;
443-
Assert-AreEqual $p.StorageProfile.DestinationVhdsContainer.ToString() $vhdContainer;
443+
#Assert-AreEqual $p.StorageProfile.DestinationVhdsContainer.ToString() $vhdContainer;
444444
Assert-AreEqual $p.StorageProfile.SourceImage.ReferenceUri ('/' + (Get-AzureSubscription -Current).SubscriptionId + '/services/images/' + $img);
445445

446446
# Virtual Machine
@@ -483,7 +483,7 @@ function Test-VirtualMachineAccessExtension
483483
Assert-AreEqual $vm1.Name $vmname;
484484
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces.Count 1;
485485
Assert-AreEqual $vm1.NetworkProfile.NetworkInterfaces[0].ReferenceUri $nicId;
486-
Assert-AreEqual $vm1.StorageProfile.DestinationVhdsContainer.ToString() $vhdContainer;
486+
# Assert-AreEqual $vm1.StorageProfile.DestinationVhdsContainer.ToString() $vhdContainer;
487487
Assert-AreEqual $vm1.StorageProfile.SourceImage.ReferenceUri ('/' + (Get-AzureSubscription -Current).SubscriptionId + '/services/images/' + $img);
488488
Assert-AreEqual $vm1.OSProfile.AdminUsername $user;
489489
Assert-AreEqual $vm1.OSProfile.ComputerName $computerName;

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineProfileTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ function Test-VirtualMachineProfile
133133
$sshKey = New-AzureSshPublicKey -KeyData $sshPublicKey -Path $sshPath;
134134

135135
$p = Set-AzureVMOperatingSystem -VM $p -Linux -ComputerName $computerName -Credential $cred -CustomData $custom -Secrets $vaultSG -SSHPublicKeys $sshKey -DisablePasswordAuthentication;
136-
$p = Set-AzureVMSourceImage -VM $p -Name $img -DestinationVhdsContainer $vhdContainer;
136+
$p = Set-AzureVMSourceImage -VM $p -Name $img # -DestinationVhdsContainer $vhdContainer;
137137

138138
Assert-AreEqual $p.OSProfile.AdminUsername $user;
139139
Assert-AreEqual $p.OSProfile.ComputerName $computerName;
140140
Assert-AreEqual $p.OSProfile.AdminPassword $password;
141-
Assert-AreEqual $p.StorageProfile.DestinationVhdsContainer.ToString() $vhdContainer;
141+
# Assert-AreEqual $p.StorageProfile.DestinationVhdsContainer.ToString() $vhdContainer;
142142
Assert-AreEqual $p.StorageProfile.SourceImage.ReferenceUri ('/' + (Get-AzureSubscription -Current).SubscriptionId + '/services/images/' + $img);
143143
Assert-AreEqual $p.OSProfile.Secrets[0].SourceVault.ReferenceUri $referenceUri;
144144
Assert-AreEqual $p.OSProfile.Secrets[0].VaultCertificates[0].CertificateStore $certStore;

0 commit comments

Comments
 (0)