This commit is contained in:
2026-08-16 16:57:36 +02:00
parent 96f8c1115c
commit 532d439c41
106 changed files with 10147 additions and 494 deletions
@@ -28,6 +28,23 @@ func TestStopOnCancel(t *testing.T) {
}
}
func TestIsTerminalJobStatus(t *testing.T) {
cases := map[string]bool{
"pending": false,
"running": false,
"cancelled": true,
"failed": true,
"completed": true,
" FAILED ": true,
"": false,
}
for in, want := range cases {
if got := isTerminalJobStatus(in); got != want {
t.Fatalf("isTerminalJobStatus(%q)=%v want %v", in, got, want)
}
}
}
func TestMarshalStepProgress_roundTrip(t *testing.T) {
progress := InitialStepProgress("full")
if len(progress) == 0 {