| 1 |
import uuid |
| 2 |
|
| 3 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 4 |
|
| 5 |
TUNNEL_ID = str(uuid.uuid4()) |
| 6 |
|
| 7 |
|
| 8 |
RESPONSES = ResponseSet( |
| 9 |
default=RegisteredResponse( |
| 10 |
service="transfer", |
| 11 |
method="PATCH", |
| 12 |
path=f"/v2/tunnels/{TUNNEL_ID}", |
| 13 |
json={ |
| 14 |
"data": { |
| 15 |
"attributes": { |
| 16 |
"created_time": "2025-12-12T21:11:50.525278", |
| 17 |
"initiator_ip_address": None, |
| 18 |
"initiator_port": None, |
| 19 |
"label": "Buzz Tester", |
| 20 |
"lifetime_mins": 360, |
| 21 |
"listener_ip_address": None, |
| 22 |
"listener_port": None, |
| 23 |
"restartable": False, |
| 24 |
"state": "STOPPING", |
| 25 |
"status": "A request to stop tunnel has been received.", |
| 26 |
"submission_id": "292b0054-7084-46eb-83d6-7a6821b1f77e", |
| 27 |
}, |
| 28 |
"id": "1c1be52d-2d4d-4200-b4ad-d75d43eb0d9c", |
| 29 |
"relationships": { |
| 30 |
"initiator": { |
| 31 |
"data": { |
| 32 |
"id": "80583f05-75f3-4825-b8a5-6c3edf0bbc5c", |
| 33 |
"type": "StreamAccessPoint", |
| 34 |
} |
| 35 |
}, |
| 36 |
"listener": { |
| 37 |
"data": { |
| 38 |
"id": "dd5fa993-749f-48fb-86cf-f07ad5797d7e", |
| 39 |
"type": "StreamAccessPoint", |
| 40 |
} |
| 41 |
}, |
| 42 |
"owner": { |
| 43 |
"data": { |
| 44 |
"id": "4d443580-012d-4954-816f-e0592bd356e1", |
| 45 |
"type": "Identity", |
| 46 |
} |
| 47 |
}, |
| 48 |
}, |
| 49 |
"type": "Tunnel", |
| 50 |
}, |
| 51 |
"meta": {"request_id": "pN0Aact40"}, |
| 52 |
}, |
| 53 |
metadata={ |
| 54 |
"tunnel_id": TUNNEL_ID, |
| 55 |
}, |
| 56 |
), |
| 57 |
) |