Validate providers and retain complete run debugging context
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user