Import verified AzerothAI snapshot from GitHub
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
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
Source branch: feature/ai-brain-router Source commit: c2a09e0460465201a58aaab56c71424e9a96405e
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user