Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

100% Code Coverage for Remove-AADAppRoleAssignment #24

Open
markekraus opened this issue Apr 22, 2017 · 0 comments
Open

100% Code Coverage for Remove-AADAppRoleAssignment #24

markekraus opened this issue Apr 22, 2017 · 0 comments

Comments

@markekraus
Copy link
Owner

Code coverage report:
Covered 0 % of 21 analyzed Commands in Remove-AADAppRoleAssignment
Missed commands:

Line Command
70 $AppRoleAssignment
71 if (-not $pscmdlet.ShouldProcess($AppRole.ObjectId)) { ...
74 $AccessToken = $AppRole._AccessToken
75 $Application = $AccessToken.Application
76 $Tenant = $Application.Tenant
77 $Url = '{0}/{1}/{2}/{3}/{4}/{5}?api-version={6}' -f @( ...
78 $BaseUrl
79 $Tenant
80 'users'
81 $AppRole.principalId
82 'appRoleAssignments'
83 [System.Web.HttpUtility]::UrlEncode($AppRole.ObjectId)
84 $APIversion
86 $Params = @{ ...
87 Uri = $Url
88 Method = 'DELETE'
89 AccessToken = $AccessToken
90 ErrorAction = 'Stop'
93 Invoke-GraphRequest @Params
96 $ErrorMessage = "Unable to remove App Assignments for App Role Assignment '{0}': {1}" -f $AppRole.ObjectId, $_.Exception.Message
97 Write-Error $ErrorMessage
@markekraus markekraus added this to the 100% Code Coverage milestone Apr 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant