Globus Transfer _testing Method List#

globus_sdk.TransferClient#

globus_sdk.TransferClient has registered responses for the following methods:

create_endpoint (case="default")
{
  "DATA_TYPE": "endpoint_create_result",
  "display_name": "my cool endpoint",
  "code": "Created",
  "globus_connect_setup_key": null,
  "id": "00000000-0000-0000-0005-4925541e7725",
  "message": "Endpoint created successfully",
  "request_id": "d4MqMwFJ9",
  "resource": "/endpoint"
}
endpoint_manager_task_list (case="default")
{
  "DATA": [
    {
      "DATA_TYPE": "task",
      "bytes_checksummed": 0,
      "bytes_transferred": 14,
      "canceled_by_admin": null,
      "canceled_by_admin_message": null,
      "command": "API 0.10",
      "completion_time": "2024-02-06T06:59:02+00:00",
      "deadline": "2024-02-07T06:58:59+00:00",
      "delete_destination_extra": false,
      "destination_base_path": null,
      "destination_endpoint": "pliny_the_elder#7edb6c7f-9f44-4657-809d-bf888d395ca6",
      "destination_endpoint_display_name": "Ercolano",
      "destination_endpoint_id": "7edb6c7f-9f44-4657-809d-bf888d395ca6",
      "destination_host_endpoint": null,
      "destination_host_endpoint_display_name": null,
      "destination_host_endpoint_id": null,
      "destination_host_path": null,
      "destination_local_user": "pliny",
      "destination_local_user_status": "OK",
      "destination_mapped_collection_display_name": null,
      "destination_mapped_collection_id": null,
      "directories": 2,
      "effective_bytes_per_second": 5,
      "encrypt_data": false,
      "fail_on_quota_errors": false,
      "fatal_error": null,
      "faults": 0,
      "files": 3,
      "files_skipped": 0,
      "files_transferred": 3,
      "filter_rules": null,
      "history_deleted": false,
      "is_ok": null,
      "is_paused": false,
      "label": null,
      "nice_status": null,
      "nice_status_details": null,
      "nice_status_expires_in": null,
      "nice_status_short_description": null,
      "owner_id": "de460858-4af1-4089-af01-a102198e67c6",
      "owner_string": "pliny-the-elder@globus.org",
      "preserve_timestamp": false,
      "recursive_symlinks": "ignore",
      "request_time": "2024-02-06T06:58:59+00:00",
      "skip_source_errors": false,
      "source_base_path": null,
      "source_endpoint": "pliny#00000000-0000-0000-0005-4925541e7725",
      "source_endpoint_display_name": "Pompeii",
      "source_endpoint_id": "00000000-0000-0000-0005-4925541e7725",
      "source_host_endpoint": null,
      "source_host_endpoint_display_name": null,
      "source_host_endpoint_id": null,
      "source_host_path": null,
      "source_local_user": null,
      "source_local_user_status": "NO_PERMISSION",
      "source_mapped_collection_display_name": null,
      "source_mapped_collection_id": null,
      "status": "SUCCEEDED",
      "subtasks_canceled": 0,
      "subtasks_expired": 0,
      "subtasks_failed": 0,
      "subtasks_pending": 0,
      "subtasks_retrying": 0,
      "subtasks_skipped_errors": 0,
      "subtasks_succeeded": 6,
      "subtasks_total": 6,
      "symlinks": 0,
      "sync_level": null,
      "task_id": "00000000-0000-0000-0000-0000699934d5",
      "type": "TRANSFER",
      "username": "pliny",
      "verify_checksum": true
    }
  ],
  "DATA_TYPE": "task_list",
  "has_next_page": false,
  "last_key": "complete,2024-02-06T06:59:02.291996"
}
endpoint_manager_task_successful_transfers (case="default")
{
  "DATA_TYPE": "successful_transfers",
  "marker": 0,
  "next_marker": 93979,
  "DATA": [
    {
      "destination_path": "/path/to/destination",
      "source_path": "/path/to/source",
      "DATA_TYPE": "successful_transfer"
    }
  ]
}
get_endpoint (case="default")
{
  "DATA_TYPE": "endpoint",
  "id": "00000000-0000-0000-0005-4925541e7725",
  "display_name": "myserver",
  "organization": "My Org",
  "username": "auser",
  "description": "Example gridftp endpoint.",
  "entity_type": "GCSv4_host",
  "public": false,
  "french_english_bilingual": false,
  "is_globus_connect": false,
  "globus_connect_setup_key": null,
  "gcp_connected": null,
  "gcp_paused": null,
  "s3_url": null,
  "s3_owner_activated": false,
  "host_endpoint_id": null,
  "host_path": null,
  "disable_verify": false,
  "disable_anonymous_writes": false,
  "force_verify": false,
  "force_encryption": false,
  "mfa_required": false,
  "myproxy_server": null,
  "myproxy_dn": null,
  "non_functional": false,
  "non_functional_endpoint_display_name": null,
  "non_functional_endpoint_id": null,
  "oauth_server": null,
  "default_directory": null,
  "activated": false,
  "expires_in": 0,
  "expire_time": "2000-01-02 03:45:06+00:00",
  "shareable": true,
  "acl_available": false,
  "acl_editable": false,
  "in_use": false,
  "DATA": [
    {
      "DATA_TYPE": "server",
      "hostname": "gridftp.example.org",
      "uri": "gsiftp://gridftp.example.org:2811",
      "port": 2811,
      "scheme": "gsiftp",
      "id": 985,
      "subject": "/O=Grid/OU=Example/CN=host/gridftp.example.org"
    }
  ]
}
get_submission_id (case="default")
{
  "value": "00000000-0000-0000-34af-1252da510f05"
}
operation_mkdir (case="default")
{
  "DATA_TYPE": "mkdir_result",
  "code": "DirectoryCreated",
  "message": "The directory was created successfully",
  "request_id": "ShbIUzrWT",
  "resource": "/operation/endpoint/00000000-0000-0000-0005-4925541e7725/mkdir"
}
operation_rename (case="default")
{
  "DATA_TYPE": "result",
  "code": "FileRenamed",
  "message": "File or directory renamed successfully",
  "request_id": "ShbIUzrWT",
  "resource": "/operation/endpoint/00000000-0000-0000-0005-4925541e7725/rename"
}
operation_stat (case="default")
{
  "DATA_TYPE": "file",
  "group": "tutorial",
  "last_modified": "2023-12-18 16:52:50+00:00",
  "link_group": null,
  "link_last_modified": null,
  "link_size": null,
  "link_target": null,
  "link_user": null,
  "name": "file1.txt",
  "permissions": "0644",
  "size": 4,
  "type": "file",
  "user": "tutorial"
}
submit_delete (case="default")
{
  "DATA_TYPE": "delete_result",
  "code": "Accepted",
  "message": "The delete has been accepted and a task has been created and queued for execution",
  "request_id": "NS2QXhLZ7",
  "resource": "/delete",
  "submission_id": "00000000-0000-0000-34af-1252da510f05",
  "task_id": "00000000-0000-0000-0000-0000699934d5",
  "task_link": {
    "DATA_TYPE": "link",
    "href": "task/00000000-0000-0000-0000-0000699934d5?format=json",
    "rel": "related",
    "resource": "task",
    "title": "related task"
  }
}
submit_transfer (case="default")
{
  "DATA_TYPE": "transfer_result",
  "code": "Accepted",
  "message": "The transfer has been accepted and a task has been created and queued for execution",
  "request_id": "7HgMVYazI",
  "resource": "/transfer",
  "submission_id": "00000000-0000-0000-34af-1252da510f05",
  "task_id": "00000000-0000-0000-0000-0000699934d5",
  "task_link": {
    "DATA_TYPE": "link",
    "href": "task/00000000-0000-0000-0000-0000699934d5?format=json",
    "rel": "related",
    "resource": "task",
    "title": "related task"
  }
}
submit_transfer (case="failure")
{
  "code": "ClientError.BadRequest.NoTransferItems",
  "message": "A transfer requires at least one item",
  "request_id": "oUAA6Sq2P",
  "resource": "/transfer"
}
update_endpoint (case="default")
{
  "DATA_TYPE": "result",
  "code": "Updated",
  "message": "Endpoint updated successfully",
  "request_id": "6aZjzldyM",
  "resource": "/endpoint/00000000-0000-0000-0005-4925541e7725"
}