Complete provisioning job detail pages and lifecycle evidence
This commit is contained in:
@@ -502,7 +502,10 @@ describe('server creation map selection', () => {
|
||||
expect(komodoDestroyDeployment).not.toHaveBeenCalled();
|
||||
const detail = await (await GET({ params: { id: body.deploymentId } })).json();
|
||||
expect(detail.deployment).toMatchObject({ server: serverName, action: 'destroy', state: 'waiting' });
|
||||
expect(detail.events).toHaveLength(2);
|
||||
expect(detail.events.map((event: { message: string }) => event.message)).toEqual(expect.arrayContaining([
|
||||
'Server destruction requested', 'Waiting to verify the server is empty'
|
||||
]));
|
||||
expect(detail.events.every((event: { id: number }, index: number) => index === 0 || detail.events[index - 1].id < event.id)).toBe(true);
|
||||
const missing = await DELETE({ params: { name: 'missing-server' } });
|
||||
expect(missing.status).toBe(404);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user