@@ -737,9 +737,10 @@ describe('scaffolderPlugin', () => {
|
||||
});
|
||||
|
||||
// Retry the task by ID
|
||||
response = await request(server).post(
|
||||
`/api/scaffolder/v2/tasks/${taskId}/retry`,
|
||||
);
|
||||
response = await request(server)
|
||||
.post(`/api/scaffolder/v2/tasks/${taskId}/retry`)
|
||||
.send({});
|
||||
|
||||
expect(response.status).toBe(201);
|
||||
expect(response.body).toMatchObject({ id: taskId });
|
||||
|
||||
|
||||
@@ -696,3 +696,23 @@ paths:
|
||||
- JWT: []
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/taskId'
|
||||
|
||||
/v2/tasks/{taskId}/retry:
|
||||
post:
|
||||
operationId: Retry
|
||||
description: Starts the task again from the point where it failed.
|
||||
responses:
|
||||
'201':
|
||||
description: Ok
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
security:
|
||||
- {}
|
||||
- JWT: []
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/taskId'
|
||||
|
||||
Reference in New Issue
Block a user