| 1 |
import uuid |
| 2 |
|
| 3 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 4 |
|
| 5 |
CREDENTIAL = { |
| 6 |
"name": "foo", |
| 7 |
"id": str(uuid.uuid1()), |
| 8 |
"created": "2023-10-21T22:46:15.845937+00:00", |
| 9 |
"client": "7dee4432-0297-4989-ad23-a2b672a52b12", |
| 10 |
"secret": None, |
| 11 |
} |
| 12 |
|
| 13 |
RESPONSES = ResponseSet( |
| 14 |
default=RegisteredResponse( |
| 15 |
service="auth", |
| 16 |
path=f"/v2/api/clients/{CREDENTIAL['client']}/credentials", |
| 17 |
json={"credentials": [CREDENTIAL]}, |
| 18 |
metadata={ |
| 19 |
"credential_id": CREDENTIAL["id"], |
| 20 |
"client_id": CREDENTIAL["client"], |
| 21 |
}, |
| 22 |
), |
| 23 |
) |