| 1 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 2 |
|
| 3 |
from .._common import ENDPOINT_ID |
| 4 |
|
| 5 |
DEFAULT_RESPONSE_DOC = { |
| 6 |
"endpoint_id": ENDPOINT_ID, |
| 7 |
"task_queue_info": { |
| 8 |
"connection_url": "amqps://user:[email protected]", |
| 9 |
"exchange": "some_exchange", |
| 10 |
"queue": "some_queue", |
| 11 |
}, |
| 12 |
"result_queue_info": { |
| 13 |
"connection_url": "amqps://user:[email protected]", |
| 14 |
"exchange": "some_exchange", |
| 15 |
"queue": "some_queue", |
| 16 |
"queue_publish_kwargs": {}, |
| 17 |
}, |
| 18 |
} |
| 19 |
|
| 20 |
RESPONSES = ResponseSet( |
| 21 |
metadata={"endpoint_id": ENDPOINT_ID}, |
| 22 |
default=RegisteredResponse( |
| 23 |
service="compute", |
| 24 |
path=f"/v3/endpoints/{ENDPOINT_ID}", |
| 25 |
method="PUT", |
| 26 |
json=DEFAULT_RESPONSE_DOC, |
| 27 |
), |
| 28 |
) |