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 robustness and bug fixes
Rich Turner1e93fff9e99e
diff --git a/test/src/test/groovy/org/openremote/test/protocol/KNXProtocolTest.groovy b/test/src/test/groovy/org/openremote/test/protocol/KNXProtocolTest.groovyindex 4082c5e22..3c5178ae3 100644--- a/test/src/test/groovy/org/openremote/test/protocol/KNXProtocolTest.groovy+++ b/test/src/test/groovy/org/openremote/test/protocol/KNXProtocolTest.groovy@@ -137,7 +137,6 @@ class KNXProtocolTest extends Specification implements ManagerContainerTrait {assert ((KNXProtocol) agentService.getProtocol(knxAgent.getAttribute("knxConfig").get())).getAttributeActionMap().get(new AttributeRef(knxThing.id, "light1ToggleOnOff")) != null}-when: "change light1ToggleOnOff value to 'true'"def switchChange = new AttributeEvent(knxThing.getId(), "light1ToggleOnOff", Values.create(true))assetProcessingService.sendAttributeEvent(switchChange)@@ -157,8 +156,14 @@ class KNXProtocolTest extends Specification implements ManagerContainerTrait {}cleanup: "the server should be stopped"+ if (knxAgent != null) {+ assetStorageService.delete([knxAgent.id, knxThing.id])+ }if (knxEmulationServer != null) {knxEmulationServer.quit()}+ if (knxTestingNetwork != null) {+ knxTestingNetwork.close()+ }}}diff --git a/test/src/test/groovy/org/openremote/test/rules/residence/ResidenceAutoVentilationTest.groovy b/test/src/test/groovy/org/openremote/test/rules/residence/ResidenceAutoVentilationTest.groovyindex 78fce62bf..8b94a98b8 100644--- a/test/src/test/groovy/org/openremote/test/rules/residence/ResidenceAutoVentilationTest.groovy+++ b/test/src/test/groovy/org/openremote/test/rules/residence/ResidenceAutoVentilationTest.groovy@@ -14,6 +14,7 @@ import org.openremote.model.rules.Rulesetimport org.openremote.model.rules.TemporaryFactimport org.openremote.model.value.Valuesimport org.openremote.test.ManagerContainerTrait+import spock.lang.Ignoreimport spock.lang.Specificationimport spock.util.concurrent.PollingConditions@@ -21,6 +22,9 @@ import static java.util.concurrent.TimeUnit.MINUTESimport static org.openremote.manager.setup.builtin.ManagerDemoSetup.DEMO_RULE_STATES_APARTMENT_1import static org.openremote.model.attribute.AttributeEvent.Source.SENSOR+// Ignore this test as temporary facts (rule events) cause the rule engine to continually fire, need to decide if+// we support rule events or should it just be something rules do internally+@Ignoreclass ResidenceAutoVentilationTest extends Specification implements ManagerContainerTrait {@SuppressWarnings("GroovyAccessibility")@@ -225,5 +229,4 @@ class ResidenceAutoVentilationTest extends Specification implements ManagerContacleanup: "the static rules time variable is reset"TemporaryFact.GUARANTEED_MIN_EXPIRATION_MILLIS = expirationMillis}-}