| 1 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 2 |
|
| 3 |
from .._common import TASK_GROUP_ID, TASK_ID, TASK_ID_2 |
| 4 |
|
| 5 |
SUBMIT_RESPONSE = { |
| 6 |
"response": "success", |
| 7 |
"task_group_id": TASK_GROUP_ID, |
| 8 |
"results": [ |
| 9 |
{ |
| 10 |
"status": "success", |
| 11 |
"task_uuid": TASK_ID, |
| 12 |
"http_status_code": 200, |
| 13 |
"reason": None, |
| 14 |
}, |
| 15 |
{ |
| 16 |
"status": "success", |
| 17 |
"task_uuid": TASK_ID_2, |
| 18 |
"http_status_code": 200, |
| 19 |
"reason": None, |
| 20 |
}, |
| 21 |
], |
| 22 |
} |
| 23 |
|
| 24 |
RESPONSES = ResponseSet( |
| 25 |
metadata={ |
| 26 |
"task_group_id": TASK_GROUP_ID, |
| 27 |
"task_id": TASK_ID, |
| 28 |
"task_id_2": TASK_ID_2, |
| 29 |
}, |
| 30 |
default=RegisteredResponse( |
| 31 |
service="compute", |
| 32 |
path="/v2/submit", |
| 33 |
method="POST", |
| 34 |
json=SUBMIT_RESPONSE, |
| 35 |
), |
| 36 |
) |