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
+2 -2
View File
@@ -32,7 +32,7 @@ func setup(t *testing.T) (func(...string) (string, error), *pipeline.Store, stri
url := "ws" + strings.TrimPrefix(http.URL, "http") + "/connect"
t.Setenv("PIPELINES_DRAFT_DIR", t.TempDir())
return func(args ...string) (string, error) {
if len(args) > 0 && args[0] == "submit" {
if len(args) > 0 && (args[0] == "submit" || args[0] == "new" || args[0] == "edit") {
args = append(args, "--yes")
}
var out, stderr bytes.Buffer
@@ -63,7 +63,7 @@ func TestCLIStatusAndStatistics(t *testing.T) {
if err != nil {
t.Fatal(err)
}
for _, text := range []string{"Pipelines server", "ntfy", "not configured", "Server computer IPs", "Port:"} {
for _, text := range []string{"Pipelines server", "ntfy", "not configured", "Port:"} {
if !strings.Contains(output, text) {
t.Fatal("missing CLI status", text, output)
}