| 1 |
import uuid |
| 2 |
|
| 3 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 4 |
|
| 5 |
project_id = str(uuid.uuid1()) |
| 6 |
star_lord = { |
| 7 |
"identity_provider": str(uuid.uuid1()), |
| 8 |
"identity_type": "login", |
| 9 |
"organization": "Guardians of the Galaxy", |
| 10 |
"status": "used", |
| 11 |
"id": str(uuid.uuid1()), |
| 12 |
"name": "Star Lord", |
| 13 |
"username": "[email protected]", |
| 14 |
"email": "[email protected]", |
| 15 |
} |
| 16 |
|
| 17 |
RESPONSES = ResponseSet( |
| 18 |
default=RegisteredResponse( |
| 19 |
service="auth", |
| 20 |
path=f"/v2/api/projects/{project_id}", |
| 21 |
method="DELETE", |
| 22 |
json={ |
| 23 |
"project": { |
| 24 |
"contact_email": "[email protected]", |
| 25 |
"id": project_id, |
| 26 |
"admins": { |
| 27 |
"identities": [star_lord], |
| 28 |
"groups": [], |
| 29 |
}, |
| 30 |
"project_name": "Guardians of the Galaxy", |
| 31 |
"admin_ids": [star_lord["id"]], |
| 32 |
"admin_group_ids": None, |
| 33 |
"display_name": "Guardians of the Galaxy", |
| 34 |
} |
| 35 |
}, |
| 36 |
metadata={ |
| 37 |
"id": project_id, |
| 38 |
"admin_id": star_lord["id"], |
| 39 |
}, |
| 40 |
), |
| 41 |
) |