Skip to content

Commit

Permalink
Fix: Add missing test for FunctionInterrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
Splaxi committed Mar 3, 2024
1 parent b523742 commit 0756f9b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions d365bap.tools/functions/Confirm-BapEnvironmentIntegration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ function Confirm-BapEnvironmentIntegration {
}

process {
if (Test-PSFFunctionInterrupt) { return }

$resValidate = Invoke-RestMethod -Method Get -Uri $($baseUri + '/api/data/v9.2/RetrieveFinanceAndOperationsIntegrationDetails') -Headers $headersWebApi

$temp = $resValidate | Select-PSFObject -TypeName "D365Bap.Tools.Environment.Integration" -ExcludeProperty "@odata.context" -Property "Id as LinkedAppLcsEnvId",
Expand Down
1 change: 0 additions & 1 deletion d365bap.tools/functions/Get-BapEnvironment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ function Get-BapEnvironment {
}

process {

$resCol = @(
foreach ($envObj in $resEnvs) {
if (-not ($envObj.Name -like $EnvironmentId)) { continue }
Expand Down
2 changes: 2 additions & 0 deletions d365bap.tools/functions/Get-BapEnvironmentApplicationUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ function Get-BapEnvironmentApplicationUser {
}

process {
if (Test-PSFFunctionInterrupt) { return }

$resAppUsers = Invoke-RestMethod -Method Get -Uri $($baseUri + '/api/data/v9.2/applicationusers') -Headers $headersWebApi
$resCol = @(
foreach ($appUsrObj in $($resAppUsers.value | Sort-Object -Property applicationname)) {
Expand Down
2 changes: 2 additions & 0 deletions d365bap.tools/functions/Get-BapEnvironmentUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ function Get-BapEnvironmentUser {
}

process {
if (Test-PSFFunctionInterrupt) { return }

$resUsers = Invoke-RestMethod -Method Get -Uri $($baseUri + '/api/data/v9.2/systemusers?$select=fullname,internalemailaddress,applicationid&$expand=user_settings($select=uilanguageid)') -Headers $headersWebApi

$resCol = @(
Expand Down
2 changes: 2 additions & 0 deletions d365bap.tools/functions/Get-BapEnvironmentVirtualEntity.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ function Get-BapEnvironmentVirtualEntity {
}

process {
if (Test-PSFFunctionInterrupt) { return }

$localUri = $($baseUri + '/api/data/v9.2/mserp_financeandoperationsentities')

[System.Collections.Generic.List[System.String]]$filters = @()
Expand Down

0 comments on commit 0756f9b

Please sign in to comment.