From 7137e2d9b14a380bc7da317db67213bcdbe66241 Mon Sep 17 00:00:00 2001 From: 8000ff Date: Wed, 25 Jul 2018 10:46:54 +0200 Subject: Added callVerb function Very helpful for setup and/or teardown of a test scenario Change-Id: I068e779a6812bb89bc65646eda2c0271387513d0 Signed-off-by: 8000ff --- conf.d/controller/lua.d/aft.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'conf.d/controller') diff --git a/conf.d/controller/lua.d/aft.lua b/conf.d/controller/lua.d/aft.lua index 4d0fac7..b229e39 100644 --- a/conf.d/controller/lua.d/aft.lua +++ b/conf.d/controller/lua.d/aft.lua @@ -315,6 +315,10 @@ local function assertVerbCallParameters(src, api, verb, args) _AFT.assertIsTable(args, "Arguments must use LUA Table (event empty)") end +function _AFT.callVerb(api, verb, args) + AFB:servsync(_AFT.context, api, verb, args) +end + function _AFT.assertVerb(api, verb, args, cb) assertVerbCallParameters(_AFT.context, api, verb, args) local err,responseJ = AFB:servsync(_AFT.context, api, verb, args) -- cgit 1.2.3-korg