| 1 |
import uuid |
| 2 |
|
| 3 |
from globus_sdk.testing import RegisteredResponse, ResponseList, ResponseSet |
| 4 |
|
| 5 |
from ._common import RUN_ID |
| 6 |
|
| 7 |
GET_RUN_DEFINITION = { |
| 8 |
"flow_id": str(uuid.uuid4()), |
| 9 |
"definition": { |
| 10 |
"States": {"no-op": {"End": True, "Type": "Pass"}}, |
| 11 |
"StartAt": "no-op", |
| 12 |
}, |
| 13 |
"input_schema": {}, |
| 14 |
} |
| 15 |
|
| 16 |
|
| 17 |
RESPONSES = ResponseSet( |
| 18 |
metadata={"run_id": RUN_ID}, |
| 19 |
default=ResponseList( |
| 20 |
RegisteredResponse( |
| 21 |
service="flows", |
| 22 |
method="GET", |
| 23 |
path=f"/runs/{RUN_ID}/definition", |
| 24 |
json=GET_RUN_DEFINITION, |
| 25 |
), |
| 26 |
), |
| 27 |
) |