17 lines
618 B
PowerShell
17 lines
618 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$root = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
$python = Join-Path $root 'domainCheck\.venv\Scripts\python.exe'
|
|
$script = Join-Path $root 'domain-api\deploy\linux\smoke_test.py'
|
|
$apiBaseUrl = if ($env:API_BASE_URL) { $env:API_BASE_URL } else { 'http://127.0.0.1:8100' }
|
|
$webUrl = if ($env:WEB_URL) { $env:WEB_URL } else { 'http://127.0.0.1:3200' }
|
|
|
|
if (-not (Test-Path $python)) {
|
|
throw "Python interpreter not found: $python"
|
|
}
|
|
|
|
if (-not (Test-Path $script)) {
|
|
throw "Smoke test script not found: $script"
|
|
}
|
|
|
|
& $python $script --base-url $apiBaseUrl --web-url $webUrl
|