summaryrefslogtreecommitdiffstats
path: root/test/afb-test/etc/aft-agl-helloworld.json
diff options
context:
space:
mode:
authorFrederic Marec <frederic.marec@iot.bzh>2019-07-11 10:13:44 +0200
committerFrederic Marec <frederic.marec@iot.bzh>2019-07-12 10:07:33 +0200
commit96e1db2374dfc27a60f2a0152c71dd9889538b18 (patch)
tree19367c424432a6ed13ec4f9feaacd6ea7b7a5b4c /test/afb-test/etc/aft-agl-helloworld.json
parent4edf6cc629af725548430ea75af25fe9ca76ed33 (diff)
Change test example following afb-test treehalibut_7.99.3halibut/7.99.37.99.3
Change test repository tree Add mapi example Bug-AGL: SPEC-2040 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh> Change-Id: I1cd6926135f7f73dd60c29496fc6aa830ec620f5
Diffstat (limited to 'test/afb-test/etc/aft-agl-helloworld.json')
-rw-r--r--test/afb-test/etc/aft-agl-helloworld.json53
1 files changed, 53 insertions, 0 deletions
diff --git a/test/afb-test/etc/aft-agl-helloworld.json b/test/afb-test/etc/aft-agl-helloworld.json
new file mode 100644
index 0000000..8742003
--- /dev/null
+++ b/test/afb-test/etc/aft-agl-helloworld.json
@@ -0,0 +1,53 @@
+{
+ "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-helloworld",
+ "info": "Helloworld binding",
+ "require": [
+ "helloworld"
+ ]
+ },
+ "testVerb": [{
+ "uid": "short",
+ "info": "Launch the short session of tests",
+ "action": "lua://AFT#_launch_test",
+ "args": {
+ "trace": "helloworld",
+ "files": "helloworld.lua"
+ }
+ },
+ {
+ "uid": "long",
+ "info": "Launch the long session of tests",
+ "action": "lua://AFT#_launch_test",
+ "args": {
+ "trace": "helloworld",
+ "files": [ "helloworld.lua", "mapi_tests.lua" ]
+ }
+ }],
+ "mapis": [{
+ "uid": "mapi-helloworld",
+ "info": "Faked helloworld API",
+ "libs": "mapi_helloworld.lua",
+ "verbs": [
+ {
+ "uid": "subscribe",
+ "info": "Subscribe to events",
+ "action": "lua://mapi-helloworld#_subscribe"
+ },
+ {
+ "uid": "unsubscribe",
+ "info": "Unsubscribe previously suscribed events.",
+ "action": "lua://mapi-helloworld#_unsubscribe"
+ },
+ {
+ "uid": "list",
+ "info": "get message list",
+ "action": "lua://mapi-helloworld#_list"
+ }
+ ]
+ }]
+}