diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-07-09 17:56:03 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-07-10 17:12:30 +0200 |
commit | d24dfa5264b1a15837afbec40aa25cd4422d3eb2 (patch) | |
tree | d114f176afe99e3b8bb1c297c8ea4c10a9ec9b1b /conf.d/controller/lua.d/helloworld.lua | |
parent | 75c0e78bd1214e5a62115ca4f4692287e238d954 (diff) |
2 ways for set up'before' and 'after' function
Either you specify the functions as a function argument
either you use a specific _AFT functions meant to add the
function to the test instance.
Change-Id: I4ccd467c70d2181d12edb354f80db6c233b8769d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/controller/lua.d/helloworld.lua')
-rw-r--r-- | conf.d/controller/lua.d/helloworld.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/conf.d/controller/lua.d/helloworld.lua b/conf.d/controller/lua.d/helloworld.lua index 1c2ec1d..17cfa84 100644 --- a/conf.d/controller/lua.d/helloworld.lua +++ b/conf.d/controller/lua.d/helloworld.lua @@ -32,7 +32,6 @@ end _AFT.addEventToMonitor("hello/anEvent") _AFT.addEventToMonitor("hello/anotherEvent", _callbackEvent) -_AFT.addLogToMonitor("hello", "warning", "verbose called for My Warning message!") _AFT.testVerbStatusSuccess('testPingSuccess','hello', 'ping', {}) _AFT.testVerbResponseEquals('testPingSuccessAndResponse','hello', 'ping', {}, "Some String") @@ -57,8 +56,6 @@ _AFT.testVerbStatusSuccess('testGenerateWarning', 'hello', 'verbose', {level = 4 _AFT.testEvtReceived("testanEventReceived", "hello/anEvent") _AFT.testEvtReceived("testanotherEventReceived", "hello/anotherEvent") -_AFT.testLogReceived("LogReceived", "verbose called for My Warning message!") - -_AFT.testCustom("mytest", function() +_AFT.describe("mytest", function() _AFT.assertEquals(false, false) end) |