Open-EO / openeo-geopyspark-driver

OpenEO driver for GeoPySpark (Geotrellis)
Apache License 2.0
26 stars 4 forks source link

add tests for property filters #767

Closed bossie closed 5 months ago

bossie commented 5 months ago

Part of #460.

bossie commented 5 months ago

@soxofaan,

I'm trying to address this TODO here but can't seem to find the way to implement it: https://github.com/Open-EO/openeo-geopyspark-driver/blob/66da61602f36ff99df2d24c56bd8690bf40fd81b/tests/test_api_result.py#L4006-L4007

What the test does is pass a property filter ("season" == "s1") to load_stac so only STAC Item "item01" is loaded ("item02" doesn't have this "season" property).

To this end, I'm trying to see if (in pseudocode) org.openeo.geotrellis.file.FixedFeaturesOpenSearchClient().addFeature() is called exactly once with Feature("item01"): https://github.com/Open-EO/openeo-geopyspark-driver/blob/66da61602f36ff99df2d24c56bd8690bf40fd81b/openeogeotrellis/load_stac.py#L324

Some guidance?