0.2.64 update

This commit is contained in:
ponzischeme89
2026-08-15 09:23:26 +12:00
parent a2ca7e8061
commit d5d47473a2
90 changed files with 9188 additions and 451 deletions
+18
View File
@@ -0,0 +1,18 @@
package main
import (
"net/http"
"net/http/httptest"
"strings"
"testing"
)
func TestIdleStatusEmitsEmptyLogsArray(t *testing.T) {
c := &controller{status: releaseStatus{State: "idle"}}
recorder := httptest.NewRecorder()
c.handleStatus(recorder, httptest.NewRequest(http.MethodGet, "/v1/status", nil))
if got := recorder.Body.String(); !strings.Contains(got, `"logs":[]`) {
t.Fatalf("idle status must emit an empty logs array: %s", got)
}
}