-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Add ManagementGroups to AzureRM.Resources and Update to use latest SDK for GA #6271
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
Changes from 4 commits
9a785f4
dc14ca5
162c0ba
0d9b92c
77c768c
37f0932
b90a354
d779aba
3b7267e
a567c27
22c92fd
8a60800
cf607be
ae43549
2ddc0a7
3ba0221
9fa35c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,6 +67,9 @@ | |
| <Reference Include="Microsoft.Azure.Insights"> | ||
| <HintPath>..\..\..\packages\Microsoft.Azure.Insights.0.10.0-preview\lib\net45\Microsoft.Azure.Insights.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="Microsoft.Azure.Management.ManagementGroups, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
| <HintPath>..\..\..\packages\Microsoft.Azure.Management.ManagementGroups.1.2.0-preview\lib\net452\Microsoft.Azure.Management.ManagementGroups.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="Microsoft.Azure.Management.ResourceManager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
| <SpecificVersion>False</SpecificVersion> | ||
| <HintPath>..\..\..\packages\Microsoft.Azure.Management.ResourceManager.1.6.0-preview\lib\net452\Microsoft.Azure.Management.ResourceManager.dll</HintPath> | ||
|
|
@@ -90,6 +93,8 @@ | |
| <HintPath>..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.28.3\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll</HintPath> | ||
| <Private>True</Private> | ||
| </Reference> | ||
| <Reference Include="Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> | ||
|
||
| <Reference Include="Microsoft.Rest.ClientRuntime.Azure, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> | ||
| <Reference Include="Microsoft.Rest.ClientRuntime.Azure.Authentication, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
| <HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.Authentication.2.2.9-preview\lib\net45\Microsoft.Rest.ClientRuntime.Azure.Authentication.dll</HintPath> | ||
| <Private>True</Private> | ||
|
|
@@ -173,6 +178,7 @@ | |
| </Content> | ||
| <Compile Include="ScenarioTests\LocationTests.cs" /> | ||
| <Compile Include="ScenarioTests\ManagedApplicationTests.cs" /> | ||
| <Compile Include="ScenarioTests\ManagementGroupsTests.cs" /> | ||
| <Compile Include="ScenarioTests\MoveResourceTest.cs" /> | ||
| <Compile Include="ScenarioTests\ManagedApplicationDefinitionTests.cs" /> | ||
| <Compile Include="ScenarioTests\ProviderFeatureTests.cs" /> | ||
|
|
@@ -320,6 +326,9 @@ | |
| <None Include="ScenarioTests\ManagedApplicationTests.ps1"> | ||
| <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
| </None> | ||
| <None Include="ScenarioTests\ManagementGroupsTests.ps1"> | ||
| <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
| </None> | ||
| <None Include="ScenarioTests\MoveResourceTest.ps1"> | ||
| <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
| </None> | ||
|
|
@@ -398,6 +407,18 @@ | |
| <None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagedApplicationTests\TestManagedApplicationCRUD.json"> | ||
| <CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
| </None> | ||
| <None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests\TestGetManagementGroup.json" /> | ||
|
||
| <None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests\TestGetManagementGroupWithExpand.json" /> | ||
| <None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests\TestGetManagementGroupWithExpandAndRecurse.json" /> | ||
| <None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests\TestNewManagementGroup.json" /> | ||
| <None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests\TestNewManagementGroupWithDisplayName.json" /> | ||
| <None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests\TestNewManagementGroupWithDisplayNameAndParentId.json" /> | ||
| <None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests\TestNewManagementGroupWithParentId.json" /> | ||
| <None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests\TestNewRemoveManagementGroupSubscription.json" /> | ||
| <None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests\TestRemoveManagementGroup.json" /> | ||
| <None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests\TestUpdateManagementGroupWithDisplayName.json" /> | ||
| <None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests\TestUpdateManagementGroupWithDisplayNameAndParentId.json" /> | ||
| <None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ManagementGroupsTests\TestUpdateManagementGroupWithParentId.json" /> | ||
| <None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.MoveResourceTest\TestMoveAzureResource.json"> | ||
| <CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
| </None> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| // ---------------------------------------------------------------------------------- | ||
| // | ||
| // Copyright Microsoft Corporation | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may obtain a copy of the License at | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
| // ---------------------------------------------------------------------------------- | ||
|
|
||
| using Microsoft.Azure.ServiceManagemenet.Common.Models; | ||
| using Microsoft.WindowsAzure.Commands.ScenarioTest; | ||
| using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; | ||
| using Xunit; | ||
|
|
||
| namespace Microsoft.Azure.Commands.Resources.Test.ScenarioTests | ||
| { | ||
| public class ManagementGroupsTests | ||
| { | ||
| public ManagementGroupsTests(Xunit.Abstractions.ITestOutputHelper output) | ||
| { | ||
| XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output)); | ||
| } | ||
|
|
||
| [Fact] | ||
| [Trait(Category.AcceptanceType, Category.CheckIn)] | ||
| public void TestGetManagementGroup() | ||
| { | ||
| ResourcesController.NewInstance.RunPsTest("Test-GetManagementGroup"); | ||
| } | ||
|
|
||
| [Fact] | ||
| [Trait(Category.AcceptanceType, Category.CheckIn)] | ||
| public void TestGetManagementGroupWithExpand() | ||
| { | ||
| ResourcesController.NewInstance.RunPsTest("Test-GetManagementGroupWithExpand"); | ||
| } | ||
|
|
||
| [Fact] | ||
| [Trait(Category.AcceptanceType, Category.CheckIn)] | ||
| public void TestGetManagementGroupWithExpandAndRecurse() | ||
| { | ||
| ResourcesController.NewInstance.RunPsTest("Test-GetManagementGroupWithExpandAndRecurse"); | ||
| } | ||
|
|
||
| [Fact] | ||
| [Trait(Category.AcceptanceType, Category.CheckIn)] | ||
| public void TestNewManagementGroup() | ||
| { | ||
| ResourcesController.NewInstance.RunPsTest("Test-NewManagementGroup"); | ||
| } | ||
|
|
||
| [Fact] | ||
| [Trait(Category.AcceptanceType, Category.CheckIn)] | ||
| public void TestNewManagementGroupWithDisplayName() | ||
| { | ||
| ResourcesController.NewInstance.RunPsTest("Test-NewManagementGroupWithDisplayName"); | ||
| } | ||
|
|
||
| [Fact] | ||
| [Trait(Category.AcceptanceType, Category.CheckIn)] | ||
| public void TestNewManagementGroupWithParentId() | ||
| { | ||
| ResourcesController.NewInstance.RunPsTest("Test-NewManagementGroupWithParentId"); | ||
| } | ||
|
|
||
| [Fact] | ||
| [Trait(Category.AcceptanceType, Category.CheckIn)] | ||
| public void TestNewManagementGroupWithDisplayNameAndParentId() | ||
| { | ||
| ResourcesController.NewInstance.RunPsTest("Test-NewManagementGroupWithDisplayNameAndParentId"); | ||
| } | ||
|
|
||
| [Fact] | ||
| [Trait(Category.AcceptanceType, Category.CheckIn)] | ||
| public void TestUpdateManagementGroupWithDisplayName() | ||
| { | ||
| ResourcesController.NewInstance.RunPsTest("Test-UpdateManagementGroupWithDisplayName"); | ||
| } | ||
|
|
||
| [Fact] | ||
| [Trait(Category.AcceptanceType, Category.CheckIn)] | ||
| public void TestUpdateManagementGroupWithParentId() | ||
| { | ||
| ResourcesController.NewInstance.RunPsTest("Test-UpdateManagementGroupWithParentId"); | ||
| } | ||
|
|
||
| [Fact] | ||
| [Trait(Category.AcceptanceType, Category.CheckIn)] | ||
| public void TestUpdateManagementGroupWithDisplayNameAndParentId() | ||
| { | ||
| ResourcesController.NewInstance.RunPsTest("Test-UpdateManagementGroupWithDisplayNameAndParentId"); | ||
| } | ||
|
|
||
| [Fact] | ||
| [Trait(Category.AcceptanceType, Category.CheckIn)] | ||
| public void TestRemoveManagementGroup() | ||
| { | ||
| ResourcesController.NewInstance.RunPsTest("Test-RemoveManagementGroup"); | ||
| } | ||
|
|
||
| [Fact] | ||
| [Trait(Category.AcceptanceType, Category.CheckIn)] | ||
| public void TestNewRemoveManagementGroupSubscription() | ||
| { | ||
| ResourcesController.NewInstance.RunPsTest("Test-NewRemoveManagementGroupSubscription"); | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert changes to the release notes, we will do this update when releasing the module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see this reverted