Skip to content

Commit

Permalink
Youri/compute.test (#23)
Browse files Browse the repository at this point in the history
* change DiskRPTest Location[C

* add OSProfile json
  • Loading branch information
Youri970410 authored Jun 18, 2020
1 parent a933b84 commit f6cc22d
Show file tree
Hide file tree
Showing 3 changed files with 15,904 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Azure.Management.Resources;
using Azure.Management.Storage.Models;
using NUnit.Framework;
using System.Runtime.CompilerServices;

namespace Azure.ResourceManager.Compute.Tests
{
Expand Down Expand Up @@ -174,7 +175,7 @@ private void ValidateWinRMCustomDataAndUnattendContent(string winRMCertificateUr
//[Test(Skip = "Secret Vault")]
[Test]
[Ignore("skip in track 1")]
public void TestVMWithWindowsOSProfile()
public async Task TestVMWithWindowsOSProfile()
{
EnsureClientsInitialized(DefaultLocation);

Expand All @@ -200,7 +201,7 @@ public void TestVMWithWindowsOSProfile()

SecretVaultHelper.CreateKeyVault(m_subId, rgName, keyVaultName).Wait();

TestVMWithOSProfile(
await TestVMWithOSProfile(
rgName: rgName,
useWindowsProfile: true,
vmCustomizer: enableWinRMCustomDataAndUnattendContent,
Expand All @@ -209,7 +210,7 @@ public void TestVMWithWindowsOSProfile()
}

[Test]
public void TestVMWithLinuxOSProfile()
public async Task TestVMWithLinuxOSProfile()
{
EnsureClientsInitialized(DefaultLocation);

Expand Down Expand Up @@ -256,14 +257,14 @@ public void TestVMWithLinuxOSProfile()
Assert.AreEqual(DefaultSshPublicKey, publicKeys[0].KeyData);
};

TestVMWithOSProfile(
await TestVMWithOSProfile(
rgName: rgName,
useWindowsProfile: false,
vmCustomizer: enableSSHAndCustomData,
vmValidator: validateWinRMCustomDataAndUnattendContent);
}

private async void TestVMWithOSProfile(
private async Task TestVMWithOSProfile(
string rgName,
bool useWindowsProfile,
Action<VirtualMachine> vmCustomizer = null,
Expand Down
Loading

0 comments on commit f6cc22d

Please sign in to comment.