This commit is contained in:
Your Name
2026-04-16 13:05:07 +08:00
commit 32efff1670
99 changed files with 9974 additions and 0 deletions

16
smoke_test_stack.ps1 Normal file
View File

@@ -0,0 +1,16 @@
$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