Bound provisioning history and poll only active operations
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user