Skip to content

Commit 71cf922

Browse files
maxthedreadMSSeduschisra-fel
authored
[Compute] Added -SkipIdentity, -PathUserIdentity, -IsTest to Set-AzVMAEMExtension (#20597)
* features: -PathUserIdentity, -SkipIdentity, IsTest * re-record tests and add tests for new properties * added description to and fixed null exception * revert ComputeTestRunner * add suppress messages * fixed comments, doc and paramPos as per #20597 * removed skip tests as requested --------- Co-authored-by: sedusch <[email protected]> Co-authored-by: Yeming Liu <[email protected]>
1 parent f8ebd0d commit 71cf922

32 files changed

+48036
-40526
lines changed

src/Compute/Compute.Test/ScenarioTests/AEMExtensionTests.cs

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public void TestAEMExtensionAdvancedLinuxMD_DSeries()
110110
TestRunner.RunTestScript("Test-AEMExtensionAdvancedLinuxMD_D");
111111
}
112112

113-
[Fact(Skip = "Skip as current test framework does not support recording generated cmdlets.")]
113+
[Fact]
114114
[Trait(Category.AcceptanceType, Category.LiveOnly)]
115115
public void TestWithUserAssignedIdentity()
116116
{
@@ -540,5 +540,34 @@ public void TestScopePermissionCheck()
540540
Assert.True(nok.Count == nokCount);
541541
}
542542
}
543+
544+
[Fact]
545+
[Trait(Category.AcceptanceType, Category.CheckIn)]
546+
public void TestSkipIdentity()
547+
{
548+
TestRunner.RunTestScript("Test-SkipIdentity");
549+
}
550+
551+
[Fact]
552+
[Trait(Category.AcceptanceType, Category.LiveOnly)]
553+
public void TestUserIdentityOnlyWin()
554+
{
555+
TestRunner.RunTestScript("Test-UserIdentityOnlyWin");
556+
}
557+
558+
[Fact]
559+
[Trait(Category.AcceptanceType, Category.LiveOnly)]
560+
public void TestUserIdentityOnlyLnx()
561+
{
562+
TestRunner.RunTestScript("Test-UserIdentityOnlyLnx");
563+
}
564+
565+
[Fact]
566+
[Trait(Category.AcceptanceType, Category.LiveOnly)]
567+
public void TestUserIdentityWithSystemLnx()
568+
{
569+
TestRunner.RunTestScript("Test-UserIdentityWithSystemLnx");
570+
}
571+
543572
}
544573
}

0 commit comments

Comments
 (0)