Expand test coverage across server, agent, and web; fix bugs found during audit.

Adds hundreds of unit/integration/e2e tests, fixes WS bcrypt auth, config merge, fleet analytics, agent schedule/log tail, and documents stale PROBLEMS items. Updates PROBLEMS.md, README, and test scripts; ignores local spread-kits and coverage dirs.
This commit is contained in:
AetherForge
2026-05-31 01:13:49 -07:00
parent 159747877c
commit ea6f54ad03
89 changed files with 5307 additions and 322 deletions

View File

@@ -1,10 +1,13 @@
# AetherForge API smoke tests — B-01 through B-10 matrix
param(
[string]$BaseUrl = "http://localhost:8989",
[string]$Username = "drjones",
[string]$Password = "czapiewski"
[string]$Username,
[string]$Password
)
if (-not $Username) { $Username = if ($env:AETHERFORGE_E2E_USER) { $env:AETHERFORGE_E2E_USER } else { "testuser" } }
if (-not $Password) { $Password = if ($env:AETHERFORGE_E2E_PASS) { $env:AETHERFORGE_E2E_PASS } else { "testpass" } }
$ErrorActionPreference = "Stop"
$passed = 0
$failed = 0

View File

@@ -111,6 +111,12 @@ if (-not $SkipE2E) {
Invoke-Phase "8/8 E2E smoke (Playwright)" {
$DataDir = Join-Path $env:TEMP ("aether-e2e-" + [guid]::NewGuid().ToString("n"))
New-Item -ItemType Directory -Force -Path $DataDir | Out-Null
$E2EUser = if ($env:AETHERFORGE_E2E_USER) { $env:AETHERFORGE_E2E_USER } else { "testuser" }
$E2EPass = if ($env:AETHERFORGE_E2E_PASS) { $env:AETHERFORGE_E2E_PASS } else { "testpass" }
$usersObj = @{ $E2EUser = $E2EPass }
[System.IO.File]::WriteAllText((Join-Path $DataDir "users.json"), ($usersObj | ConvertTo-Json -Compress))
$env:AETHERFORGE_E2E_USER = $E2EUser
$env:AETHERFORGE_E2E_PASS = $E2EPass
$WebRoot = Join-Path $Root "server\webroot"
Copy-Item (Join-Path $Root "server\web\dist\*") $WebRoot -Recurse -Force -ErrorAction SilentlyContinue
$ServerExe = Join-Path $Root "bin\miner-server.exe"