Debian Codegraph @

src/globus_sdk/testing/data/search/search.py

raw
1 from globus_sdk.testing.models import RegisteredResponse, ResponseSet
2
3 INDEX_ID = "60d1160b-f016-40b0-8545-99619865873d"
4
5
6 RESPONSES = ResponseSet(
7 metadata={"index_id": INDEX_ID},
8 default=RegisteredResponse(
9 service="search",
10 path=f"/v1/index/{INDEX_ID}/search",
11 json={
12 "@datatype": "GSearchResult",
13 "@version": "2017-09-01",
14 "count": 1,
15 "gmeta": [
16 {
17 "@datatype": "GMetaResult",
18 "@version": "2019-08-27",
19 "entries": [
20 {
21 "content": {"foo": "bar"},
22 "entry_id": None,
23 "matched_principal_sets": [],
24 }
25 ],
26 "subject": "foo-bar",
27 }
28 ],
29 "has_next_page": True,
30 "offset": 0,
31 "total": 10,
32 },
33 ),
34 )