Skip to content

Commit 87dc8dc

Browse files
committed
Updated GEE tests to be compatible with 0.4
1 parent 1a991d8 commit 87dc8dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/earthengine.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ describe('With earth-engine-driver', () => {
1010
const TESTPASSWORD = 'test123';
1111
const TESTCAPABILITIES = {"api_version":"0.4.0","backend_version":"0.4.0","title":"Google Earth Engine Proxy for openEO","description":"This is the Google Earth Engine Driver for openEO.\n\nGoogle Earth Engine is a planetary-scale platform for Earth science data & analysis. It is powered by Google's cloud infrastructure and combines a multi-petabyte catalog of satellite imagery and geospatial datasets with planetary-scale analysis capabilities. Google makes it available for scientists, researchers, and developers to detect changes, map trends, and quantify differences on the Earth's surface. Google Earth Engine is free for research, education, and nonprofit use.","endpoints":[{"path":"/","methods":["GET"]},{"path":"/service_types","methods":["GET"]},{"path":"/output_formats","methods":["GET"]},{"path":"/stac","methods":["GET"]},{"path":"/collections","methods":["GET"]},{"path":"/collections/{collection_id}","methods":["GET"]},{"path":"/processes","methods":["GET"]},{"path":"/files/{user_id}","methods":["GET"]},{"path":"/files/{user_id}/{path}","methods":["GET","PUT","DELETE"]},{"path":"/result","methods":["POST"]},{"path":"/jobs","methods":["POST","GET"]},{"path":"/jobs/{job_id}","methods":["GET","PATCH","DELETE"]},{"path":"/jobs/{job_id}/results","methods":["GET","POST"]},{"path":"/temp/{token}/{file}","methods":["GET"]},{"path":"/storage/{job_id}/{file}","methods":["GET"]},{"path":"/services","methods":["GET","POST"]},{"path":"/services/{service_id}","methods":["GET","PATCH","DELETE"]},{"path":"/xyz/{service_id}/{z}/{x}/{y}","methods":["GET"]},{"path":"/subscription","methods":["GET"]},{"path":"/credentials/basic","methods":["GET"]},{"path":"/credentials","methods":["POST"]},{"path":"/me","methods":["GET"]},{"path":"/validation","methods":["POST"]},{"path":"/process_graphs","methods":["GET","POST"]},{"path":"/process_graphs/{process_graph_id}","methods":["GET","PATCH","DELETE"]}],"billing":{"currency":"USD","default_plan":"free","plans":[{"name":"free","description":"Earth Engine is free for research, education, and nonprofit use. For commercial applications, Google offers paid commercial licenses. Please contact earthengine-commercial@google.com for details.","paid":false}]},"links":[{"rel":"about","href":"https://earthengine.google.com/","title":"Google Earth Engine Homepage"},{"rel":"related","href":"https://github.com/Open-EO/openeo-earthengine-driver","title":"GitHub repository"},{"rel":"version-history","href":TESTBACKEND+"/.well-known/openeo","type":"application/json","title":"Supported API versions"}]};
1212
const TESTCOLLECTION = {"id":"AAFC/ACI","title":"Canada AAFC Annual Crop Inventory","description":"Starting in 2009, the Earth Observation Team of the Science and Technology\nBranch (STB) at Agriculture and Agri-Food Canada (AAFC) began the process\nof generating annual crop type digital maps. Focusing on the Prairie\nProvinces in 2009 and 2010, a Decision Tree (DT) based methodology was\napplied using optical (Landsat-5, AWiFS, DMC) and radar (Radarsat-2) based\nsatellite images. Beginning with the 2011 growing season, this activity has\nbeen extended to other provinces in support of a national crop inventory.\nTo date this approach can consistently deliver a crop inventory that meets\nthe overall target accuracy of at least 85% at a final spatial resolution of\n30m (56m in 2009 and 2010).\n","license":"proprietary","providers":[{"name":"Agriculture and Agri-Food Canada","roles":["producer","licensor"],"url":"https://open.canada.ca/data/en/dataset/ba2645d5-4458-414d-b196-6303ac06c1c9"},{"name":"Google Earth Engine","roles":["host"],"url":"https://developers.google.com/earth-engine/datasets/catalog/AAFC_ACI"}],"extent":{"spatial":[-135.17,36.83,-51.24,62.25],"temporal":["2009-01-01T00:00:00Z",null]},"links":[{"rel":"self","href":TESTBACKENDDIRECT+"/collections/AAFC/ACI"},{"rel":"parent","href":TESTBACKENDDIRECT+"/collections"},{"rel":"root","href":TESTBACKENDDIRECT+"collections"},{"rel":"source","href":"http://www.agr.gc.ca/atlas/data_donnees/agr/annualCropInventory/tif"}]};
13-
const TESTPROCESS = {"id":"min_time","deprecated":true,"summary":"Calculates minimum values of time series.","description":"Finds the minimum value of time series for all bands of the input dataset.","parameters":{"imagery":{"description":"EO data to process.","required":true,"schema":{"type":"object","format":"raster-cube"}}},"returns":{"description":"Processed EO data.","schema":{"type":"object","format":"raster-cube"}}};
14-
const TESTPROCESSGGRAPH = {"filter1":{"process_id":"filter_daterange","arguments":{"imagery":{"from_node":"loadco1"},"extent":["2018-01-01T00:00:00Z","2018-01-31T23:59:59Z"]}},"loadco1":{"process_id":"get_collection","arguments":{"name":"COPERNICUS/S2"}},"filter2":{"process_id":"filter_bbox","arguments":{"imagery":{"from_node":"filter1"},"extent":{"west":16.5,"east":16.6,"north":48.6,"south":48.5}}},"ndvi1":{"process_id":"NDVI","arguments":{"imagery":{"from_node":"filter2"},"red":"B4","nir":"B8"}},"mint1":{"process_id":"min_time","arguments":{"imagery":{"from_node":"ndvi1"}}},"export":{"process_id":"save_result","arguments":{"data":{"from_node":"mint1"},"format":"png"},"result":true}};
13+
const TESTPROCESS = {"id":"min","summary":"Minimum value","description":"Computes the smallest value of an array of numbers, which is is equal to the last element of a sorted (i.e., ordered) version the array.","categories":["math","reducer"],"gee:custom":true,"parameters":{"data":{"description":"An array of numbers. An empty array resolves always with `null`.","schema":{"type":"array","items":{"type":["number","null"]}},"required":true}},"returns":{"description":"The minimum value.","schema":{"type":["number","null"]}},"examples":[{"arguments":{"data":[1,0,3,2]},"returns":0},{"arguments":{"data":[5,2.5,null,-0.7]},"returns":-0.7},{"arguments":{"data":[]},"returns":null}],"links":[{"rel":"about","href":"http://mathworld.wolfram.com/Minimum.html","title":"Minimum explained by Wolfram MathWorld"}]};
14+
const TESTPROCESSGGRAPH = {"1":{"process_id":"load_collection","arguments":{"id":"COPERNICUS/S2","spatial_extent":{"west":-2.763447,"south":43.040791,"east":-1.120991,"north":43.838489},"temporal_extent":["2018-04-30","2018-06-26"],"bands":["B4","B8"]}},"2":{"process_id":"filter_bands","arguments":{"data":{"from_node":1},"bands":["B4"]}},"3":{"process_id":"normalized_difference","arguments":{"band1":{"from_node":2},"band2":{"from_node":6}}},"4":{"process_id":"reduce","arguments":{"data":{"from_node":3},"reducer":{"callback":{"min":{"arguments":{"data":{"from_argument":"data"}},"process_id":"min","result":true}}},"dimension":"temporal"}},"5":{"process_id":"save_result","arguments":{"data":{"from_node":4},"format":"png"},"result":true},"6":{"process_id":"filter_bands","arguments":{"data":{"from_node":1},"bands":["B8"]}}};
1515
var isBrowserEnv = (typeof Blob !== 'undefined');
1616

1717
async function connectWithoutAuth() {

0 commit comments

Comments
 (0)