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": "f145195b-b3e3-409c-a911-b008dc4252c7",
      "display_name": "Happy Fun Collection Name 1",
      "identity_id": "c9a77655-5b13-45a7-922e-06ae4707dcb1",
      "collection_type": "mapped",
      "storage_gateway_id": "d29c41ff-0d4b-40b7-9957-bbb0ebf0e058",
      "require_high_assurance": false,
      "high_assurance": false,
      "authentication_assurance_timeout": 15840,
      "authentication_timeout_mins": 15840
    },
    {
      "DATA_TYPE": "collection#1.0.0",
      "public": true,
      "id": "9f6c68f5-a4ca-4e5a-9690-748a6a3ef972",
      "display_name": "Happy Fun Collection Name 2",
      "identity_id": "c9a77655-5b13-45a7-922e-06ae4707dcb1",
      "collection_type": "mapped",
      "storage_gateway_id": "083619d5-e1aa-4f92-b6bc-a60793315d7d",
      "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": "d4879dfd-4765-4712-97ef-b72feab01dc3",
      "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 afd0cb5b-9a39-438e-9e10-84c54823efbc"
}
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": "afd0cb5b-9a39-438e-9e10-84c54823efbc",
      "network_use": "normal",
      "organization": "Globus",
      "public": true,
      "subscription_id": null
    }
  ],
  "detail": "success",
  "has_next_page": false,
  "http_response_code": 200,
  "message": "Updated endpoint afd0cb5b-9a39-438e-9e10-84c54823efbc"
}
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"
}