Skip to content

Commit abcd6dd

Browse files
himanshusainigFAREAST\hsainiCopilot
authored
Update Standard Logic App workflows and scripts (June 3rd) (#133)
* Update Standard Logic App workflows and scripts (June 3rd) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Bump StandardLogicApp VERSION from 3.0 to 4.0 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: FAREAST\hsaini <hsaini@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7769947 commit abcd6dd

9 files changed

Lines changed: 11269 additions & 6432 deletions

Microsoft.SCIM.LogicAppValidationTemplate/StandardLogicApp/GroupTests_Workflow.json

Lines changed: 583 additions & 8 deletions
Large diffs are not rendered by default.

Microsoft.SCIM.LogicAppValidationTemplate/StandardLogicApp/Initialization_Workflow.json

Lines changed: 412 additions & 16 deletions
Large diffs are not rendered by default.

Microsoft.SCIM.LogicAppValidationTemplate/StandardLogicApp/Orchestrator_Parameters.json

Lines changed: 282 additions & 233 deletions
Large diffs are not rendered by default.

Microsoft.SCIM.LogicAppValidationTemplate/StandardLogicApp/Orchestrator_Workflow.json

Lines changed: 685 additions & 591 deletions
Large diffs are not rendered by default.

Microsoft.SCIM.LogicAppValidationTemplate/StandardLogicApp/SCIMTests_Workflow.json

Lines changed: 3238 additions & 1469 deletions
Large diffs are not rendered by default.

Microsoft.SCIM.LogicAppValidationTemplate/StandardLogicApp/UserTests_Workflow.json

Lines changed: 5549 additions & 3993 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0
1+
4.0

Microsoft.SCIM.LogicAppValidationTemplate/StandardLogicApp/ValidateLogicAppRun-Standard.ps1

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,19 +381,23 @@ foreach ($wf in $wfDefs.Keys) {
381381

382382
# ---------- 8. Aggregates ----------
383383
Write-Host "[8/9] Compute aggregates" -ForegroundColor Cyan
384+
# Probe actions whose Failed status is the expected success signal
385+
$failedWhitelist = @('DeleteUser_Check_User_Deleted')
384386
$allFlat = @()
385387
foreach ($wf in $wfActions.Keys) { $allFlat += $wfActions[$wf] }
388+
$whitelistedCount = ($allFlat | Where-Object { $_.properties.status -eq "Failed" -and $_.name -in $failedWhitelist }).Count
386389
$summary = [ordered]@{
387390
total = $allFlat.Count
388-
succeeded = ($allFlat | Where-Object { $_.properties.status -eq "Succeeded" }).Count
389-
failed = ($allFlat | Where-Object { $_.properties.status -eq "Failed" }).Count
391+
succeeded = ($allFlat | Where-Object { $_.properties.status -eq "Succeeded" }).Count + $whitelistedCount
392+
failed = ($allFlat | Where-Object { $_.properties.status -eq "Failed" -and $_.name -notin $failedWhitelist }).Count
390393
skipped = ($allFlat | Where-Object { $_.properties.status -eq "Skipped" }).Count
391394
other = ($allFlat | Where-Object { $_.properties.status -notin @("Succeeded","Failed","Skipped") }).Count
392395
}
393396
$failedActions = New-Object System.Collections.ArrayList
394397
foreach ($wf in $wfActions.Keys) {
395398
foreach ($a in $wfActions[$wf]) {
396399
if ($a.properties.status -ne "Failed") { continue }
400+
if ($a.name -in $failedWhitelist) { continue } # skip whitelisted probe actions
397401
$msg = $a.properties.error.message
398402
$code = $a.properties.error.code
399403
if (-not $msg -and $contentMap.ContainsKey($wf) -and $contentMap[$wf].ContainsKey($a.name)) {
@@ -411,9 +415,9 @@ foreach ($wf in $wfActions.Keys) {
411415
}
412416
$testSummary = [ordered]@{
413417
total = $testResults.Count
414-
success = ($testResults | Where-Object { $_.testResult -eq "success" }).Count
418+
success = ($testResults | Where-Object { $_.testResult -like "success*" }).Count
415419
skipped = ($testResults | Where-Object { $_.testResult -eq "SKIPPED" }).Count
416-
failed = ($testResults | Where-Object { $_.testResult -ne "success" -and $_.testResult -ne "SKIPPED" }).Count
420+
failed = ($testResults | Where-Object { $_.testResult -notlike "success*" -and $_.testResult -ne "SKIPPED" }).Count
417421
}
418422

419423
$tplRoot = $wfDefs['Orchestrator_Workflow'].actions

Microsoft.SCIM.LogicAppValidationTemplate/StandardLogicApp/scim-onboarding.agent.md

Lines changed: 511 additions & 117 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)