Skip to content

Commit 0017373

Browse files
test: update workflow tests for batch 2.5a (version 2, 15 steps)
1 parent e5e7c66 commit 0017373

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

internal/flowengine/workflows/workflows_test.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,21 @@ func TestAppStoreInstallWorkflowSteps(t *testing.T) {
6363
if w.Type() != "appstore_install" {
6464
t.Errorf("expected type 'appstore_install', got %q", w.Type())
6565
}
66-
if w.Version() != 1 {
67-
t.Errorf("expected version 1, got %d", w.Version())
66+
if w.Version() != 2 {
67+
t.Errorf("expected version 2, got %d", w.Version())
6868
}
6969

7070
steps := w.Steps()
71-
if len(steps) != 13 {
72-
t.Fatalf("expected 13 steps, got %d", len(steps))
71+
if len(steps) != 15 {
72+
t.Fatalf("expected 15 steps, got %d", len(steps))
7373
}
7474

7575
// Verify step order
7676
expectedNames := []string{
7777
"validate", "read_manifest", "allocate_port", "process_manifest",
7878
"create_dirs", "remap_volumes", "write_compose", "deploy_stack",
79-
"wait_convergence", "add_dns", "create_proxy", "insert_db", "health_check",
79+
"wait_convergence", "add_dns", "create_proxy", "insert_db",
80+
"store_volumes", "detect_webui", "health_check",
8081
}
8182
for i, name := range expectedNames {
8283
if steps[i].Name != name {
@@ -110,7 +111,8 @@ func TestAppStoreInstallWorkflowSteps(t *testing.T) {
110111
// Verify read-only steps have no compensation
111112
readOnlySteps := map[string]bool{
112113
"validate": true, "read_manifest": true, "process_manifest": true,
113-
"remap_volumes": true, "wait_convergence": true, "health_check": true,
114+
"remap_volumes": true, "wait_convergence": true, "store_volumes": true,
115+
"detect_webui": true, "health_check": true,
114116
}
115117
for _, step := range steps {
116118
if readOnlySteps[step.Name] && step.Compensate != "" {
@@ -182,7 +184,7 @@ func TestAllWorkflowsHaveNonEmptyActions(t *testing.T) {
182184
steps int
183185
}{
184186
{"app_install", 9},
185-
{"appstore_install", 13},
187+
{"appstore_install", 15},
186188
{"appstore_remove", 6},
187189
} {
188190
var stepCount int

0 commit comments

Comments
 (0)