-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
Test InfraTest frameworkTest frameworkbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.
Milestone
Description
Description
Test-NewADServicePrincipalWithoutApp in ActiveDirectroy secenario test is legary now.
# Test
$servicePrincipal = New-AzADServicePrincipal -DisplayName $displayName
$role = Get-AzRoleAssignment -ObjectId $servicePrincipal.Id
# Assert
Assert-NotNull $servicePrincipal
Assert-AreEqual $servicePrincipal.DisplayName $displayName
Assert-Null $role
When role is not specified explicitly, New-AzADServicePrincipal has a default role, which is "Contributor". And so the $role is not nul in the test case.
Cost
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Test InfraTest frameworkTest frameworkbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.