Files
AzerothAI/deploy/pc-lab/check-lab.ps1
T
Richard Clark 5f0fc86cf9
Core tests / core (push) Successful in 9m57s
Full verification / application (push) Failing after 5m16s
Full verification / local-brain (push) Failing after 6m15s
Realm simulation / simulated-live-world (push) Failing after 5m32s
WoW integration lab / real-worldserver (push) Canceled after 17m23s
Import verified AzerothAI snapshot from GitHub
Source branch: feature/ai-brain-router
Source commit: c2a09e0460465201a58aaab56c71424e9a96405e
2026-09-22 13:12:54 -04:00

49 lines
1.5 KiB
PowerShell

param(
[Parameter(Mandatory=$true)]
[string]$VmIp,
[int]$DashboardPort = 8787,
[int]$AuthPort = 3724,
[int]$WorldPort = 8085
)
$ErrorActionPreference = "Continue"
function Test-Port([string]$HostName,[int]$Port,[string]$Label) {
$result = Test-NetConnection -ComputerName $HostName -Port $Port -WarningAction SilentlyContinue
if ($result.TcpTestSucceeded) {
Write-Host "[OK] $Label ${HostName}:$Port" -ForegroundColor Green
return $true
}
Write-Host "[FAIL] $Label ${HostName}:$Port" -ForegroundColor Red
return $false
}
Write-Host "AzerothAI PC Lab connectivity check" -ForegroundColor Cyan
Write-Host "VM: $VmIp"
Write-Host ""
$ok = $true
$ok = (Test-Port $VmIp $DashboardPort "World Monitor") -and $ok
$ok = (Test-Port $VmIp $AuthPort "WoW authserver") -and $ok
$ok = (Test-Port $VmIp $WorldPort "WoW worldserver") -and $ok
try {
$health = Invoke-RestMethod -Uri "http://${VmIp}:$DashboardPort/api/health" -TimeoutSec 5
Write-Host "[OK] AzerothAI health API" -ForegroundColor Green
$health | ConvertTo-Json -Depth 5
} catch {
Write-Host "[FAIL] AzerothAI health API" -ForegroundColor Red
$ok = $false
}
if (-not $ok) {
Write-Host ""
Write-Host "One or more checks failed. Verify the VM is using Bridged networking and the Ubuntu firewall is not blocking these ports." -ForegroundColor Yellow
exit 1
}
Write-Host ""
Write-Host "All network checks passed." -ForegroundColor Green
Write-Host "World Monitor: http://${VmIp}:$DashboardPort"
Write-Host "WoW realmlist: set realmlist $VmIp"