summaryrefslogtreecommitdiffstats
path: root/test/afb-test/etc/aft-agl-helloworld.json
blob: 94bd020f81d0e215133178ca8fae9343972efec2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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", "helloworld-event.lua" ]
        }
    },
    {
        "uid": "long",
        "info": "Launch the long session of tests",
        "action": "lua://AFT#_launch_test",
        "args": {
            "trace": "helloworld",
            "files": [ "helloworld.lua", "helloworld-event.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"
            }
        ]
    }]
}