You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. asset search within one item returns correct content (number of assets, supports time filtering etc) - using .get_asset(id), .assets, .get_assets().
These tests explore the breadth of options in the search client:
1. POST and GET requests work the same
2.not testable until multiple collections indexed - get a collection object, then specify it in the search with client.search(collections=[my_collection])
10.not testable until multiple collections indexed - walking through levels works, e.g.: client.get_collection(collection_id).get_item(item_id).get_asset(asset_id)
11. when you search with latest=True (at the item-level): the response should only give back the most recent version of any given dataset. latest=True or latest='true' raises an error and does not work as expected
Basic unit tests
These tests confirm things are working:
.get_asset(id)
,.assets
,.get_assets()
.instance_id
returns 1 item, matchinginstance_id
(e.g.:CMIP6.HighResMIP.MOHC.HadGEM3-GC31-HH.highres-future.r1i1p1f1.day.tas.gn.v20191105
)instance_id
above)Comprehensive unit tests
These tests explore the breadth of options in the search client:
client.search(collections=[my_collection])
client.asset_search(items=[item1, item2])
#9limit=
,max_items=
to specify the number of items to return in a response, limit is items per page and max_items is total return. (default:limit=100
,max_items=100
) #10filter=
,filter_lang=
to include a search query in the filter parameter. (default GET search:filter_lang=cql-text
,filter=None
) #13 no need to test filter_lang - only 1 lang implemented so farclient.search(filter="activity_id<>'AerChemMIP' AND (variable='hus' or variable='ta')")
"*"
client.get_collection(collection_id).get_item(item_id).get_asset(asset_id)
latest=True
(at the item-level): the response should only give back the most recent version of any given dataset. latest=True or latest='true' raises an error and does not work as expectedversion
works #12bbox=[West,South,East,North]
to filter within a geo-spatial box. (default:bbox=None
)intersects=
to filter by any geo-json type. (default:intersects=None
)fields
andsource
can be used interchangeablycmip6
vocabulary matches responses when searching usinggeneral
vocabulary (refer to: Fully describe the plan for searching and indexing with name-spaced facets (vocabs) search-futures#107)The text was updated successfully, but these errors were encountered: