100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Test updates
Rich Turnerb7e89ad88f04
diff --git a/test/src/test/groovy/org/openremote/test/assets/AssetAttributeLinkingTest.groovy b/test/src/test/groovy/org/openremote/test/assets/AssetAttributeLinkingTest.groovyindex 40fa71da6..8495f54bb 100644--- a/test/src/test/groovy/org/openremote/test/assets/AssetAttributeLinkingTest.groovy+++ b/test/src/test/groovy/org/openremote/test/assets/AssetAttributeLinkingTest.groovy@@ -70,7 +70,7 @@ class AssetAttributeLinkingTest extends Specification implements ManagerContainedef attributeLinkProp = Values.convert(new AttributeLink(new AttributeRef(asset2.id, "item2Prop1"), null, [- new JsonPathFilter("\$[1].prop1")+ new JsonPathFilter("\$[1].prop1", true)] as ValueFilter[]), Container.JSON).orElse(null)asset1.getAttribute("button").get().addMeta(new MetaItem(MetaItemType.ATTRIBUTE_LINK, attributeLinkOnOff))diff --git a/test/src/test/groovy/org/openremote/test/protocol/websocket/WebsocketClientProtocolTest.groovy b/test/src/test/groovy/org/openremote/test/protocol/websocket/WebsocketClientProtocolTest.groovyindex 19d40d90c..bb8502dfc 100644--- a/test/src/test/groovy/org/openremote/test/protocol/websocket/WebsocketClientProtocolTest.groovy+++ b/test/src/test/groovy/org/openremote/test/protocol/websocket/WebsocketClientProtocolTest.groovy@@ -205,7 +205,7 @@ class WebsocketClientProtocolTest extends Specification implements ManagerContaiValues.convert([new SubStringValueFilter(SharedEvent.MESSAGE_PREFIX.length()),- new JsonPathFilter("\$..attributeState.attributeRef")+ new JsonPathFilter("\$..attributeState.attributeRef", false)] as ValueFilter[], Container.JSON).orElse(null)),new MetaItem(WebsocketClientProtocol.META_ATTRIBUTE_MESSAGE_MATCH_PREDICATE,@@ -214,8 +214,7 @@ class WebsocketClientProtocolTest extends Specification implements ManagerContaiValues.convert([new SubStringValueFilter(SharedEvent.MESSAGE_PREFIX.length()),- new JsonPathFilter("\$..events[?(@.attributeState.attributeRef.attributeName == \"targetTemperature\")].attributeState.value"),- new JsonPathFilter("\$.min()")+ new JsonPathFilter("\$..events[?(@.attributeState.attributeRef.attributeName == \"targetTemperature\")].attributeState.value", true)] as ValueFilter[], Container.JSON).orElse(null)),new MetaItem(WebsocketClientProtocol.META_SUBSCRIPTIONS,@@ -234,7 +233,7 @@ class WebsocketClientProtocolTest extends Specification implements ManagerContaiValues.convert([new SubStringValueFilter(SharedEvent.MESSAGE_PREFIX.length()),- new JsonPathFilter("\$..attributeState.attributeRef")+ new JsonPathFilter("\$..attributeState.attributeRef", false)] as ValueFilter[], Container.JSON).orElse(null)),new MetaItem(WebsocketClientProtocol.META_ATTRIBUTE_MESSAGE_MATCH_PREDICATE,@@ -243,8 +242,7 @@ class WebsocketClientProtocolTest extends Specification implements ManagerContaiValues.convert([new SubStringValueFilter(SharedEvent.MESSAGE_PREFIX.length()),- new JsonPathFilter("\$..events[?(@.attributeState.attributeRef.attributeName == \"co2Level\")].attributeState.value"),- new JsonPathFilter("\$.min()")+ new JsonPathFilter("\$..events[?(@.attributeState.attributeRef.attributeName == \"co2Level\")].attributeState.value", true),] as ValueFilter[], Container.JSON).orElse(null)),new MetaItem(WebsocketClientProtocol.META_SUBSCRIPTIONS,