Debian Codegraph @

src/globus_sdk/testing/data/search/post_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 method="POST",
12 json={
13 "@datatype": "GSearchResult",
14 "@version": "2017-09-01",
15 "count": 1,
16 "gmeta": [
17 {
18 "@datatype": "GMetaResult",
19 "@version": "2019-08-27",
20 "entries": [
21 {
22 "content": {"foo": "bar"},
23 "entry_id": None,
24 "matched_principal_sets": [],
25 }
26 ],
27 "subject": "foo-bar",
28 }
29 ],
30 "has_next_page": True,
31 "offset": 0,
32 "total": 10,
33 },
34 ),
35 )