Validate providers and retain complete run debugging context

This commit is contained in:
2026-10-09 23:21:01 +01:00
parent f3d829bea5
commit 08b8647d5b
51 changed files with 1036 additions and 159 deletions
+16
View File
@@ -0,0 +1,16 @@
package server
import (
"net/http/httptest"
"testing"
"time"
)
func TestDockerStatusUsesPublishedHostAddressAndPort(t *testing.T) {
t.Setenv("PIPELINES_HOST_IP", "192.0.2.25")
t.Setenv("PIPELINES_PUBLIC_PORT", "18080")
s := systemStatus(httptest.NewRequest("GET", "http://localhost:8080/connect", nil), time.Now(), nil)
if s.Server.URL != "ws://192.0.2.25:18080/connect" || s.Server.Port != "18080" || len(s.Addresses) != 1 || s.Addresses[0].IP != "192.0.2.25" {
t.Fatal(s)
}
}