Skip to content

Commit ee88df4

Browse files
committed
Fix tests
1 parent b44c049 commit ee88df4

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# limitations under the License.
1313
# ----------------------------------------------------------------------------------
1414

15-
<<<<<<< HEAD
16-
1715
<#
1816
.SYNOPSIS
1917
Tests verify scenarios for RoleDefinitions creation.
@@ -50,7 +48,7 @@ function Test-RoleDefinitionCreateTests
5048
Assert-AreEqual $roleDef.AssignableScopes $addedRoleDef.AssignableScopes
5149
Assert-AreEqual $true $roleDef.IsCustom
5250
}
53-
=======
51+
5452
<#
5553
.SYNOPSIS
5654
Tests verify negative scenarios for RoleDefinitions
@@ -73,7 +71,7 @@ function Test-RdNegativeScenarios
7371
$rdNull = Get-AzureRoleDefinition -Name $rdName
7472

7573
# Create a role definition
76-
# $rd = New-AzureRoleDefinition -InputFile .Resources\RoleDefinition.json
74+
$rd = New-AzureRoleDefinition -InputFile .Resources\RoleDefinition.json
7775

7876
# Role Defintion not provided.
7977
$roleDefNotProvided = "Role definition not provided."
@@ -98,7 +96,7 @@ function Test-RDPositiveScenarios
9896
{
9997
# Create a role definition with Name rdNamme.
10098
$rdName = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa'
101-
# $rd = New-AzureRoleDefinition -InputFile .\Resources\RoleDefinition.json
99+
$rd = New-AzureRoleDefinition -InputFile .\Resources\RoleDefinition.json
102100
$rd = Get-AzureRoleDefinition -Name $rdName
103101

104102
# Update the role definition with name $rdName that was created in the step above.
@@ -117,7 +115,6 @@ function Test-RDPositiveScenarios
117115
$readRd = Get-AzureRoleDefinition -Name $rd.Name
118116
Assert-Null $readRd
119117

120-
# $rdReCreated = New-AzureRoleDefinition -Role $rd
118+
$rdReCreated = New-AzureRoleDefinition -Role $rd
121119
$rdReDeleted = Get-AzureRoleDefinition -Name $rd.Name | Remove-AzureRoleDefinition -Force
122120
}
123-
>>>>>>> 74b2c872d8648ba3f9c7695f9f851c7a287b02d3

0 commit comments

Comments
 (0)