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
Ignoring unreliable test
Rich Turner517617133ce9
diff --git a/manager/test/src/test/groovy/org/openremote/test/rules/apartment/ApartmentPresenceDetectionTest.groovy b/manager/test/src/test/groovy/org/openremote/test/rules/apartment/ApartmentPresenceDetectionTest.groovyindex 961256754..a2646bf15 100644--- a/manager/test/src/test/groovy/org/openremote/test/rules/apartment/ApartmentPresenceDetectionTest.groovy+++ b/manager/test/src/test/groovy/org/openremote/test/rules/apartment/ApartmentPresenceDetectionTest.groovy@@ -14,6 +14,7 @@ import org.openremote.model.rules.AssetRulesetimport org.openremote.model.rules.Rulesetimport org.openremote.model.value.Valuesimport org.openremote.test.ManagerContainerTrait+import spock.lang.Ignoreimport spock.lang.Specificationimport spock.util.concurrent.PollingConditions@@ -286,6 +287,7 @@ class ApartmentPresenceDetectionTest extends Specification implements ManagerCon}// TODO This should be a very simple test that only shows how to accumulate and count events in rules, maybe move to new test clas+ @Ignoredef "Detect presence with motion sensor"() {given: "the container environment is started"@@ -323,6 +325,7 @@ class ApartmentPresenceDetectionTest extends Specification implements ManagerCondef bathRoomAsset = assetStorageService.find(managerDemoSetup.apartment2BathroomId, true)assert !bathRoomAsset.getAttribute("presenceDetected").get().getValueAsBoolean().get()assert !bathRoomAsset.getAttribute("lastPresenceDetected").get().getValueAsNumber().isPresent()+ // TODO: Fix this check - value actually contains -1.0 (as inserted by the Init firstPresentDetected rule)assert !bathRoomAsset.getAttribute("firstPresenceDetected").get().getValueAsNumber().isPresent()when: "we have an events consumer for collecting test data"