| 1 |
import uuid |
| 2 |
|
| 3 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 4 |
|
| 5 |
POLICY = { |
| 6 |
"high_assurance": False, |
| 7 |
"domain_constraints_include": ["greenlight.org"], |
| 8 |
"display_name": "GreenLight domain Only Policy", |
| 9 |
"description": "Only allow access from @greenlight.org", |
| 10 |
"id": str(uuid.uuid1()), |
| 11 |
"domain_constraints_exclude": None, |
| 12 |
"project_id": "da84e531-1afb-43cb-8c87-135ab580516a", |
| 13 |
"authentication_assurance_timeout": 35, |
| 14 |
"required_mfa": False, |
| 15 |
} |
| 16 |
|
| 17 |
RESPONSES = ResponseSet( |
| 18 |
default=RegisteredResponse( |
| 19 |
service="auth", |
| 20 |
method="DELETE", |
| 21 |
path=f"/v2/api/policies/{POLICY['id']}", |
| 22 |
json={"policy": POLICY}, |
| 23 |
metadata={ |
| 24 |
"policy_id": POLICY["id"], |
| 25 |
}, |
| 26 |
) |
| 27 |
) |