Skip to content

[Resources] Update Resources.ManagementGroups Module #17728

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 32 commits into from
May 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d47a17f
First commit for updates to the MG PowerShell Cmdlets
git-thomasdolan Mar 24, 2022
fc3f518
Updated PS after switching it to use 2021-04-01 API version
git-thomasdolan Apr 1, 2022
e6d6b0a
Updated project files and recorded tests after switching SDK version …
git-thomasdolan Apr 6, 2022
8f7c340
Merge branch 'main' into main
git-thomasdolan Apr 6, 2022
e756e81
Removed Target Framework for Resources and Resources.Test Projects si…
git-thomasdolan Apr 6, 2022
fc14511
Merge branch 'main' of https://github.com/git-thomasdolan/azure-power…
git-thomasdolan Apr 6, 2022
c8645e2
Added missing cmdlets to psd1 file
git-thomasdolan Apr 6, 2022
17e50b6
Added back cmdlets that were deleted from the Az.Resources.psd1 file
git-thomasdolan Apr 7, 2022
8d5b16a
Added help files for some new cmdlets
git-thomasdolan Apr 8, 2022
523005e
Re-ran Tests that use MGs
git-thomasdolan Apr 8, 2022
a5ce876
Added more help files
git-thomasdolan Apr 11, 2022
f446c02
Skipping some tests and while I update Resources
git-thomasdolan Apr 11, 2022
54d16c2
Fixing some Markdown help files that were causing errors
git-thomasdolan Apr 11, 2022
e4811e2
Trying again to fix markdown file issue
git-thomasdolan Apr 11, 2022
5377fdc
Fixing the formatting of more markdown files
git-thomasdolan Apr 12, 2022
1661d3f
Forgot the NewSubscription file
git-thomasdolan Apr 12, 2022
7c1c8bb
Renamed cmdlets from plural to singular to pass checks
git-thomasdolan Apr 12, 2022
d544b4c
Updated the command names in the .psd1 file and deleted unused cmdlet…
git-thomasdolan Apr 12, 2022
3c0d90e
Renamed commands in the unit test file
git-thomasdolan Apr 12, 2022
84d8a94
Forgot to add the updated cmdlets files
git-thomasdolan Apr 12, 2022
246d676
Forgot to update name from GetEntites to GetEntity in the Unit Test p…
git-thomasdolan Apr 12, 2022
2aba5fc
Did not update all command name in the ps1 file
git-thomasdolan Apr 12, 2022
a50f5c2
Entity typo
git-thomasdolan Apr 12, 2022
5f0d594
Fixing indentation for the cmdlets I added
git-thomasdolan Apr 13, 2022
6c765e0
Now the indentation is fixed
git-thomasdolan Apr 13, 2022
8b22c32
Updated CHANGELOG for Resources
git-thomasdolan Apr 13, 2022
99107c4
Re-ran tests after changing the names to singular
git-thomasdolan Apr 14, 2022
c2ad808
Shortened Parameter Names for New and Update HierarchySettings
git-thomasdolan Apr 14, 2022
8d65b66
Added ManagementGroup Prefix to HierarchySettings and Entity cmdlets.…
git-thomasdolan Apr 18, 2022
b5b5ed8
Updated the formatting of some help files
git-thomasdolan Apr 19, 2022
08ae4fe
Merge branch 'main' into main
git-thomasdolan Apr 25, 2022
4d767cf
Update ChangeLog.md
wyunchi-ms May 7, 2022
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
2 changes: 1 addition & 1 deletion src/Resources/Resources.Test/Resources.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Management.Authorization" Version="2.13.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.ManagementGroups" Version="1.1.1-preview" />
<PackageReference Include="Microsoft.Azure.Management.ManagementGroups" Version="2.0.0-beta" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net472'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ public void ResourceGroupDeploymentEndToEnd()
ResourcesController.NewInstance.RunPsTest(_logger, "Test-DeploymentEndToEnd-ResourceGroup");
}

[Fact()]
[Fact(Skip = "Need to update test Resources")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void ManagementGroupLevelDeploymentEndToEnd()
{
ResourcesController.NewInstance.RunPsTest(_logger, "Test-DeploymentEndToEnd-ManagementGroup");
}

[Fact()]
[Fact(Skip = "Need to update test Resources")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TenantLevelDeploymentEndToEnd()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void TestNewFailedSubscriptionDeploymentTemplateSpec()
TestRunner.RunTestScript("Test-NewFailedSubscriptionDeploymentFromTemplateSpec");
}

[Fact]
[Fact(Skip = "Need to update the Resources")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.RunType, Category.CoreOnly)]
public void TestNewMGDeploymentTemplateSpec()
Expand Down
105 changes: 105 additions & 0 deletions src/Resources/Resources.Test/ScenarioTests/ManagementGroupsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,110 @@ public void TestNewRemoveManagementGroupSubscription()
{
TestRunner.RunTestScript("Test-NewRemoveManagementGroupSubscription");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestGetEntities()
{
TestRunner.RunTestScript("Test-GetEntities");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestCheckNameAvailabilityTrue()
{
TestRunner.RunTestScript("Test-CheckNameAvailabilityTrue");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestCheckNameAvailabilityFalse()
{
TestRunner.RunTestScript("Test-CheckNameAvailabilityFalse");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestCheckNameWithInvalidCharacters()
{
TestRunner.RunTestScript("Test-CheckNameWithInvalidCharacters");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestGetTenantBackfillStatus()
{
TestRunner.RunTestScript("Test-GetTenantBackfillStatus");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestStartTenantBackfill()
{
TestRunner.RunTestScript("Test-StartTenantBackfill");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestGetManagementGroupSubscription()
{
TestRunner.RunTestScript("Test-GetManagementGroupSubscription");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestGetsubscriptionsUnderManagementGroup()
{
TestRunner.RunTestScript("Test-GetSubscriptionsUnderManagementGroup");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestNewAuthorizationHierarcySetting()
{
TestRunner.RunTestScript("Test-NewAuthHierarchySetting");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestNewDefaultMGHierarcySetting()
{
TestRunner.RunTestScript("Test-NewDefaultMGHierarcySetting");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestNewHierarchySettings()
{
TestRunner.RunTestScript("Test-NewHierarchySettings");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestRemoveHierarcySetting()
{
TestRunner.RunTestScript("Test-RemoveHierarchySetting");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestUpdateHierarchySettingsAuth()
{
TestRunner.RunTestScript("Test-UpdateAuthHierarchySetting");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestUpdateHierarchySettingsDefaultMG()
{
TestRunner.RunTestScript("Test-UpdateAuthHierarchySetting");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestUpdateBothHierarchySettings()
{
TestRunner.RunTestScript("Test-UpdateBothHierarchySettings");
}
}
}
Loading