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
Assert-MockCalledWrite-Host-Exactly 1-ParameterFilter { $Object-eq"Active Directory Application '$AssignRoleToAppName' already contains a role assignment for the role '$RoleName'" }
353
+
Assert-MockCalledWrite-Warning-Exactly 1-ParameterFilter { $Message-eq"Active Directory Application '$AssignRoleToAppName' already contains a role assignment for the role '$RoleName'" }
352
354
}
353
355
It "Providing a role that already exists and does not have a role assignment should succeed" {
Assert-MockCalledWrite-Host-Exactly 1-ParameterFilter { $Object-eq"Active Directory Application '$AppName' does not contain the role '$RoleName', adding the role" }
489
492
Assert-MockCalledUpdate-AzADApplication-Times 1
490
493
Assert-MockCalledWrite-Host-Exactly 1-ParameterFilter { $Object-eq"Added Role '$RoleName' to Active Directory Application '$AppName'" }
Assert-MockCalledWrite-Host-Exactly 1-ParameterFilter { $Object-eq"Active Directory Application '$AppName' does not contain the role '$RoleName', skipping removal" }
636
+
Assert-MockCalledWrite-Warning-Exactly 1-ParameterFilter { $Message-eq"Active Directory Application '$AppName' does not contain the role '$RoleName', skipping removal" }
634
637
}
635
638
It "Providing a role that has no role assignment on the Active Directory Application it should be removed from should succeed" {
Assert-MockCalledWrite-Host-Exactly 1-ParameterFilter { $Object-eq"Role '$RoleName' is not assigned to Active Directory Application '$RemoveRoleFromAppName', skipping role assignment removal" }
686
+
Assert-MockCalledWrite-Warning-Exactly 1-ParameterFilter { $Message-eq"Role '$RoleName' is not assigned to Active Directory Application '$RemoveRoleFromAppName', skipping role assignment removal" }
684
687
}
685
688
It "Providing a role that has a role assignment on the Active Directory Application it should be removed from should succeed" {
0 commit comments