| 1 |
import uuid |
| 2 |
|
| 3 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 4 |
|
| 5 |
CLIENT = { |
| 6 |
"required_idp": None, |
| 7 |
"name": "Great client of FOO", |
| 8 |
"redirect_uris": [], |
| 9 |
"links": {"privacy_policy": None, "terms_and_conditions": None}, |
| 10 |
"scopes": [], |
| 11 |
"grant_types": ["authorization_code", "client_credentials", "refresh_token"], |
| 12 |
"id": str(uuid.uuid1()), |
| 13 |
"prompt_for_named_grant": False, |
| 14 |
"fqdns": ["globus.org"], |
| 15 |
"project": "da84e531-1afb-43cb-8c87-135ab580516a", |
| 16 |
"client_type": "client_identity", |
| 17 |
"visibility": "private", |
| 18 |
"parent_client": None, |
| 19 |
"userinfo_from_effective_identity": True, |
| 20 |
"preselect_idp": None, |
| 21 |
"public_client": False, |
| 22 |
} |
| 23 |
|
| 24 |
RESPONSES = ResponseSet( |
| 25 |
default=RegisteredResponse( |
| 26 |
service="auth", |
| 27 |
method="DELETE", |
| 28 |
path=f"/v2/api/clients/{CLIENT['id']}", |
| 29 |
json={"client": CLIENT}, |
| 30 |
metadata={ |
| 31 |
"client_id": CLIENT["id"], |
| 32 |
}, |
| 33 |
), |
| 34 |
) |