From 6460512ea04190c0619e9744e085d52b66517a6c Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 10 Jul 2018 16:27:19 +0200 Subject: Began Mock API implementation WIP Change-Id: I30782e272cad5da75950d7983f9504dac6d24676 Signed-off-by: Romain Forlot --- conf.d/project/etc/test-fapi.json | 59 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 conf.d/project/etc/test-fapi.json (limited to 'conf.d/project') diff --git a/conf.d/project/etc/test-fapi.json b/conf.d/project/etc/test-fapi.json new file mode 100644 index 0000000..283bceb --- /dev/null +++ b/conf.d/project/etc/test-fapi.json @@ -0,0 +1,59 @@ +{ + "id": "http://iot.bzh/download/public/schema/json/ctl-schema.json#", + "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json#", + "metadata": { + "uid": "Test", + "version": "1.0", + "api": "test", + "info": "Configuration to test an emulated api", + "require": [ + "low-can" + ] + }, + "onload": { + "uid": "launch_all_tests", + "info": "Launch all the tests", + "action": "lua://AFT#_launch_test", + "args": { + "trace": "low-can", + "files": "fapi.lua" + } + }, + "fapis": [{ + "uid": "low-can", + "info": "Faked low-can API", + "libs": "low-can_fapi.lua", + "verbs": [ + { + "uid": "subscribe", + "info": "Subscribe to CAN signals events", + "action": "lua://low-can#_subscribe" + }, + { + "uid": "unsubscribe", + "info": "Unsubscribe previously suscribed signals.", + "action": "lua://low-can#_unsubscribe" + }, + { + "uid": "get", + "info": "get a current value of CAN message", + "action": "lua://low-can#_get" + }, + { + "uid": "list", + "info": "get a supported CAN message list", + "action": "lua://low-can#_list" + }, + { + "uid": "auth", + "info": "Authenticate session to be raise Level Of Assurance.", + "action": "lua://low-can#_auth" + }, + { + "uid": "write", + "info": "Write a CAN messages to the CAN bus.", + "action": "lua://low-can#_write" + } + ] + }] +} -- cgit 1.2.3-korg