| 1 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 2 |
|
| 3 |
from .._common import FUNCTION_CODE, FUNCTION_ID, FUNCTION_NAME |
| 4 |
|
| 5 |
FUNCTION_DOC = { |
| 6 |
"function_uuid": FUNCTION_ID, |
| 7 |
"function_name": FUNCTION_NAME, |
| 8 |
"function_code": FUNCTION_CODE, |
| 9 |
"description": "I just wanted to say hello.", |
| 10 |
"metadata": {"python_version": "3.12.6", "sdk_version": "2.28.1"}, |
| 11 |
} |
| 12 |
|
| 13 |
RESPONSES = ResponseSet( |
| 14 |
metadata={ |
| 15 |
"function_id": FUNCTION_ID, |
| 16 |
"function_name": FUNCTION_NAME, |
| 17 |
"function_code": FUNCTION_CODE, |
| 18 |
}, |
| 19 |
default=RegisteredResponse( |
| 20 |
service="compute", |
| 21 |
path=f"/v2/functions/{FUNCTION_ID}", |
| 22 |
method="GET", |
| 23 |
json=FUNCTION_DOC, |
| 24 |
), |
| 25 |
) |