| 1 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 2 |
|
| 3 |
from ._common import ENDPOINT_ID |
| 4 |
|
| 5 |
ENDPOINT_DOC = { |
| 6 |
"DATA_TYPE": "endpoint", |
| 7 |
"id": ENDPOINT_ID, |
| 8 |
"display_name": "myserver", |
| 9 |
"organization": "My Org", |
| 10 |
"username": "auser", |
| 11 |
"description": "Example gridftp endpoint.", |
| 12 |
"entity_type": "GCSv4_host", |
| 13 |
"public": False, |
| 14 |
"french_english_bilingual": False, |
| 15 |
"is_globus_connect": False, |
| 16 |
"globus_connect_setup_key": None, |
| 17 |
"gcp_connected": None, |
| 18 |
"gcp_paused": None, |
| 19 |
"s3_url": None, |
| 20 |
"s3_owner_activated": False, |
| 21 |
"host_endpoint_id": None, |
| 22 |
"host_path": None, |
| 23 |
"disable_verify": False, |
| 24 |
"disable_anonymous_writes": False, |
| 25 |
"force_verify": False, |
| 26 |
"force_encryption": False, |
| 27 |
"mfa_required": False, |
| 28 |
"myproxy_server": None, |
| 29 |
"myproxy_dn": None, |
| 30 |
"non_functional": False, |
| 31 |
"non_functional_endpoint_display_name": None, |
| 32 |
"non_functional_endpoint_id": None, |
| 33 |
"oauth_server": None, |
| 34 |
"default_directory": None, |
| 35 |
"activated": False, |
| 36 |
"expires_in": 0, |
| 37 |
"expire_time": "2000-01-02 03:45:06+00:00", |
| 38 |
"shareable": True, |
| 39 |
"acl_available": False, |
| 40 |
"acl_editable": False, |
| 41 |
"in_use": False, |
| 42 |
"DATA": [ |
| 43 |
{ |
| 44 |
"DATA_TYPE": "server", |
| 45 |
"hostname": "gridftp.example.org", |
| 46 |
"uri": "gsiftp://gridftp.example.org:2811", |
| 47 |
"port": 2811, |
| 48 |
"scheme": "gsiftp", |
| 49 |
"id": 985, |
| 50 |
"subject": "/O=Grid/OU=Example/CN=host/gridftp.example.org", |
| 51 |
} |
| 52 |
], |
| 53 |
} |
| 54 |
|
| 55 |
|
| 56 |
RESPONSES = ResponseSet( |
| 57 |
metadata={"endpoint_id": ENDPOINT_ID}, |
| 58 |
default=RegisteredResponse( |
| 59 |
service="transfer", |
| 60 |
path=f"/v0.10/endpoint/{ENDPOINT_ID}", |
| 61 |
json=ENDPOINT_DOC, |
| 62 |
), |
| 63 |
) |