12
12
# limitations under the License.
13
13
# ----------------------------------------------------------------------------------
14
14
15
- <<<<<<< HEAD
16
-
17
15
<#
18
16
. SYNOPSIS
19
17
Tests verify scenarios for RoleDefinitions creation.
@@ -50,7 +48,7 @@ function Test-RoleDefinitionCreateTests
50
48
Assert-AreEqual $roleDef.AssignableScopes $addedRoleDef.AssignableScopes
51
49
Assert-AreEqual $true $roleDef.IsCustom
52
50
}
53
- =======
51
+
54
52
<#
55
53
. SYNOPSIS
56
54
Tests verify negative scenarios for RoleDefinitions
@@ -73,7 +71,7 @@ function Test-RdNegativeScenarios
73
71
$rdNull = Get-AzureRoleDefinition - Name $rdName
74
72
75
73
# Create a role definition
76
- # $rd = New-AzureRoleDefinition -InputFile .Resources\RoleDefinition.json
74
+ $rd = New-AzureRoleDefinition - InputFile .Resources\RoleDefinition.json
77
75
78
76
# Role Defintion not provided.
79
77
$roleDefNotProvided = " Role definition not provided."
@@ -98,7 +96,7 @@ function Test-RDPositiveScenarios
98
96
{
99
97
# Create a role definition with Name rdNamme.
100
98
$rdName = ' aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa'
101
- # $rd = New-AzureRoleDefinition -InputFile .\Resources\RoleDefinition.json
99
+ $rd = New-AzureRoleDefinition - InputFile .\Resources\RoleDefinition.json
102
100
$rd = Get-AzureRoleDefinition - Name $rdName
103
101
104
102
# Update the role definition with name $rdName that was created in the step above.
@@ -117,7 +115,6 @@ function Test-RDPositiveScenarios
117
115
$readRd = Get-AzureRoleDefinition - Name $rd.Name
118
116
Assert-Null $readRd
119
117
120
- # $rdReCreated = New-AzureRoleDefinition -Role $rd
118
+ $rdReCreated = New-AzureRoleDefinition - Role $rd
121
119
$rdReDeleted = Get-AzureRoleDefinition - Name $rd.Name | Remove-AzureRoleDefinition - Force
122
120
}
123
- >>>>>>> 74b2c872d8648ba3f9c7695f9f851c7a287b02d3
0 commit comments