summaryrefslogtreecommitdiffstats
path: root/test/afb-test/etc/aft-selftest.json
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-09-16 15:30:26 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-09-25 16:35:16 +0200
commitd2fbdb56883cb935b77d3dc04b5ab2f5d89a7b6f (patch)
tree071af8752a4be143818079e81c196c794be8a3bd /test/afb-test/etc/aft-selftest.json
parentca9049abfcf30e4e7f817441b9b1eff3936d5bf7 (diff)
Rename test service api to be more discriminant.
Using aftest and aft-aftest api name to self test was difficult because of searching file using the binder process name which could be the same although api name were diffirent. Change-Id: I20ef554d54ddc1cb5bd169d462558d78f2769668 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'test/afb-test/etc/aft-selftest.json')
-rw-r--r--test/afb-test/etc/aft-selftest.json69
1 files changed, 69 insertions, 0 deletions
diff --git a/test/afb-test/etc/aft-selftest.json b/test/afb-test/etc/aft-selftest.json
new file mode 100644
index 0000000..5a3f1dd
--- /dev/null
+++ b/test/afb-test/etc/aft-selftest.json
@@ -0,0 +1,69 @@
+{
+ "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": "aft-selftest",
+ "info": "Binding made to test other bindings",
+ "require": [
+ "low-can"
+ ]
+ },
+ "testVerb": {
+ "uid": "launch_all_tests",
+ "info": "Launch all the tests",
+ "action": "lua://AFT#_launch_test",
+ "args": {
+ "trace": "low-can",
+ "files": [ "aftTest.lua", "mapi_tests.lua" ]
+ }
+ },
+ "mapis": [{
+ "uid": "low-can",
+ "info": "Faked low-can API",
+ "libs": "mapi_low-can.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"
+ }
+ ],
+ "events": [{
+ "uid": "low-can/diagnostic_messages",
+ "action": "lua://AFT#_evt_catcher_"
+ },{
+ "uid": "low-can/messages_engine_speed",
+ "action": "lua://AFT#_evt_catcher_"
+ },{
+ "uid": "low-can/messages_vehicle_speed",
+ "action": "lua://AFT#_evt_catcher_"
+ }]
+ }]
+}