diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-07-24 14:44:25 +0200 |
---|---|---|
committer | Jose Bollo <jose.bollo@iot.bzh> | 2018-07-25 15:12:48 +0200 |
commit | 1bc97132d598cf393d92cb80b0e3a1c13436f570 (patch) | |
tree | 5dbc0896c091edc3c68104097393e389b88a649b /coverage/scripts/07-inet.sh | |
parent | 9c2e6e45d4c9745c4702ac1992a0cb086e99fb0b (diff) |
coverage: Add inet's API test case
Change-Id: I2a08d70b655478252de48fa2071cd4682aa4192d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'coverage/scripts/07-inet.sh')
-rw-r--r-- | coverage/scripts/07-inet.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/coverage/scripts/07-inet.sh b/coverage/scripts/07-inet.sh new file mode 100644 index 00000000..f4e8a297 --- /dev/null +++ b/coverage/scripts/07-inet.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +$R/bin/afb-client -s -e $WSURL <<EOC +salut2 ping true +SALUT2 PING false +salut2 pIngNull true +salut2 PingBug true +salut2 PiNgJsOn {"well":"formed","json":[1,2,3,4.5,true,false,null,"oups"]} +salut2 subcall {"api":"salut2","verb":"pingjson","args":[{"key1":"value1"}]} +salut2 subcall {"api":"salut2","verb":"subcall","args":{"api":"salut2","verb":"pingjson","args":[{"key1":"value1"}]}} +salut2 subcallsync {"api":"salut2","verb":"pingjson","args":[{"key1":"value1"}]} +salut2 subcallsync {"api":"salut2","verb":"subcall","args":{"api":"salut2","verb":"pingjson","args":[{"key1":"value1"}]}} +salut2 subcall {"api":"salut2","verb":"subcallsync","args":{"api":"salut2","verb":"pingjson","args":[{"key1":"value1"}]}} +salut2 subcallsync {"api":"salut2","verb":"subcallsync","args":{"api":"salut2","verb":"pingjson","args":[{"key1":"value1"}]}} +salut2 eventadd {"tag":"ev1","name":"event-A"} +salut2 eventadd {"tag":"ev2","name":"event-B"} +salut2 eventpush {"tag":"ev1","data":[1,2,"salut2"]} +salut2 eventpush {"tag":"ev2","data":{"item":0}} +salut2 eventsub {"tag":"ev2"} +salut2 eventpush {"tag":"ev1","data":[1,2,"salut2"]} +salut2 eventpush {"tag":"ev2","data":{"item":0}} +salut2 eventsub {"tag":"ev1"} +salut2 subcall {"api":"salut2","verb":"eventpush","args":{"tag":"ev1","data":[1,2,"salut2"]}} +salut2 subcall {"api":"salut2","verb":"eventpush","args":{"tag":"ev2","data":{"item":0}}} +salut2 subcallsync {"api":"salut2","verb":"eventpush","args":{"tag":"ev1","data":[1,2,"salut2"]}} +salut2 subcallsync {"api":"salut2","verb":"eventpush","args":{"tag":"ev2","data":{"item":0}}} +salut2 eventunsub {"tag":"ev2"} +salut2 eventpush {"tag":"ev1","data":[1,2,"salut2"]} +salut2 eventpush {"tag":"ev2","data":{"item":0}} +salut2 eventdel {"tag":"ev1"} +salut2 eventpush {"tag":"ev1","data":[1,2,"salut2"]} +salut2 eventpush {"tag":"ev2","data":{"item":0}} +salut2 eventdel {"tag":"ev2"} +EOC + |