Skip to content

Commit 42c82cb

Browse files
authored
Merge branch 'preview' into ReservedInstance
2 parents c45ed67 + 89508cc commit 42c82cb

36 files changed

+7113
-9865
lines changed

src/ResourceManager/Resources/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020
## Current Release
2121
* Set minimum dependency of module to PowerShell 5.0
22+
* Remove obsolete parameter -AtScopeAndBelow from Get-AzureRmRoledefinition call
2223

2324
## Version 5.5.2
2425
* Updated to the latest version of the Azure ClientRuntime

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -710,9 +710,6 @@
710710
<None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.RoleDefinitionTests\RDRemoveScenario.json">
711711
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
712712
</None>
713-
<None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.RoleDefinitionTests\RDGetAtScopeFilterRoles.json">
714-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
715-
</None>
716713
<None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.RoleDefinitionTests\RDDataActionsNegativeTestCases.json">
717714
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
718715
</None>

src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/RoleDefinitionTests.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,6 @@ public void RDGetCustomRoles()
9191
ResourcesController.NewInstance.RunPsTest("Test-RDGetCustomRoles");
9292
}
9393

94-
[Fact]
95-
[Trait(Category.AcceptanceType, Category.CheckIn)]
96-
public void RDGetAtScopeFilterRoles()
97-
{
98-
ResourcesController.NewInstance.RunPsTest("Test-RDGetAtScopeFilterRoles");
99-
}
100-
10194
[Fact]
10295
[Trait(Category.AcceptanceType, Category.CheckIn)]
10396
public void RDDataActionsNegativeTestCases()

src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/RoleDefinitionTests.ps1

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -339,29 +339,6 @@ function Test-RDGetCustomRoles
339339
Remove-AzureRmRoleDefinition -Id $rd.Id -Force
340340
}
341341

342-
<#
343-
.SYNOPSIS
344-
Tests verify scenarios for RoleDefinitions creation.
345-
#>
346-
function Test-RDGetAtScopeFilterRoles
347-
{
348-
# Setup
349-
# Basic positive case - read from file
350-
$rdName = 'Another tests role'
351-
[Microsoft.Azure.Commands.Resources.Models.Authorization.AuthorizationClient]::RoleDefinitionNames.Enqueue("3d95b97a-5745-4c39-950c-0b608dea635f")
352-
$rd = New-AzureRmRoleDefinition -InputFile .\Resources\RoleDefinition.json
353-
354-
$rd = Get-AzureRmRoleDefinition -Name $rdName -AtScopeAndBelow
355-
Assert-AreEqual "Test role" $rd.Description
356-
Assert-AreEqual $true $rd.IsCustom
357-
Assert-NotNull $rd.AssignableScopes
358-
Assert-NotNull $rd.Actions
359-
Assert-NotNull $rd.NotActions
360-
361-
# Basic positive case - read from object
362-
Remove-AzureRmRoleDefinition -Id $rd.Id -Force
363-
}
364-
365342
<#
366343
.SYNOPSIS
367344
Tests validate input parameters

src/ResourceManager/Resources/Commands.Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.RoleAssignmentTests/RaById.json

Lines changed: 522 additions & 688 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)