Globus Connect Server _testing Method List#

globus_sdk.GCSClient#

globus_sdk.GCSClient has registered responses for the following methods:

create_storage_gateway (case="default")
{
  "DATA_TYPE": "result#1.0.0",
  "http_response_code": 200,
  "detail": "success",
  "message": "Operation successful",
  "code": "success",
  "data": [
    {
      "DATA_TYPE": "storage_gateway#1.0.0",
      "id": "daa09846-eb92-11e9-b89c-9cb6d0d9fd63",
      "display_name": "example gateway 1",
      "connector_id": "145812c8-decc-41f1-83cf-bb2a85a2a70b",
      "high_assurance": false,
      "authentication_assurance_timeout": 15840,
      "authentication_timeout_mins": 15840,
      "allowed_domains": [
        "example.edu"
      ],
      "mapping": "username_without_domain",
      "require_high_assurance": false,
      "restrict_paths": {
        "DATA_TYPE": "path_restrictions#1.0.0",
        "read": [
          "/"
        ]
      },
      "policies": {
        "DATA_TYPE": "posix_storage_gateway#1.0.0",
        "groups_allow": [
          "globus"
        ],
        "groups_deny": [
          "nonglobus"
        ]
      },
      "users_allow": [
        "user1"
      ],
      "users_deny": [
        "user2"
      ]
    }
  ]
}
create_storage_gateway (case="validation_error")
{
  "DATA_TYPE": "result#1.0.0",
  "code": "unprocessable_entity",
  "detail": "",
  "http_response_code": 422,
  "message": "Data Validation Error"
}
create_user_credential (case="default")
{
  "DATA_TYPE": "result#1.0.0",
  "code": "success",
  "data": [
    {
      "DATA_TYPE": "user_credential#1.0.0",
      "connector_id": "145812c8-decc-41f1-83cf-bb2a85a2a70b",
      "display_name": "updated_posix_credential",
      "id": "af43d884-64a1-4414-897a-680c32374439",
      "identity_id": "948847d4-ffcc-4ae0-ba3a-a4c88d480159",
      "invalid": false,
      "policies": {
        "DATA_TYPE": "posix_user_credential_policies#1.0.0"
      },
      "provisioned": false,
      "storage_gateway_id": "82247cc9-3208-4d71-bd7f-1b8798c95e6b",
      "username": "testuser"
    }
  ],
  "detail": "created",
  "has_next_page": false,
  "http_response_code": 201,
  "message": "Created User Credential af43d884-64a1-4414-897a-680c32374439"
}
delete_storage_gateway (case="default")
{
  "DATA_TYPE": "result#1.0.0",
  "http_response_code": 200,
  "detail": "success",
  "message": "Operation successful",
  "code": "success",
  "data": [
    {}
  ]
}
delete_storage_gateway (case="permission_denied_error")
{
  "DATA_TYPE": "result#1.0.0",
  "code": "permission_denied",
  "detail": "",
  "http_response_code": 403,
  "message": null
}
delete_user_credential (case="default")
{
  "DATA_TYPE": "result#1.0.0",
  "code": "success",
  "data": [],
  "detail": "success",
  "has_next_page": false,
  "http_response_code": 200,
  "message": "Deleted User Credential af43d884-64a1-4414-897a-680c32374439"
}
get_collection_list (case="default")
{
  "DATA_TYPE": "result#1.0.0",
  "code": "success",
  "detail": "success",
  "http_response_code": 200,
  "data": [
    {
      "DATA_TYPE": "collection#1.0.0",
      "public": true,
      "id": "fc3d12e6-b977-469b-b532-e6ad2c2430bd",
      "display_name": "Happy Fun Collection Name 1",
      "identity_id": "097cc99f-3d55-4a33-af3f-36cb83e1971c",
      "collection_type": "mapped",
      "storage_gateway_id": "683b895b-c8be-4e7b-a127-20f7ee2b5636",
      "require_high_assurance": false,
      "high_assurance": false,
      "authentication_assurance_timeout": 15840,
      "authentication_timeout_mins": 15840
    },
    {
      "DATA_TYPE": "collection#1.0.0",
      "public": true,
      "id": "720c1320-a3b7-4d9c-bb12-d090c97c5c08",
      "display_name": "Happy Fun Collection Name 2",
      "identity_id": "097cc99f-3d55-4a33-af3f-36cb83e1971c",
      "collection_type": "mapped",
      "storage_gateway_id": "626c5d7b-990c-47fc-ae1e-77139b7814df",
      "require_high_assurance": false,
      "high_assurance": false,
      "authentication_assurance_timeout": 15840,
      "authentication_timeout_mins": 15840
    }
  ]
}
get_collection_list (case="forbidden")
{
  "code": "permission_denied",
  "http_response_code": 403,
  "DATA_TYPE": "result#1.0.0",
  "detail": null,
  "message": "Could not list collections. Insufficient permissions",
  "data": [],
  "has_next_page": false,
  "marker": ""
}
get_endpoint (case="default")
{
  "DATA_TYPE": "result#1.0.0",
  "code": "success",
  "data": [
    {
      "DATA_TYPE": "endpoint#1.2.0",
      "allow_udt": false,
      "contact_email": "user@globus.org",
      "display_name": "Happy Fun Endpoint",
      "gcs_manager_url": "https://abc.xyz.data.globus.org/api",
      "gridftp_control_channel_port": 443,
      "id": "d767615c-ee68-4b74-8b1f-5f9c74b62381",
      "network_use": "normal",
      "organization": "Globus",
      "public": true,
      "subscription_id": null
    }
  ],
  "detail": "success",
  "has_next_page": false,
  "http_response_code": 200
}
get_storage_gateway (case="default")
{
  "DATA_TYPE": "result#1.0.0",
  "http_response_code": 200,
  "detail": "success",
  "message": "Operation successful",
  "code": "success",
  "data": [
    {
      "DATA_TYPE": "storage_gateway#1.0.0",
      "id": "daa09846-eb92-11e9-b89c-9cb6d0d9fd63",
      "display_name": "example gateway 1",
      "connector_id": "145812c8-decc-41f1-83cf-bb2a85a2a70b",
      "high_assurance": false,
      "authentication_assurance_timeout": 15840,
      "authentication_timeout_mins": 15840,
      "allowed_domains": [
        "example.edu"
      ],
      "mapping": "username_without_domain",
      "require_high_assurance": false,
      "restrict_paths": {
        "DATA_TYPE": "path_restrictions#1.0.0",
        "read": [
          "/"
        ]
      },
      "policies": {
        "DATA_TYPE": "posix_storage_gateway#1.0.0",
        "groups_allow": [
          "globus"
        ],
        "groups_deny": [
          "nonglobus"
        ]
      },
      "users_allow": [
        "user1"
      ],
      "users_deny": [
        "user2"
      ]
    }
  ]
}
get_storage_gateway_list (case="default")
{
  "DATA_TYPE": "result#1.0.0",
  "code": "success",
  "detail": "success",
  "http_response_code": 200,
  "data": [
    {
      "DATA_TYPE": "storage_gateway#1.0.0",
      "id": "a0cbde58-0183-11ea-92bd-9cb6d0d9fd63",
      "display_name": "example gateway 1",
      "connector_id": "145812c8-decc-41f1-83cf-bb2a85a2a70b",
      "high_assurance": false,
      "authentication_assurance_timeout": 15840,
      "authentication_timeout_mins": 15840,
      "allowed_domains": [
        "example.edu"
      ],
      "mapping": "username_without_domain",
      "require_high_assurance": false,
      "restrict_paths": {
        "DATA_TYPE": "path_restrictions#1.0.0",
        "read": [
          "/"
        ]
      },
      "policies": {
        "DATA_TYPE": "posix_storage_gateway#1.0.0",
        "groups_allow": [
          "globus"
        ],
        "groups_deny": [
          "nonglobus"
        ]
      },
      "users_allow": [
        "user1"
      ],
      "users_deny": [
        "user2"
      ]
    },
    {
      "DATA_TYPE": "storage_gateway#1.0.0",
      "id": "6840c8ba-eb98-11e9-b89c-9cb6d0d9fd63",
      "display_name": "example gateway 2",
      "connector_id": "145812c8-decc-41f1-83cf-bb2a85a2a70b",
      "high_assurance": false,
      "authentication_assurance_timeout": 15840,
      "authentication_timeout_mins": 15840,
      "allowed_domains": [
        "example.edu"
      ],
      "mapping": "username_without_domain",
      "require_high_assurance": false,
      "policies": {
        "DATA_TYPE": "posix_storage_gateway#1.0.0",
        "groups_allow": [],
        "groups_deny": []
      },
      "users_allow": [],
      "users_deny": []
    }
  ]
}
get_user_credential (case="default")
{
  "DATA_TYPE": "result#1.0.0",
  "code": "success",
  "data": [
    {
      "DATA_TYPE": "user_credential#1.0.0",
      "connector_id": "145812c8-decc-41f1-83cf-bb2a85a2a70b",
      "display_name": "posix_credential",
      "id": "af43d884-64a1-4414-897a-680c32374439",
      "identity_id": "948847d4-ffcc-4ae0-ba3a-a4c88d480159",
      "invalid": false,
      "policies": {
        "DATA_TYPE": "posix_user_credential_policies#1.0.0"
      },
      "provisioned": false,
      "storage_gateway_id": "82247cc9-3208-4d71-bd7f-1b8798c95e6b",
      "username": "testuser"
    }
  ],
  "detail": "success",
  "has_next_page": false,
  "http_response_code": 200
}
get_user_credential_list (case="default")
{
  "DATA_TYPE": "result#1.0.0",
  "code": "success",
  "data": [
    {
      "DATA_TYPE": "user_credential#1.0.0",
      "connector_id": "145812c8-decc-41f1-83cf-bb2a85a2a70b",
      "display_name": "posix_credential",
      "id": "af43d884-64a1-4414-897a-680c32374439",
      "identity_id": "948847d4-ffcc-4ae0-ba3a-a4c88d480159",
      "invalid": false,
      "policies": {
        "DATA_TYPE": "posix_user_credential_policies#1.0.0"
      },
      "provisioned": false,
      "storage_gateway_id": "82247cc9-3208-4d71-bd7f-1b8798c95e6b",
      "username": "testuser"
    },
    {
      "DATA_TYPE": "user_credential#1.0.0",
      "connector_id": "7643e831-5f6c-4b47-a07f-8ee90f401d23",
      "display_name": "s3_credential",
      "id": "c96b8f70-1448-46db-89af-292623c93ee4",
      "identity_id": "948847d4-ffcc-4ae0-ba3a-a4c88d480159",
      "invalid": false,
      "policies": {
        "DATA_TYPE": "s3_user_credential_policies#1.0.0",
        "s3_key_id": "key_id",
        "s3_secret_key": "key_secret"
      },
      "provisioned": true,
      "storage_gateway_id": "99aab7ac-8fde-40e2-b6db-44de8e59597a",
      "username": "testuser"
    }
  ],
  "detail": "success",
  "has_next_page": false,
  "http_response_code": 200
}
update_endpoint (case="default")
{
  "DATA_TYPE": "result#1.0.0",
  "code": "success",
  "data": [],
  "detail": "success",
  "has_next_page": false,
  "http_response_code": 200,
  "message": "Updated endpoint eb672ce5-b9b6-4ec3-8c79-122ff8a76f75"
}
update_endpoint (case="include_endpoint")
{
  "DATA_TYPE": "result#1.0.0",
  "code": "success",
  "data": [
    {
      "DATA_TYPE": "endpoint#1.2.0",
      "allow_udt": false,
      "contact_email": "user@globus.org",
      "display_name": "Happy Fun Endpoint",
      "gcs_manager_url": "https://abc.xyz.data.globus.org/api",
      "gridftp_control_channel_port": 443,
      "id": "eb672ce5-b9b6-4ec3-8c79-122ff8a76f75",
      "network_use": "normal",
      "organization": "Globus",
      "public": true,
      "subscription_id": null
    }
  ],
  "detail": "success",
  "has_next_page": false,
  "http_response_code": 200,
  "message": "Updated endpoint eb672ce5-b9b6-4ec3-8c79-122ff8a76f75"
}
update_storage_gateway (case="default")
{
  "DATA_TYPE": "result#1.0.0",
  "http_response_code": 200,
  "detail": "success",
  "message": "Operation successful",
  "code": "success",
  "data": [
    {
      "DATA_TYPE": "storage_gateway#1.0.0",
      "id": "daa09846-eb92-11e9-b89c-9cb6d0d9fd63",
      "display_name": "example gateway 1",
      "connector_id": "145812c8-decc-41f1-83cf-bb2a85a2a70b",
      "require_high_assurance": false,
      "high_assurance": false,
      "authentication_assurance_timeout": 15840,
      "authentication_timeout_mins": 15840,
      "allowed_domains": [
        "example.edu"
      ],
      "mapping": "username_without_domain",
      "restrict_paths": {
        "DATA_TYPE": "path_restrictions#1.0.0",
        "read": [
          "/"
        ]
      },
      "policies": {
        "DATA_TYPE": "posix_storage_gateway#1.0.0",
        "groups_allow": [
          "globus"
        ],
        "groups_deny": [
          "nonglobus"
        ]
      },
      "users_allow": [
        "user1"
      ],
      "users_deny": [
        "user2"
      ]
    }
  ]
}
update_user_credential (case="default")
{
  "DATA_TYPE": "result#1.0.0",
  "code": "success",
  "data": [
    {
      "DATA_TYPE": "user_credential#1.0.0",
      "connector_id": "145812c8-decc-41f1-83cf-bb2a85a2a70b",
      "display_name": "updated_posix_credential",
      "id": "af43d884-64a1-4414-897a-680c32374439",
      "identity_id": "948847d4-ffcc-4ae0-ba3a-a4c88d480159",
      "invalid": false,
      "policies": {
        "DATA_TYPE": "posix_user_credential_policies#1.0.0"
      },
      "provisioned": false,
      "storage_gateway_id": "82247cc9-3208-4d71-bd7f-1b8798c95e6b",
      "username": "testuser"
    }
  ],
  "detail": "success",
  "has_next_page": false,
  "http_response_code": 200,
  "message": "Updated User Credential af43d884-64a1-4414-897a-680c32374439"
}