Opened 4 years ago

Closed 4 years ago

#2268 closed defect (fixed)

wcs_extract - "mock":true does not work

Reported by: Bang Pham Huu Owned by: dkamov
Priority: major Milestone: 10.0
Component: wcst_import Version: 9.8
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

if "mock":true is set for wcs_extract recipes, it should not send HTTP requests to petascope but just print them to the console.

Change History (3)

comment:1 by Dimitar Misev, 4 years ago

Owner: changed from Bang Pham Huu to dkamov

comment:2 by dkamov, 4 years ago

The first set of requests

  INFO [2020-04-23 10:58:12] PetascopeController@233: Request processed in 21466 ms.
  INFO [2020-04-23 10:58:12] PetascopeController@162: Received request: acceptVersions=2.0.1&request=GetCapabilities&service=WCS&version=2.0.1
  INFO [2020-04-23 10:58:12] PetascopeController@233: Request processed in 28 ms.
  INFO [2020-04-23 10:58:12] PetascopeController@162: Received request: coverageId=test_time3d&request=DescribeCoverage&service=WCS&version=2.0.1
  INFO [2020-04-23 10:58:12] PetascopeController@233: Request processed in 147 ms.
  INFO [2020-04-23 10:58:12] PetascopeController@162: Received request: acceptVersions=2.0.1&request=GetCapabilities&service=WCS&version=2.0.1
  INFO [2020-04-23 10:58:12] PetascopeController@233: Request processed in 18 ms.
  INFO [2020-04-23 10:58:12] PetascopeController@162: Received request: coverageId=test_time3d&request=DescribeCoverage&service=WCS&version=2.0.1

are for giving the description:

The recipe has been validated and is ready to run.
Recipe: wcs_extract
Coverage: test_wcs_extract
WCS Service: http://localhost:8080/rasdaman/ows
Operation: INSERT
Subset Correction: False
Mocked: True
WMS Import: True
Import mode: Blocking

namely about checking whether it needs to INSERT or UPDATE.

Now this request I believe is the one we don't want to be executed when "mock": true

  INFO [2020-04-23 10:58:12] PetascopeController@162: Received request: coverageId=test_time3d&format=image/tiff&request=GetCoverage&service=WCS&subset=time(127469.5)&subset=Lat(-39.34,-34.54)&subset=Lon(147.2,152.0)&version=2.0.1
  INFO [2020-04-23 10:58:13] RasUtil@133: Executing rasql query: SELECT encode(c[0,0:3,0:3], "image/tiff" , "{\"geoReference\":{\"crs\":\"EPSG:4326\",\"bbox\":{\"xmin\":147.2,\"ymin\":-39.34,\"xmax\":152,\"ymax\":-34.54}}}") FROM test_time3d AS c

  INFO [2020-04-23 10:58:13] RasUtil@206: Rasql query executed in 57 ms.
  INFO [2020-04-23 10:58:13] PetascopeController@233: Request processed in 170 ms.

but I wasn't able to locate it for now where it is being called from.

comment:3 by dkamov, 4 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.