opengeospatial / ets-sta10

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

Test suite assumes IDs are long #40

Open hylkevds opened 6 years ago

hylkevds commented 6 years ago

The test suite assumes IDs are Long (or int) and fails on implementations that use Strings as IDs, such as UUIDs.

org.json.JSONException: JSONObject["@iot.id"] is not a number.
    at org.json.JSONObject.getDouble(JSONObject.java:543)
    at org.json.JSONObject.getLong(JSONObject.java:612)
    at org.opengis.cite.sta10.sensingCore.Capability1Tests.readRelatedEntity(Capability1Tests.java:268)

I'll probably follow up with a pull request fixing the issue soon.

hylkevds commented 6 years ago

I've updated PR #32 to include the fixes. I've also updated #28 (MultiDatastream tests), #27 (DataArray tests) and #26 (Geospatial tests)