Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Use internal mock host for release assets

rcourtmanaccd1c642f7d
diff --git a/tests/integration/docker-compose.test.yml b/tests/integration/docker-compose.test.yml
index a605729cc0..6bf13d4dbc 100644
--- a/tests/integration/docker-compose.test.yml
+++ b/tests/integration/docker-compose.test.yml
@@ -9,6 +9,7 @@ services:
- "8080:8080"
environment:
- PORT=8080
+ - MOCK_BASE_URL=http://mock-github:8080
# Control test scenarios via environment variables
- MOCK_CHECKSUM_ERROR=${MOCK_CHECKSUM_ERROR:-false}
- MOCK_NETWORK_ERROR=${MOCK_NETWORK_ERROR:-false}
diff --git a/tests/integration/mock-github-server/main.go b/tests/integration/mock-github-server/main.go
index ef4bb160f4..14237d7fa7 100644
--- a/tests/integration/mock-github-server/main.go
+++ b/tests/integration/mock-github-server/main.go
@@ -107,7 +107,7 @@ func main() {
}
limiter := newRateLimiter()
- baseURL := fmt.Sprintf("http://localhost:%s", port)
+ baseURL := getenvDefault("MOCK_BASE_URL", fmt.Sprintf("http://mock-github:%s", port))
// Environment-controlled behavior
checksumError := os.Getenv("MOCK_CHECKSUM_ERROR") == "true"