Tests/Unit/Public/Access/Get-SCAEligibleGroup.Tests.ps1
|
Import-Module (Join-Path $PSScriptRoot '../../../../psSCA.psd1') -Force Describe 'Get-SCAEligibleGroup' { InModuleScope psSCA { It 'calls the eligibility groups endpoint with the lowercased provider as the csp path parameter' { Mock Invoke-SCARequest { } Get-SCAEligibleGroup -Provider Azure | Out-Null Should -Invoke Invoke-SCARequest -ParameterFilter { $Service -eq 'SCA' -and $Method -eq 'GET' -and $Path -eq '/access/{csp}/eligibility/groups' -and $PathParameters['csp'] -eq 'azure' } } } } |