Close automatable P2 test gaps with mocks and httptest integration.
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled

Add container/podman exec mocks, BITS/curl HiddenRun coverage, WinRM/GPO/systemd deploy-plan httptest, and a 3-hop discover-spread Playwright stub chain.
This commit is contained in:
AetherForge
2026-06-07 06:12:08 -07:00
parent 0445b7ed4f
commit d18c5910c2
14 changed files with 801 additions and 38 deletions

View File

@@ -83,12 +83,12 @@ Write-Host " Root: $Root"
if ($P2) {
Invoke-Phase "P2 focused (mining, spread, path forge, WS/beacon)" {
Push-Location (Join-Path $Root "server")
go test ./internal/api/... ./internal/builder/... -run "SpreadLane|WSBeacon|PathForge|Download|SpreadCred" -count=1
go test ./internal/api/... ./internal/builder/... -run "SpreadLane|WSBeacon|PathForge|Download|SpreadCred|PostDeploy" -count=1
Pop-Location
Push-Location (Join-Path $Root "agent")
go test ./client/... -run "MiningChain|WSBeacon|PathTracer" -count=1
go test ./deploy/... -run "WinRM|Spread|Staging|LinuxLOTL" -count=1
go test ./miner/... -run "Fallback|TripleOnion" -count=1
go test ./deploy/... -run "WinRM|Spread|Staging|LinuxLOTL|BITS|HiddenRun|DeployPlan" -count=1
go test ./miner/... -run "Fallback|TripleOnion|Container|Runtime" -count=1
Pop-Location
Push-Location (Join-Path $Root "server\web")
if (-not (Test-Path "node_modules")) { npm install --silent }