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
Fixed tests
Christian Bauer5e57062cde4c
diff --git a/manager/src/main/resources/logging.properties b/manager/src/main/resources/logging.propertiesindex 3fff220e2..9ce7eb1a9 100644--- a/manager/src/main/resources/logging.properties+++ b/manager/src/main/resources/logging.properties@@ -65,7 +65,7 @@ org.openremote.level=FINEST# - Set to FINEST to automatically log all facts and when they are modified# - Set to INFO and prefix your rule name with "-" or "--" to log execution details#-org.openremote.rules.Rules.level=FINEST+org.openremote.rules.Rules.level=FINE# Set to INFO to get rules engine statistics periodically, FINEST to dump all factsorg.openremote.rules.RulesEngineStats.level=INFOdiff --git a/profile/deploy.yml b/profile/deploy.ymlindex d8a05b511..6546ee1b7 100644--- a/profile/deploy.yml+++ b/profile/deploy.yml@@ -157,6 +157,10 @@ services:KEYCLOAK_HOST: keycloakKEYCLOAK_PORT: 8080+ # The service-internal webservice interface binding, bind to all interfaces+ # when running in container. Default is 127.0.0.1.+ WEBSERVER_LISTEN_HOST: 0.0.0.0+# Optional: Console applications can register for push notifications through FCM.# NOTIFICATION_FIREBASE_URL: https://fcm.googleapis.com/fcm/send# NOTIFICATION_FIREBASE_API_KEY = '...'diff --git a/test/src/test/groovy/org/openremote/test/protocol/TimerProtocolTest.groovy b/test/src/test/groovy/org/openremote/test/protocol/TimerProtocolTest.groovyindex 410cadf9c..4434db0f5 100644--- a/test/src/test/groovy/org/openremote/test/protocol/TimerProtocolTest.groovy+++ b/test/src/test/groovy/org/openremote/test/protocol/TimerProtocolTest.groovy@@ -60,7 +60,7 @@ class TimerProtocolTest extends Specification implements ManagerContainerTrait {and: "the quartz job has the correct time"conditions.eventually {- def awaySceneFridayRef = new AttributeRef(sceneAgent.id, "awaySceneFriday")+ def awaySceneFridayRef = new AttributeRef(sceneAgent.id, "awaySceneFRIDAY")def timerId = timerProtocol.getTimerId(awaySceneFridayRef)def jobKey = JobKey.jobKey("cronJob1", timerId)def jobDetail = timerProtocol.cronScheduler.scheduler.getJobDetail(jobKey)@@ -83,7 +83,7 @@ class TimerProtocolTest extends Specification implements ManagerContainerTrait {then: "the corresponding cron job should be removed from the cron scheduler"conditions.eventually {- def awaySceneFridayRef = new AttributeRef(sceneAgent.id, "awaySceneFriday")+ def awaySceneFridayRef = new AttributeRef(sceneAgent.id, "awaySceneFRIDAY")def timerId = timerProtocol.getTimerId(awaySceneFridayRef)def jobKey = JobKey.jobKey("cronJob1", timerId)def jobDetail = timerProtocol.cronScheduler.scheduler.getJobDetail(jobKey)@@ -103,7 +103,7 @@ class TimerProtocolTest extends Specification implements ManagerContainerTrait {then: "the quartz job should be recreated and have the correct time"conditions.eventually {- def awaySceneFridayRef = new AttributeRef(sceneAgent.id, "awaySceneFriday")+ def awaySceneFridayRef = new AttributeRef(sceneAgent.id, "awaySceneFRIDAY")def timerId = timerProtocol.getTimerId(awaySceneFridayRef)def jobKey = JobKey.jobKey("cronJob1", timerId)def jobDetail = timerProtocol.cronScheduler.scheduler.getJobDetail(jobKey)@@ -121,7 +121,7 @@ class TimerProtocolTest extends Specification implements ManagerContainerTrait {then: "the quartz job should have the new trigger time"conditions.eventually {- def awaySceneFridayRef = new AttributeRef(sceneAgent.id, "awaySceneFriday")+ def awaySceneFridayRef = new AttributeRef(sceneAgent.id, "awaySceneFRIDAY")def timerId = timerProtocol.getTimerId(awaySceneFridayRef)def jobKey = JobKey.jobKey("cronJob1", timerId)def jobDetail = timerProtocol.cronScheduler.scheduler.getJobDetail(jobKey)@@ -137,7 +137,7 @@ class TimerProtocolTest extends Specification implements ManagerContainerTrait {apartment1.addAttributes(new AssetAttribute("awaySceneCronFRIDAY", AttributeType.STRING).addMeta(- AgentLink.asAgentLinkMetaItem(new AttributeRef(sceneAgent.id, "awaySceneFriday")),+ AgentLink.asAgentLinkMetaItem(new AttributeRef(sceneAgent.id, "awaySceneFRIDAY")),TimerValue.CRON_EXPRESSION.asMetaItem()))@@ -155,7 +155,7 @@ class TimerProtocolTest extends Specification implements ManagerContainerTrait {then: "the quartz job should have the new cron expression"conditions.eventually {- def awaySceneFridayRef = new AttributeRef(sceneAgent.id, "awaySceneFriday")+ def awaySceneFridayRef = new AttributeRef(sceneAgent.id, "awaySceneFRIDAY")def timerId = timerProtocol.getTimerId(awaySceneFridayRef)def jobKey = JobKey.jobKey("cronJob1", timerId)def jobDetail = timerProtocol.cronScheduler.scheduler.getJobDetail(jobKey)@@ -168,7 +168,7 @@ class TimerProtocolTest extends Specification implements ManagerContainerTrait {}when: "a timer action is executed"- timerProtocol.doTriggerAction(sceneAgent.getAttribute("awaySceneFriday").get())+ timerProtocol.doTriggerAction(sceneAgent.getAttribute("awaySceneFRIDAY").get())then: "the linked macro should have been executed"conditions.eventually {@@ -179,13 +179,13 @@ class TimerProtocolTest extends Specification implements ManagerContainerTrait {when: "a trigger is deleted"sceneAgent = assetStorageService.find(sceneAgent.id)- sceneAgent.removeAttribute("awaySceneFriday")+ sceneAgent.removeAttribute("awaySceneFRIDAY")sceneAgent = assetStorageService.merge(sceneAgent)then: "the corresponding cron job should be removed from the cron scheduler"conditions.eventually {- assert !sceneAgent.getAttribute("awaySceneFriday").isPresent()- def awaySceneFridayRef = new AttributeRef(sceneAgent.id, "awaySceneFriday")+ assert !sceneAgent.getAttribute("awaySceneFRIDAY").isPresent()+ def awaySceneFridayRef = new AttributeRef(sceneAgent.id, "awaySceneFRIDAY")def timerId = timerProtocol.getTimerId(awaySceneFridayRef)def jobKey = JobKey.jobKey("cronJob1", timerId)def jobDetail = timerProtocol.cronScheduler.scheduler.getJobDetail(jobKey)diff --git a/test/src/test/groovy/org/openremote/test/rules/BasicRulesetResourceTest.groovy b/test/src/test/groovy/org/openremote/test/rules/BasicRulesetResourceTest.groovyindex a74366f53..c52b5d440 100644--- a/test/src/test/groovy/org/openremote/test/rules/BasicRulesetResourceTest.groovy+++ b/test/src/test/groovy/org/openremote/test/rules/BasicRulesetResourceTest.groovy@@ -190,7 +190,7 @@ class BasicRulesetResourceTest extends Specification implements ManagerContainerex.response.status == 404when: "a tenant ruleset is deleted"- rulesetResource.updateTenantRuleset(null, rulesetId)+ rulesetResource.deleteTenantRuleset(null, rulesetId)rulesetResource.getTenantRuleset(null, rulesetId)then: "the result should be not found"@@ -436,7 +436,7 @@ class BasicRulesetResourceTest extends Specification implements ManagerContainerex.response.status == 404when: "a tenant ruleset is deleted"- rulesetResource.updateTenantRuleset(null, rulesetId)+ rulesetResource.deleteTenantRuleset(null, rulesetId)rulesetResource.getTenantRuleset(null, rulesetId)then: "the result should be not found"@@ -626,7 +626,7 @@ class BasicRulesetResourceTest extends Specification implements ManagerContainerex.response.status == 403when: "a tenant ruleset is deleted"- rulesetResource.updateTenantRuleset(null, 1234567890l)+ rulesetResource.deleteTenantRuleset(null, 1234567890l)then: "access should be forbidden"ex = thrown()@@ -781,7 +781,7 @@ class BasicRulesetResourceTest extends Specification implements ManagerContainerex.response.status == 404when: "a tenant ruleset is deleted"- rulesetResource.updateTenantRuleset(null, 1234567890l)+ rulesetResource.deleteTenantRuleset(null, 1234567890l)rulesetResource.getTenantRuleset(null, 1234567890l)then: "the result should be not found"