| 1 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 2 |
|
| 3 |
TUNNEL_LIST_DOC = { |
| 4 |
"data": [ |
| 5 |
{ |
| 6 |
"attributes": { |
| 7 |
"created_time": "2025-12-12T21:11:50.525278", |
| 8 |
"initiator_ip_address": None, |
| 9 |
"initiator_port": None, |
| 10 |
"label": "Buzz Tester", |
| 11 |
"lifetime_mins": 360, |
| 12 |
"listener_ip_address": None, |
| 13 |
"listener_port": None, |
| 14 |
"restartable": False, |
| 15 |
"state": "AWAITING_LISTENER", |
| 16 |
"status": "The tunnel is waiting for listening contact detail setup.", |
| 17 |
"submission_id": "292b0054-7084-46eb-83d6-7a6821b1f77e", |
| 18 |
}, |
| 19 |
"id": "1c1be52d-2d4d-4200-b4ad-d75d43eb0d9c", |
| 20 |
"relationships": { |
| 21 |
"initiator": { |
| 22 |
"data": { |
| 23 |
"id": "80583f05-75f3-4825-b8a5-6c3edf0bbc5c", |
| 24 |
"type": "StreamAccessPoint", |
| 25 |
} |
| 26 |
}, |
| 27 |
"listener": { |
| 28 |
"data": { |
| 29 |
"id": "dd5fa993-749f-48fb-86cf-f07ad5797d7e", |
| 30 |
"type": "StreamAccessPoint", |
| 31 |
} |
| 32 |
}, |
| 33 |
"owner": { |
| 34 |
"data": { |
| 35 |
"id": "4d443580-012d-4954-816f-e0592bd356e1", |
| 36 |
"type": "Identity", |
| 37 |
} |
| 38 |
}, |
| 39 |
}, |
| 40 |
"type": "Tunnel", |
| 41 |
}, |
| 42 |
{ |
| 43 |
"attributes": { |
| 44 |
"created_time": "2025-12-12T21:22:11.018233", |
| 45 |
"initiator_ip_address": None, |
| 46 |
"initiator_port": None, |
| 47 |
"label": "part 2", |
| 48 |
"lifetime_mins": 360, |
| 49 |
"listener_ip_address": None, |
| 50 |
"listener_port": None, |
| 51 |
"restartable": False, |
| 52 |
"state": "AWAITING_LISTENER", |
| 53 |
"status": "The tunnel is waiting for listening contact detail setup.", |
| 54 |
"submission_id": "fb3b1220-1d5f-4dcf-92f5-e7056a514319", |
| 55 |
}, |
| 56 |
"id": "bf1b0d16-7d93-44eb-8773-9066a750c13e", |
| 57 |
"relationships": { |
| 58 |
"initiator": { |
| 59 |
"data": { |
| 60 |
"id": "34c6e671-c011-4bf8-bc30-5ccebada8f3b", |
| 61 |
"type": "StreamAccessPoint", |
| 62 |
} |
| 63 |
}, |
| 64 |
"listener": { |
| 65 |
"data": { |
| 66 |
"id": "dd5fa993-749f-48fb-86cf-f07ad5797d7e", |
| 67 |
"type": "StreamAccessPoint", |
| 68 |
} |
| 69 |
}, |
| 70 |
"owner": { |
| 71 |
"data": { |
| 72 |
"id": "4d443580-012d-4954-816f-e0592bd356e1", |
| 73 |
"type": "Identity", |
| 74 |
} |
| 75 |
}, |
| 76 |
}, |
| 77 |
"type": "Tunnel", |
| 78 |
}, |
| 79 |
], |
| 80 |
"links": None, |
| 81 |
"meta": {"request_id": "fAAfpnino"}, |
| 82 |
} |
| 83 |
|
| 84 |
|
| 85 |
RESPONSES = ResponseSet( |
| 86 |
metadata={}, |
| 87 |
default=RegisteredResponse( |
| 88 |
service="transfer", |
| 89 |
path="/v2/tunnels", |
| 90 |
json=TUNNEL_LIST_DOC, |
| 91 |
method="GET", |
| 92 |
), |
| 93 |
) |