| 1 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 2 |
|
| 3 |
from .._common import ENDPOINT_ID, FUNCTION_ID, FUNCTION_ID_2 |
| 4 |
|
| 5 |
DEFAULT_RESPONSE_DOC = { |
| 6 |
"endpoint_id": ENDPOINT_ID, |
| 7 |
"restricted": True, |
| 8 |
"functions": [FUNCTION_ID, FUNCTION_ID_2], |
| 9 |
} |
| 10 |
|
| 11 |
RESPONSES = ResponseSet( |
| 12 |
metadata={"endpoint_id": ENDPOINT_ID}, |
| 13 |
default=RegisteredResponse( |
| 14 |
service="compute", |
| 15 |
path=f"/v3/endpoints/{ENDPOINT_ID}/allowed_functions", |
| 16 |
method="GET", |
| 17 |
json=DEFAULT_RESPONSE_DOC, |
| 18 |
), |
| 19 |
) |