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 Get-AADUserAll #14

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

100% Code Coverage for Get-AADUserAll #14

markekraus opened this issue Apr 22, 2017 · 0 comments

Comments

@markekraus
Copy link
Owner

Code coverage report:
Covered 0 % of 26 analyzed Commands in Get-AADUserAll
Missed commands:

Line Command
69 if (-not $pscmdlet.ShouldProcess($AccessToken.GUID)) { ...
72 $Application = $AccessToken.Application
73 $Tenant = $Application.Tenant
74 $SkipToken = $null
76 $Url = '{0}/{1}/{2}?api-version={3}{4}{5}' -f @( ...
77 $BaseUrl
78 $Tenant
79 'users'
80 $APIversion
81 '&$filter={0}' -f [System.Web.HttpUtility]::UrlEncode($Filter)
82 $SkipToken
84 $Params = @{ ...
85 Uri = $Url
86 Method = 'GET'
87 AccessToken = $AccessToken
88 ErrorAction = 'Stop'
91 $Results = Invoke-GraphRequest @Params
94 $ErrorMessage = "Unable to query members for user: {0}" -f $_.Exception.Message
95 Write-Error $ErrorMessage
98 $Results.ContentObject.value
99 $OutputObject = $Result.psobject.copy()
100 $OutputObject.psobject.TypeNames.Insert(0, 'MSGraphAPI.DirectoryObject.User')
101 $OutputObject
101 Add-Member -MemberType NoteProperty -Name _AccessToken -Value $AccessToken
102 $OutputObject
104 $SkipToken = $Results.ContentObject.'odata.nextLink' -replace '^.*skiptoken', '&$skiptoken'
@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