| 1 |
import uuid |
| 2 |
|
| 3 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 4 |
|
| 5 |
from ._common import ENDPOINT_ID as SRC_ENDPOINT_ID |
| 6 |
from ._common import TASK_ID |
| 7 |
|
| 8 |
DEST_ENDPOINT_ID = str(uuid.uuid4()) |
| 9 |
OWNER_ID = str(uuid.uuid4()) |
| 10 |
|
| 11 |
|
| 12 |
RESPONSES = ResponseSet( |
| 13 |
default=RegisteredResponse( |
| 14 |
service="transfer", |
| 15 |
method="GET", |
| 16 |
path="/v0.10/endpoint_manager/task_list", |
| 17 |
metadata={ |
| 18 |
"task_id": TASK_ID, |
| 19 |
"source": SRC_ENDPOINT_ID, |
| 20 |
"destination": DEST_ENDPOINT_ID, |
| 21 |
"owner_id": OWNER_ID, |
| 22 |
}, |
| 23 |
json={ |
| 24 |
"DATA": [ |
| 25 |
{ |
| 26 |
"DATA_TYPE": "task", |
| 27 |
"bytes_checksummed": 0, |
| 28 |
"bytes_transferred": 14, |
| 29 |
"canceled_by_admin": None, |
| 30 |
"canceled_by_admin_message": None, |
| 31 |
"command": "API 0.10", |
| 32 |
"completion_time": "2024-02-06T06:59:02+00:00", |
| 33 |
"deadline": "2024-02-07T06:58:59+00:00", |
| 34 |
"delete_destination_extra": False, |
| 35 |
"destination_base_path": None, |
| 36 |
"destination_endpoint": f"pliny_the_elder#{DEST_ENDPOINT_ID}", |
| 37 |
"destination_endpoint_display_name": "Ercolano", |
| 38 |
"destination_endpoint_id": DEST_ENDPOINT_ID, |
| 39 |
"destination_host_endpoint": None, |
| 40 |
"destination_host_endpoint_display_name": None, |
| 41 |
"destination_host_endpoint_id": None, |
| 42 |
"destination_host_path": None, |
| 43 |
"destination_local_user": "pliny", |
| 44 |
"destination_local_user_status": "OK", |
| 45 |
"destination_mapped_collection_display_name": None, |
| 46 |
"destination_mapped_collection_id": None, |
| 47 |
"directories": 2, |
| 48 |
"effective_bytes_per_second": 5, |
| 49 |
"encrypt_data": False, |
| 50 |
"fail_on_quota_errors": False, |
| 51 |
"fatal_error": None, |
| 52 |
"faults": 0, |
| 53 |
"files": 3, |
| 54 |
"files_skipped": 0, |
| 55 |
"files_transferred": 3, |
| 56 |
"filter_rules": None, |
| 57 |
"history_deleted": False, |
| 58 |
"is_ok": None, |
| 59 |
"is_paused": False, |
| 60 |
"label": None, |
| 61 |
"nice_status": None, |
| 62 |
"nice_status_details": None, |
| 63 |
"nice_status_expires_in": None, |
| 64 |
"nice_status_short_description": None, |
| 65 |
"owner_id": OWNER_ID, |
| 66 |
"owner_string": "[email protected]", |
| 67 |
"preserve_timestamp": False, |
| 68 |
"recursive_symlinks": "ignore", |
| 69 |
"request_time": "2024-02-06T06:58:59+00:00", |
| 70 |
"skip_source_errors": False, |
| 71 |
"source_base_path": None, |
| 72 |
"source_endpoint": f"pliny#{SRC_ENDPOINT_ID}", |
| 73 |
"source_endpoint_display_name": "Pompeii", |
| 74 |
"source_endpoint_id": SRC_ENDPOINT_ID, |
| 75 |
"source_host_endpoint": None, |
| 76 |
"source_host_endpoint_display_name": None, |
| 77 |
"source_host_endpoint_id": None, |
| 78 |
"source_host_path": None, |
| 79 |
"source_local_user": None, |
| 80 |
"source_local_user_status": "NO_PERMISSION", |
| 81 |
"source_mapped_collection_display_name": None, |
| 82 |
"source_mapped_collection_id": None, |
| 83 |
"status": "SUCCEEDED", |
| 84 |
"subtasks_canceled": 0, |
| 85 |
"subtasks_expired": 0, |
| 86 |
"subtasks_failed": 0, |
| 87 |
"subtasks_pending": 0, |
| 88 |
"subtasks_retrying": 0, |
| 89 |
"subtasks_skipped_errors": 0, |
| 90 |
"subtasks_succeeded": 6, |
| 91 |
"subtasks_total": 6, |
| 92 |
"symlinks": 0, |
| 93 |
"sync_level": None, |
| 94 |
"task_id": TASK_ID, |
| 95 |
"type": "TRANSFER", |
| 96 |
"username": "pliny", |
| 97 |
"verify_checksum": True, |
| 98 |
} |
| 99 |
], |
| 100 |
"DATA_TYPE": "task_list", |
| 101 |
"has_next_page": False, |
| 102 |
"last_key": "complete,2024-02-06T06:59:02.291996", |
| 103 |
}, |
| 104 |
), |
| 105 |
) |