Skip to content

Commit 4277d2c

Browse files
committed
Remove unnecessary references and fix tests.
1 parent 9cf77ac commit 4277d2c

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-15
lines changed

src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@
5454
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5555
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Resources.2.20.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll</HintPath>
5656
</Reference>
57-
<Reference Include="Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
58-
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.2.3.6\lib\net45\Microsoft.Rest.ClientRuntime.dll</HintPath>
59-
<Private>True</Private>
60-
</Reference>
61-
<Reference Include="Microsoft.Rest.ClientRuntime.Azure, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
62-
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.3.3.5\lib\net45\Microsoft.Rest.ClientRuntime.Azure.dll</HintPath>
63-
<Private>True</Private>
64-
</Reference>
65-
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL" />
6657
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
6758
</ItemGroup>
6859
<ItemGroup>

src/ResourceManager/Resources/Commands.Resources/packages.config

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@
22
<packages>
33
<package id="Microsoft.Azure.Management.ResourceManager" version="1.6.0-preview" targetFramework="net452" />
44
<package id="Microsoft.Azure.Management.Resources" version="2.20.0-preview" targetFramework="net45" />
5-
<package id="Microsoft.Rest.ClientRuntime" version="2.3.6" targetFramework="net452" />
6-
<package id="Microsoft.Rest.ClientRuntime.Azure" version="3.3.5" targetFramework="net452" />
7-
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net452" />
85
</packages>

src/ResourceManager/Resources/Resources.sln

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common.Authenticat
3030
EndProject
3131
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common.Authorization", "..\..\Common\Commands.Common.Authorization\Commands.Common.Authorization.csproj", "{24508E26-154D-47F1-80EE-439BF0710996}"
3232
EndProject
33+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common.Network", "..\..\Common\Commands.Common.Network\Commands.Common.Network.csproj", "{1338F7AE-7111-4ED3-8916-2D0FECC876F4}"
34+
EndProject
35+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common.Storage", "..\..\Common\Commands.Common.Storage\Commands.Common.Storage.csproj", "{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}"
36+
EndProject
3337
Global
3438
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3539
Debug|Any CPU = Debug|Any CPU
@@ -88,6 +92,14 @@ Global
8892
{24508E26-154D-47F1-80EE-439BF0710996}.Debug|Any CPU.Build.0 = Debug|Any CPU
8993
{24508E26-154D-47F1-80EE-439BF0710996}.Release|Any CPU.ActiveCfg = Release|Any CPU
9094
{24508E26-154D-47F1-80EE-439BF0710996}.Release|Any CPU.Build.0 = Release|Any CPU
95+
{1338F7AE-7111-4ED3-8916-2D0FECC876F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
96+
{1338F7AE-7111-4ED3-8916-2D0FECC876F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
97+
{1338F7AE-7111-4ED3-8916-2D0FECC876F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
98+
{1338F7AE-7111-4ED3-8916-2D0FECC876F4}.Release|Any CPU.Build.0 = Release|Any CPU
99+
{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
100+
{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Debug|Any CPU.Build.0 = Debug|Any CPU
101+
{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Release|Any CPU.ActiveCfg = Release|Any CPU
102+
{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Release|Any CPU.Build.0 = Release|Any CPU
91103
EndGlobalSection
92104
GlobalSection(SolutionProperties) = preSolution
93105
HideSolutionNode = FALSE
@@ -97,4 +109,7 @@ Global
97109
{3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
98110
{CFF09E81-1E31-444E-B4D4-A21E946C29E2} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
99111
EndGlobalSection
112+
GlobalSection(ExtensibilityGlobals) = postSolution
113+
SolutionGuid = {2CCF981A-8BCD-46DB-954D-289E61E07EE7}
114+
EndGlobalSection
100115
EndGlobal

tools/InstallationTests/NetcoreTests/Resources/PolicyTests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ function Test-PolicyDefinitionCRUD
2424

2525
# Test
2626
$actual = New-AzureRMPolicyDefinition -Name $policyName -Policy SamplePolicyDefinition.json
27-
Start-Sleep 5
27+
$retryForCreation = Retry-Function { return (Get-AzureRMPolicyDefinition -Name $policyName).Name -eq $actual.Name } $null 10 5
2828
$expected = Get-AzureRMPolicyDefinition -Name $policyName
2929
Assert-AreEqual $expected.Name $actual.Name
3030
Assert-AreEqual $expected.PolicyDefinitionId $actual.PolicyDefinitionId
3131
Assert-NotNull($actual.Properties.PolicyRule)
3232

3333
$actual = Set-AzureRMPolicyDefinition -Name $policyName -DisplayName testDisplay -Description testDescription -Policy SamplePolicyDefinition.json
34-
Start-Sleep 5
34+
$retryForCreation = Retry-Function { return (Get-AzureRMPolicyDefinition -Name $policyName).Properties.DisplayName -eq $actual.Properties.DisplayName } $null 10 5
3535
$expected = Get-AzureRMPolicyDefinition -Name $policyName
3636
Assert-AreEqual $expected.Properties.DisplayName $actual.Properties.DisplayName
3737
Assert-AreEqual $expected.Properties.Description $actual.Properties.Description
@@ -57,7 +57,7 @@ function Test-PolicyAssignmentCRUD
5757
$rg = New-AzureRMResourceGroup -Name $rgname -Location "west us"
5858
$policy = New-AzureRMPolicyDefinition -Name $policyName -Policy SamplePolicyDefinition.json
5959
$actual = New-AzureRMPolicyAssignment -Name testPA -PolicyDefinition $policy -Scope $rg.ResourceId
60-
Start-Sleep 5
60+
$retryForCreation = Retry-Function { return (Get-AzureRMPolicyAssignment -Name testPA -Scope $rg.ResourceId).Name -eq $actual.Name } $null 10 5
6161
$expected = Get-AzureRMPolicyAssignment -Name testPA -Scope $rg.ResourceId
6262

6363
Assert-AreEqual $expected.Name $actual.Name

0 commit comments

Comments
 (0)