diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-06-15 16:37:40 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-07-10 17:12:13 +0200 |
commit | 4771a29c1c475f1a71114c215a2ff167f215948c (patch) | |
tree | daf22367962f8c813777ad80da852ab1e6326482 /conf.d/project/lua.d/helloworld.lua | |
parent | 49122aa735427cfcd08f40035bf0354ae8c477f3 (diff) |
Add the ability to assert daemon log messages
Change-Id: I392dc677061223d4990a12517606e9ef9142d515
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/project/lua.d/helloworld.lua')
-rw-r--r-- | conf.d/project/lua.d/helloworld.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/conf.d/project/lua.d/helloworld.lua b/conf.d/project/lua.d/helloworld.lua index ccb1c67..dc883f2 100644 --- a/conf.d/project/lua.d/helloworld.lua +++ b/conf.d/project/lua.d/helloworld.lua @@ -32,6 +32,7 @@ end _AFT.addEventToMonitor("hello/anEvent") _AFT.addEventToMonitor("hello/anotherEvent", _callbackEvent) +_AFT.addLogToMonitor("test", "warning", "CtlDispatchEvent: fail to find uid=hello/anEvent in action event section") _AFT.testVerbStatusSuccess('testPingSuccess','hello', 'ping', {}) _AFT.testVerbResponseEquals('testPingSuccess','hello', 'ping', {}, "Some String") @@ -52,3 +53,9 @@ _AFT.testVerbStatusSuccess('testEventPush', 'hello', 'eventpush', {tag = 'evt', _AFT.testEvtReceived("testEvent", "hello/anEvent") _AFT.testEvtReceived("testEventCb", "hello/anotherEvent") + +_AFT.testLogReceived("LogReceived", "CtlDispatchEvent: fail to find uid=hello/anEvent in action event section") + +_AFT.testCustom("mytest", function() + _AFT.assertEquals(false, false) +end) |