opengeospatial / ets-sta10

Repository for the Executable Test Suite for OGC Sensor Things API
Other
6 stars 8 forks source link

* Added tests for geospatial functions. #26

Closed hylkevds closed 1 year ago

hylkevds commented 7 years ago

I've written some tests for the geospatial filter functions.

bertt commented 7 years ago

Hi, trying to run the Geospatial functions test, but it stops in setting up database after 2 requests (creating things):

09:37:14.120 [main] INFO org.opengis.cite.sta10.filteringExtension.GeoTests - Setting up class.
09:37:15.545 [main] DEBUG de.fraunhofer.iosb.ilt.sta.dao.BaseDao - Posting to: http://localhost:8080/v1.0/Things
09:37:15.666 [main] DEBUG de.fraunhofer.iosb.ilt.sta.dao.BaseDao - Posting to: http://localhost:8080/v1.0/Things
09:37:15.675 [main] DEBUG de.fraunhofer.iosb.ilt.sta.dao.BaseDao - Posting to: http://localhost:8080/v1.0/Things

Process finished with exit code 130 (interrupted by signal 2: SIGINT)

I suspect something with closing connections. First 2 things are created well. Any ideas how to fix?

hylkevds commented 7 years ago

Can you try running the tests in a debugger? The exit code 130 is not a java exit code, but coming from the terminal. In bash 130 means it was iterrupted by the user pressing ctrl-c SIGINT also means the process was stopped by an external signal...

bertt commented 7 years ago

yes I pressed control-c in IntelliJ because it hangs after 2 requests

bertt commented 7 years ago

Last line executed is L.74 in de.fraunhofer.iosb.ilt.sta.dao.BaseDao

                CloseableHttpResponse response = client.execute(httpPost);
hylkevds commented 7 years ago

So the server never responds to the http post?

hylkevds commented 7 years ago

Can you try increasing the version number of the SensorThingsClient to 0.11 in the pom of the testsuite?

bertt commented 7 years ago

on the server-side I see the first 2 requests arriving/handled but the third is not arriving it seems.

bertt commented 7 years ago

SensorThingsClient 0.11 is not found

bertt commented 7 years ago

tried with 0.6 and it runs :-)

hylkevds commented 5 years ago

Considering the speed of development of this test suit I really doubt there will be a problem with the library not being updated fast enough. But you can find it here: https://github.com/FraunhoferIOSB/FROST-Client so feel free to copy it into the project.

taniakhalafbeigi commented 5 years ago

Development speed of this test suite is irrelevant to the problem of this pull request. The OGC test suite should be self-contained with anything related to the standard that it is testing.