5e9939724c
Publish TaskQuery helpers to script scope after import so deploy checks work from nested callers; add kalinamall-only smoke tests and RDP_DEPLOY_FUNCTIONS_ONLY hook. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
665 B
PowerShell
16 lines
665 B
PowerShell
. (Join-Path $PSScriptRoot '_TestLib.ps1')
|
|
|
|
$repo = Get-RdpMonitorRepoRoot
|
|
$taskQuery = Join-Path $repo 'RdpMonitor-TaskQuery.ps1'
|
|
|
|
Invoke-RdpMonitorTestCase -Name 'TaskQuery file exists' -Script {
|
|
Assert-True -Condition (Test-Path -LiteralPath $taskQuery) -Message "Missing $taskQuery"
|
|
}
|
|
|
|
Invoke-RdpMonitorTestCase -Name 'TaskQuery dot-source defines core commands' -Script {
|
|
. $taskQuery
|
|
Assert-CommandExists -Name 'Get-RdpMonitorScheduledTaskExecutionTimeLimitResolved'
|
|
Assert-CommandExists -Name 'Test-RdpMonitorScheduledTaskNeedsUnlimitedExecutionTimeLimit'
|
|
Assert-CommandExists -Name 'Get-RdpMonitorScheduledTaskExecutionTimeLimitLabel'
|
|
}
|