summaryrefslogtreecommitdiffstats
path: root/conf.d/project/lua.d
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-07-03 18:06:01 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-07-10 17:12:14 +0200
commit1843e4ece852755cec7778db60629d2aea8536a0 (patch)
tree3cd49397c31f891ca6f208160fbb3188b785b2b3 /conf.d/project/lua.d
parent1ec0a201bedf5299ba157322508d438b426cf8f6 (diff)
Remove log monitoring capability
Tests should not rely on binder logs messages. Change-Id: Ic274cb5600924100dde48fb7d3d31fc367b1c5cd Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/project/lua.d')
-rw-r--r--conf.d/project/lua.d/aft.lua11
1 files changed, 1 insertions, 10 deletions
diff --git a/conf.d/project/lua.d/aft.lua b/conf.d/project/lua.d/aft.lua
index babd5c1..62c1de7 100644
--- a/conf.d/project/lua.d/aft.lua
+++ b/conf.d/project/lua.d/aft.lua
@@ -71,10 +71,6 @@ function _AFT.addEventToMonitor(eventName, callback)
_AFT.monitored_events[eventName] = { cb = callback, receivedCount = 0 }
end
-function _AFT.addLogToMonitor(api, type, message, callback)
- _AFT.monitored_events[message] = { api = api, type = type, cb = callback, receivedCount = 0 }
-end
-
function _AFT.incrementCount(dict)
if dict.receivedCount then
dict.receivedCount = dict.receivedCount + 1
@@ -322,23 +318,18 @@ local luaunit_list_of_functions = {
local _AFT_list_of_funcs = {
-- AF Binder generic assertions
{ 'addEventToMonitor', 'resetEventReceivedCount' },
- { 'addLogToMonitor', 'resetLogReceivedCount' },
{ 'assertVerb', 'assertVerbStatusSuccess' },
{ 'assertVerb', 'assertVerbResponseEquals' },
{ 'assertVerb', 'assertVerbCb' },
{ 'assertVerbError', 'assertVerbStatusError' },
{ 'assertVerbError', 'assertVerbResponseEqualsError' },
{ 'assertVerbError', 'assertVerbCbError' },
- { 'assertEvtReceived', 'assertLogReceived' },
- { 'assertEvtNotReceived', 'assertLogNotReceived' },
{ 'testVerb', 'testVerbStatusSuccess' },
{ 'testVerb', 'testVerbResponseEquals' },
{ 'testVerb', 'testVerbCb' },
{ 'testVerbError', 'testVerbStatusError' },
{ 'testVerbError', 'testVerbResponseEqualsError' },
{ 'testVerbError', 'testVerbCbError' },
- { 'testEvtReceived', 'testLogReceived' },
- { 'testEvtNotReceived', 'testLogNotReceived' },
}
-- Import all luaunit assertion function to _AFT object
@@ -364,7 +355,7 @@ function _launch_test(context, args)
_AFT.setOutputFile("var/test_results.log")
AFB:servsync(_AFT.context, "monitor", "set", { verbosity = "debug" })
- AFB:servsync(_AFT.context, "monitor", "trace", { add = { api = args.trace, request = "vverbose", daemon = "vverbose", event = "push_after" }})
+ AFB:servsync(_AFT.context, "monitor", "trace", { add = { api = args.trace, request = "vverbose", event = "push_after" }})
if args.files and type(args.files) == 'table' then
for _,f in pairs(args.files) do
dofile('var/'..f)