| 1 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 2 |
|
| 3 |
CREDENTIAL_ID = "af43d884-64a1-4414-897a-680c32374439" |
| 4 |
|
| 5 |
RESPONSES = ResponseSet( |
| 6 |
metadata={"id": CREDENTIAL_ID}, |
| 7 |
default=RegisteredResponse( |
| 8 |
service="gcs", |
| 9 |
path=f"/user_credentials/{CREDENTIAL_ID}", |
| 10 |
method="GET", |
| 11 |
json={ |
| 12 |
"DATA_TYPE": "result#1.0.0", |
| 13 |
"code": "success", |
| 14 |
"data": [ |
| 15 |
{ |
| 16 |
"DATA_TYPE": "user_credential#1.0.0", |
| 17 |
"connector_id": "145812c8-decc-41f1-83cf-bb2a85a2a70b", |
| 18 |
"display_name": "posix_credential", |
| 19 |
"id": CREDENTIAL_ID, |
| 20 |
"identity_id": "948847d4-ffcc-4ae0-ba3a-a4c88d480159", |
| 21 |
"invalid": False, |
| 22 |
"policies": {"DATA_TYPE": "posix_user_credential_policies#1.0.0"}, |
| 23 |
"provisioned": False, |
| 24 |
"storage_gateway_id": "82247cc9-3208-4d71-bd7f-1b8798c95e6b", |
| 25 |
"username": "testuser", |
| 26 |
}, |
| 27 |
], |
| 28 |
"detail": "success", |
| 29 |
"has_next_page": False, |
| 30 |
"http_response_code": 200, |
| 31 |
}, |
| 32 |
), |
| 33 |
) |