You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Fact(Skip="Fix the flaky test and token error and then re-record the test. Token from admin user is being used even when trying to use newly created user.")]
Assert-NotNull$data"The role assignment was not created succesfully"
779
-
Assert-AreEqual$RoleDefinitionId$data.RoleDefinitionId"Assertion failed because expected RoleDefinitionId '$RoleDefinitionId' does not match actual '$data.RoleDefinitionId'"
780
-
Assert-AreEqual$PrincipalId$data.ObjectId"Assertion failed because expected PrincipalId '$PrincipalId' does not match actual '$data.ObjectId'"
781
-
Assert-AreEqual$Scope$data.Scope"Assertion failed because expected Scope '$Scope' does not match actual '$data.Scope'"
782
-
Assert-AreEqual$Description$data.Description"Assertion failed because expected Description '$Description' does not match actual '$data.Description'"
783
-
Assert-AreEqual$Condition$data.Condition"Assertion failed because expected Condition '$Condition' does not match actual '$data.Condition'"
784
-
Assert-AreEqual$ConditionVersion$data.ConditionVersion"Assertion failed because expected ConditionVersion '$ConditionVersion' does not match actual '$data.ConditionVersion'"
785
-
786
-
#Cleanup
787
-
$data=Remove-AzRoleAssignment-InputObject $data
788
-
Assert-Null$data"Role assignment was not deleted properly"
Assert-NotNull$data"The role assignment was not created succesfully"
818
-
Assert-AreEqual$RoleDefinitionId$data.RoleDefinitionId"Assertion failed because expected RoleDefinitionId '$RoleDefinitionId' does not match actual '$data.RoleDefinitionId'"
819
-
Assert-AreEqual$PrincipalId$data.ObjectId"Assertion failed because expected PrincipalId '$PrincipalId' does not match actual '$data.ObjectId'"
820
-
Assert-AreEqual$Scope$data.Scope"Assertion failed because expected Scope '$Scope' does not match actual '$data.Scope'"
821
-
Assert-AreEqual$Description$data.Description"Assertion failed because expected Description '$Description' does not match actual '$data.Description'"
822
-
Assert-AreEqual$Condition$data.Condition"Assertion failed because expected Condition '$Condition' does not match actual '$data.Condition'"
823
-
Assert-AreEqual$ConditionVersion$data.ConditionVersion"Assertion failed because expected ConditionVersion '$ConditionVersion' does not match actual '$data.ConditionVersion'"
824
-
825
-
#Cleanup
826
-
$data=Remove-AzRoleAssignment-InputObject $data
827
-
Assert-Null$data"Role assignment was not deleted properly"
828
-
}
829
-
830
-
<#
831
-
.SYNOPSIS
832
-
Create role assignment with v2 conditions
833
-
#>
834
-
functionTest-RaWithV2ConditionVersionOnly{
835
-
# IMPORTANT this cmdlet gets interrupted before any network call in this scenario, no session record is needed
0 commit comments