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
Slow test run needs more time waiting for initial rule firing after startup
Christian Bauer2bea640e0d63
diff --git a/test/src/test/groovy/org/openremote/test/failure/RulesExecutionFailureTest.groovy b/test/src/test/groovy/org/openremote/test/failure/RulesExecutionFailureTest.groovyindex 21df6b38e..bc5e71de2 100644--- a/test/src/test/groovy/org/openremote/test/failure/RulesExecutionFailureTest.groovy+++ b/test/src/test/groovy/org/openremote/test/failure/RulesExecutionFailureTest.groovy@@ -20,7 +20,7 @@ class RulesExecutionFailureTest extends Specification implements ManagerContainedef "Rule condition invalid return"() {given: "the container environment is started"- def conditions = new PollingConditions(timeout: 10, delay: 1)+ def conditions = new PollingConditions(timeout: 20, delay: 1)def serverPort = findEphemeralPort()def container = startContainerWithPseudoClock(defaultConfig(serverPort), defaultServices())def managerDemoSetup = container.getService(SetupService.class).getTaskOfType(ManagerDemoSetup.class)@@ -56,7 +56,7 @@ class RulesExecutionFailureTest extends Specification implements ManagerContainedef "Rule condition throws exception"() {given: "the container environment is started"- def conditions = new PollingConditions(timeout: 10, delay: 1)+ def conditions = new PollingConditions(timeout: 20, delay: 1)def serverPort = findEphemeralPort()def container = startContainerWithPseudoClock(defaultConfig(serverPort), defaultServices())def managerDemoSetup = container.getService(SetupService.class).getTaskOfType(ManagerDemoSetup.class)@@ -92,7 +92,7 @@ class RulesExecutionFailureTest extends Specification implements ManagerContainedef "Rule action throws exception"() {given: "the container environment is started"- def conditions = new PollingConditions(timeout: 10, delay: 1)+ def conditions = new PollingConditions(timeout: 20, delay: 1)def serverPort = findEphemeralPort()def container = startContainerWithPseudoClock(defaultConfig(serverPort), defaultServices())def managerDemoSetup = container.getService(SetupService.class).getTaskOfType(ManagerDemoSetup.class)@@ -128,7 +128,7 @@ class RulesExecutionFailureTest extends Specification implements ManagerContainedef "Rule action calls users facade with invalid user ID in asset ruleset"() {given: "the container environment is started"- def conditions = new PollingConditions(timeout: 10, delay: 1)+ def conditions = new PollingConditions(timeout: 20, delay: 1)def serverPort = findEphemeralPort()def container = startContainerWithPseudoClock(defaultConfig(serverPort), defaultServices())def keycloakDemoSetup = container.getService(SetupService.class).getTaskOfType(KeycloakDemoSetup.class)@@ -166,7 +166,7 @@ class RulesExecutionFailureTest extends Specification implements ManagerContainedef "Rule action calls users facade with invalid user ID in tenant ruleset"() {given: "the container environment is started"- def conditions = new PollingConditions(timeout: 10, delay: 1)+ def conditions = new PollingConditions(timeout: 20, delay: 1)def serverPort = findEphemeralPort()def container = startContainerWithPseudoClock(defaultConfig(serverPort), defaultServices())def keycloakDemoSetup = container.getService(SetupService.class).getTaskOfType(KeycloakDemoSetup.class)@@ -202,7 +202,7 @@ class RulesExecutionFailureTest extends Specification implements ManagerContainedef "Rule condition loops"() {given: "the container environment is started"- def conditions = new PollingConditions(timeout: 10, delay: 1)+ def conditions = new PollingConditions(timeout: 20, delay: 1)def serverPort = findEphemeralPort()def container = startContainerWithPseudoClock(defaultConfig(serverPort), defaultServices())def managerDemoSetup = container.getService(SetupService.class).getTaskOfType(ManagerDemoSetup.class)