coverage: Improve testing
[src/app-framework-binder.git] / coverage / scripts / 05-hello-v2.sh
1 #!/bin/sh
2
3 $R/bin/afb-client -s -e $WSURL <<EOC
4 hello-v2 ping true
5 HELLO-v2 PING false
6 hello-v2 pIngNull true
7 hello-v2 PingBug true
8 hello-v2 PiNgJsOn {"well":"formed","json":[1,2,3,4.5,true,false,null,"oups"]}
9 hello-v2 call {"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}
10 hello-v2 callsync {"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}
11 hello-v2 subcall {"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}
12 hello-v2 subcall {"api":"hello","verb":"subcall","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
13 hello-v2 subcallsync {"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}
14 hello-v2 subcallsync {"api":"hello","verb":"subcall","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
15 hello-v2 subcall {"api":"hello","verb":"subcallsync","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
16 hello-v2 subcallsync {"api":"hello","verb":"subcallsync","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
17 hello-v2 eventadd {"tag":"ev1","name":"event-A"}
18 hello-v2 eventadd {"tag":"ev2","name":"event-B"}
19 hello-v2 eventpush {"tag":"ev1","data":[1,2,"hello"]}
20 hello-v2 eventpush {"tag":"ev2","data":{"item":0}}
21 hello-v2 eventsub {"tag":"ev2"}
22 hello-v2 eventpush {"tag":"ev1","data":[1,2,"hello"]}
23 hello-v2 eventpush {"tag":"ev2","data":{"item":0}}
24 hello-v2 eventsub {"tag":"ev1"}
25 hello-v2 subcall {"api":"hello","verb":"eventpush","args":{"tag":"ev1","data":[1,2,"hello"]}}
26 hello-v2 subcall {"api":"hello","verb":"eventpush","args":{"tag":"ev2","data":{"item":0}}}
27 hello-v2 subcallsync {"api":"hello","verb":"eventpush","args":{"tag":"ev1","data":[1,2,"hello"]}}
28 hello-v2 subcallsync {"api":"hello","verb":"eventpush","args":{"tag":"ev2","data":{"item":0}}}
29 hello-v2 eventunsub {"tag":"ev2"}
30 hello-v2 eventpush {"tag":"ev1","data":[1,2,"hello"]}
31 hello-v2 eventpush {"tag":"ev2","data":{"item":0}}
32 hello-v2 eventdel {"tag":"ev1"}
33 hello-v2 eventpush {"tag":"ev1","data":[1,2,"hello"]}
34 hello-v2 eventpush {"tag":"ev2","data":{"item":0}}
35 hello-v2 broadcast {"name":"xev","data":"true"}
36 hello-v2 broadcast {"tag":"ev2","data":"true"}
37 hello-v2 eventdel {"tag":"ev2"}
38 hello-v2 hasperm {"perm":"some-permissison"}
39 hello-v2 appid true
40 hello-v2 uid true
41 hello-v2 set-loa 1
42 hello-v2 set-loa 3
43 hello-v2 close true
44 hello-v2 setctx "some-text-0"
45 hello-v2 setctxif "some-text-1"
46 hello-v2 getctx 
47 hello-v2 setctx "some-text-2"
48 hello-v2 getctx
49 hello-v2 info
50 hello-v2 verbose {"level":2,"message":"hello"}
51 EOC
52