mirror of
https://github.com/stablyai/orca.git
synced 2026-10-03 08:02:12 +00:00
test(orchestration): assert takeover pane binding on the Run row, not the receipt
This commit is contained in:
@@ -81,13 +81,12 @@ describe('legacy takeover by current runtime authority', () => {
|
||||
expect(response).toMatchObject({
|
||||
ok: true,
|
||||
result: {
|
||||
run: {
|
||||
id: harness.adoptedRunId,
|
||||
coordinator_handle: CURRENT_COORDINATOR_HANDLE,
|
||||
coordinator_pane_key: CURRENT_COORDINATOR_PANE
|
||||
}
|
||||
run: { id: harness.adoptedRunId, coordinator_handle: CURRENT_COORDINATOR_HANDLE }
|
||||
}
|
||||
})
|
||||
expect(harness.db.getRun(harness.adoptedRunId)?.coordinator_pane_key).toBe(
|
||||
CURRENT_COORDINATOR_PANE
|
||||
)
|
||||
})
|
||||
|
||||
it('requires a runtime-issued SSH attachment for fresh launch proof', async () => {
|
||||
|
||||
@@ -284,12 +284,11 @@ describe('orchestration runtime update settlement', () => {
|
||||
|
||||
expect(spoofed).toMatchObject({ ok: false, error: { code: 'stable_pane_required' } })
|
||||
expect(firstResult).toMatchObject({
|
||||
run: {
|
||||
id: harness.adoptedRunId,
|
||||
coordinator_handle: CURRENT_COORDINATOR_HANDLE,
|
||||
coordinator_pane_key: CURRENT_COORDINATOR_PANE
|
||||
}
|
||||
run: { id: harness.adoptedRunId, coordinator_handle: CURRENT_COORDINATOR_HANDLE }
|
||||
})
|
||||
expect(harness.db.getRun(harness.adoptedRunId)?.coordinator_pane_key).toBe(
|
||||
CURRENT_COORDINATOR_PANE
|
||||
)
|
||||
expect(replayResult).toMatchObject({
|
||||
run: firstResult.run,
|
||||
mutation: { requestId: 'authenticated-takeover', replayed: true }
|
||||
|
||||
Reference in New Issue
Block a user