Fix guided lifecycle job scoping
This commit is contained in:
@@ -95,7 +95,7 @@ func TestRuntimeBindingValidationAndLifecycleGating(t *testing.T) {
|
||||
t.Fatalf("unexpected complete binding: view=%+v err=%v", view, err)
|
||||
}
|
||||
result, err := svc.StartServerInstanceForSession(ownerSession, domain.ServerLifecycleCommand{ServerInstanceID: instance.ID, ExpectedConfigVersion: instance.ConfigVersion, IdempotencyKey: "start-complete-binding"})
|
||||
if err != nil || result.Job.TargetKey != "local" {
|
||||
if err != nil || result.Job.TargetKey != "actions/start.json" || result.Job.ExecutionInput.WorkspaceScope != "local" {
|
||||
t.Fatalf("expected complete binding to permit start, result=%+v err=%v", result, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user