From d24dfa5264b1a15837afbec40aa25cd4422d3eb2 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 9 Jul 2018 17:56:03 +0200 Subject: 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 --- conf.d/controller/lua.d/helloworld.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'conf.d/controller/lua.d/helloworld.lua') 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) -- cgit 1.2.3-korg