Bound provisioning history and poll only active operations

This commit is contained in:
2026-10-05 14:52:30 -04:00
parent 16a5bc3534
commit 041c024f95
11 changed files with 279 additions and 44 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ describe('provisioning operations', () => {
const result = await submit({ server, action: 'start' });
expect(result.status).toBe(202);
const { deploymentId } = await result.json();
expect((await GET().json()).deployments).toContainEqual(expect.objectContaining({ id: deploymentId, action: 'start', state: 'waiting' }));
expect((await GET({ url: new URL('http://localhost/api/provisioning') }).json()).deployments).toContainEqual(expect.objectContaining({ id: deploymentId, action: 'start', state: 'waiting' }));
});
it('does not create a replacement when teardown fails or resume verification of the old instance', async () => {