dev
This commit is contained in:
16
smoke_test_stack.ps1
Normal file
16
smoke_test_stack.ps1
Normal 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
|
||||
Reference in New Issue
Block a user