| 1 |
import uuid |
| 2 |
|
| 3 |
from globus_sdk.testing.models import RegisteredResponse, ResponseSet |
| 4 |
|
| 5 |
BOOKMARK_ID = str(uuid.uuid4()) |
| 6 |
|
| 7 |
_collection_id = str(uuid.uuid4()) |
| 8 |
_name = "public datasets" |
| 9 |
_path = "/data_repository/public" |
| 10 |
|
| 11 |
|
| 12 |
RESPONSES = ResponseSet( |
| 13 |
default=RegisteredResponse( |
| 14 |
service="transfer", |
| 15 |
method="GET", |
| 16 |
path=f"/v2/bookmarks/{BOOKMARK_ID}", |
| 17 |
json={ |
| 18 |
"meta": {"request_id": "HKsv2T65H"}, |
| 19 |
"data": { |
| 20 |
"type": "Bookmark", |
| 21 |
"id": BOOKMARK_ID, |
| 22 |
"attributes": {"name": _name, "path": _path, "pinned": True}, |
| 23 |
"relationships": { |
| 24 |
"collection": { |
| 25 |
"data": { |
| 26 |
"type": "Collection", |
| 27 |
"id": _collection_id, |
| 28 |
} |
| 29 |
} |
| 30 |
}, |
| 31 |
}, |
| 32 |
"included": [ |
| 33 |
{ |
| 34 |
"type": "Collection", |
| 35 |
"id": _collection_id, |
| 36 |
"attributes": { |
| 37 |
"display_name": "GCP High Assurance Mapped Collection", |
| 38 |
"high_assurance": True, |
| 39 |
}, |
| 40 |
} |
| 41 |
], |
| 42 |
}, |
| 43 |
metadata={ |
| 44 |
"bookmark_id": BOOKMARK_ID, |
| 45 |
"collection": _collection_id, |
| 46 |
"name": _name, |
| 47 |
"path": _path, |
| 48 |
}, |
| 49 |
) |
| 50 |
) |