| 1 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 2 |
|
| 3 |
_DATA_ACCESS = ( |
| 4 |
"https://auth.globus.org/scopes/542a86fc-1766-450d-841f-065488a2ec01/data_access" |
| 5 |
) |
| 6 |
|
| 7 |
RESPONSES = ResponseSet( |
| 8 |
default=RegisteredResponse( |
| 9 |
service="auth", |
| 10 |
path="/v2/api/identities/8ca28797-3541-4a5d-a264-05b00f91e608/consents", |
| 11 |
json={ |
| 12 |
"consents": [ |
| 13 |
{ |
| 14 |
"created": "2022-09-21T17:10:14.270581+00:00", |
| 15 |
"id": 142632, |
| 16 |
"status": "approved", |
| 17 |
"updated": "2022-09-21T17:10:14.270581+00:00", |
| 18 |
"allows_refresh": True, |
| 19 |
"dependency_path": [142632], |
| 20 |
"scope_name": "urn:globus:auth:scope:transfer.api.globus.org:all", |
| 21 |
"atomically_revocable": False, |
| 22 |
"effective_identity": "8ca28797-3541-4a5d-a264-05b00f91e608", |
| 23 |
"auto_approved": False, |
| 24 |
"last_used": "2024-03-18T17:34:04.719126+00:00", |
| 25 |
"scope": "89ecabba-4acf-4e2e-a98d-ce592ccc2818", |
| 26 |
"client": "065db752-2f43-4fe1-a633-2ee68c9da889", |
| 27 |
}, |
| 28 |
{ |
| 29 |
"created": "2024-03-18T17:32:51.496893+00:00", |
| 30 |
"id": 433892, |
| 31 |
"status": "approved", |
| 32 |
"updated": "2024-03-18T17:32:51.496893+00:00", |
| 33 |
"allows_refresh": True, |
| 34 |
"dependency_path": [142632, 433892], |
| 35 |
"scope_name": _DATA_ACCESS, |
| 36 |
"atomically_revocable": True, |
| 37 |
"effective_identity": "8ca28797-3541-4a5d-a264-05b00f91e608", |
| 38 |
"auto_approved": False, |
| 39 |
"last_used": "2024-03-18T17:33:05.178254+00:00", |
| 40 |
"scope": "fe334c19-4fe6-4d03-ac73-8992beb231b6", |
| 41 |
"client": "2fbdda78-a599-4cb5-ac3d-1fbcfbc6a754", |
| 42 |
}, |
| 43 |
] |
| 44 |
}, |
| 45 |
metadata={ |
| 46 |
"identity_id": "8ca28797-3541-4a5d-a264-05b00f91e608", |
| 47 |
}, |
| 48 |
), |
| 49 |
) |