|
@@ -51,9 +51,7 @@ class OGCSensorThingsOnlineIntegrationTest {
|
|
|
private static final String GATEWAY_ID = "OGCSensorThings";
|
|
private static final String GATEWAY_ID = "OGCSensorThings";
|
|
|
|
|
|
|
|
private static final String DEFAULT_OGC_THINK_ID = "urn:afc:AS07:environmentalObservations:IMA:air_sensor:10002222";
|
|
private static final String DEFAULT_OGC_THINK_ID = "urn:afc:AS07:environmentalObservations:IMA:air_sensor:10002222";
|
|
|
- private static final String DEFAULT_OGC_DATASTREAM_ID = "urn:afc:AS07:environmentalObservations:LESP:air_sensor:1305167561991327&air_temperature";
|
|
|
|
|
private static final String DEFAULT_AFC_SENSOR_ID = "10002222";
|
|
private static final String DEFAULT_AFC_SENSOR_ID = "10002222";
|
|
|
- private static final String DEFAULT_AFC_OBSERVED_PROPERTY = "air_temperature";
|
|
|
|
|
|
|
|
|
|
private static final Map<String, String> DEFAULT_PROPERTIES = new HashMap<String, String>(){{
|
|
private static final Map<String, String> DEFAULT_PROPERTIES = new HashMap<String, String>(){{
|
|
|
put("multiSensorId", DEFAULT_AFC_SENSOR_ID);
|
|
put("multiSensorId", DEFAULT_AFC_SENSOR_ID);
|
|
@@ -62,10 +60,8 @@ class OGCSensorThingsOnlineIntegrationTest {
|
|
|
private static final HttpHostInfo OGC_HOST = HttpHostInfo.create(DEFAULT_PORT, "localhost", create(API_PREFIX, MODULE_ID, GATEWAY_ID), false);
|
|
private static final HttpHostInfo OGC_HOST = HttpHostInfo.create(DEFAULT_PORT, "localhost", create(API_PREFIX, MODULE_ID, GATEWAY_ID), false);
|
|
|
|
|
|
|
|
private static final HttpHostInfo AFC_RETRIEVAL_HOST = HttpHostInfo.create(9219, "torcos.etsist.upm.es", "", false);
|
|
private static final HttpHostInfo AFC_RETRIEVAL_HOST = HttpHostInfo.create(9219, "torcos.etsist.upm.es", "", false);
|
|
|
- private static final HttpHostInfo AFC_TELEMETRY_HOST = HttpHostInfo.create(9207, "torcos.etsist.upm.es", "", false);
|
|
|
|
|
private static final HttpHostInfo AFC_INFO_HOST = HttpHostInfo.create(443, "storage07-afarcloud.qa.pdmfc.com", "/storage/rest", true);
|
|
private static final HttpHostInfo AFC_INFO_HOST = HttpHostInfo.create(443, "storage07-afarcloud.qa.pdmfc.com", "/storage/rest", true);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
private static class TestConfig {
|
|
private static class TestConfig {
|
|
|
private final RequestConfig[] afcRequestConfigs;
|
|
private final RequestConfig[] afcRequestConfigs;
|
|
|
private final Function<Map<String, String>, Map<String, String>> handler;
|
|
private final Function<Map<String, String>, Map<String, String>> handler;
|
|
@@ -139,7 +135,7 @@ class OGCSensorThingsOnlineIntegrationTest {
|
|
|
String afcData = results.get("afcData");
|
|
String afcData = results.get("afcData");
|
|
|
String ogcDatastreams = results.get(OGC_JSON_KEY);
|
|
String ogcDatastreams = results.get(OGC_JSON_KEY);
|
|
|
assertDataStream(afcSensors, afcData, ogcDatastreams, DEFAULT_PROPERTIES);
|
|
assertDataStream(afcSensors, afcData, ogcDatastreams, DEFAULT_PROPERTIES);
|
|
|
- return findNextNavigationLinks(ogcDatastreams, DEFAULT_OGC_DATASTREAM_ID);
|
|
|
|
|
|
|
+ return findNextNavigationLinks(ogcDatastreams, 0);
|
|
|
}));
|
|
}));
|
|
|
|
|
|
|
|
// configuration for /Sensor => {}
|
|
// configuration for /Sensor => {}
|