| 1 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 2 |
|
| 3 |
from ._common import SUBSCRIPTION_GROUP_ID, SUBSCRIPTION_ID, SUBSCRIPTION_INFO |
| 4 |
|
| 5 |
RESPONSES = ResponseSet( |
| 6 |
metadata={"group_id": SUBSCRIPTION_GROUP_ID, "subscription_id": SUBSCRIPTION_ID}, |
| 7 |
default=RegisteredResponse( |
| 8 |
service="groups", |
| 9 |
path=f"/v2/subscription_info/{SUBSCRIPTION_ID}", |
| 10 |
json={ |
| 11 |
"group_id": SUBSCRIPTION_GROUP_ID, |
| 12 |
"subscription_id": SUBSCRIPTION_ID, |
| 13 |
# this API returns restricted subscription_info |
| 14 |
"subscription_info": { |
| 15 |
k: v |
| 16 |
for k, v in SUBSCRIPTION_INFO.items() |
| 17 |
if k in ("is_high_assurance", "is_baa", "connectors") |
| 18 |
}, |
| 19 |
}, |
| 20 |
), |
| 21 |
) |