src/globus_sdk/testing/data/compute/v2/register_function.py
raw| 1 | from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 2 | |
| 3 | from .._common import FUNCTION_CODE, FUNCTION_ID, FUNCTION_NAME |
| 4 | |
| 5 | RESPONSES = ResponseSet( |
| 6 | metadata={ |
| 7 | "function_id": FUNCTION_ID, |
| 8 | "function_name": FUNCTION_NAME, |
| 9 | "function_code": FUNCTION_CODE, |
| 10 | }, |
| 11 | default=RegisteredResponse( |
| 12 | service="compute", |
| 13 | path="/v2/functions", |
| 14 | method="POST", |
| 15 | json={"function_uuid": FUNCTION_ID}, |
| 16 | ), |
| 17 | ) |