| 1 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 2 |
|
| 3 |
INDEX_ID = "60d1160b-f016-40b0-8545-99619865873d" |
| 4 |
IDENTITY_ID = "46bd0f56-e24f-11e5-a510-131bef46955c" |
| 5 |
ROLE_ID = "MDQ1MzAy" |
| 6 |
|
| 7 |
|
| 8 |
RESPONSES = ResponseSet( |
| 9 |
metadata={"index_id": INDEX_ID, "identity_id": IDENTITY_ID, "role_id": ROLE_ID}, |
| 10 |
default=RegisteredResponse( |
| 11 |
service="search", |
| 12 |
path=f"/v1/index/{INDEX_ID}/role", |
| 13 |
method="POST", |
| 14 |
json={ |
| 15 |
"creation_date": "2022-01-26 21:53:06", |
| 16 |
"id": ROLE_ID, |
| 17 |
"index_id": INDEX_ID, |
| 18 |
"principal": f"urn:globus:auth:identity:{IDENTITY_ID}", |
| 19 |
"principal_type": "identity", |
| 20 |
"role_name": "writer", |
| 21 |
}, |
| 22 |
metadata={ |
| 23 |
"index_id": INDEX_ID, |
| 24 |
"identity_id": IDENTITY_ID, |
| 25 |
"role_id": ROLE_ID, |
| 26 |
"role_name": "writer", |
| 27 |
}, |
| 28 |
), |
| 29 |
) |