aboutsummaryrefslogtreecommitdiffstats
path: root/coverage
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-07-24 14:44:25 +0200
committerJose Bollo <jose.bollo@iot.bzh>2018-07-25 15:12:48 +0200
commit1bc97132d598cf393d92cb80b0e3a1c13436f570 (patch)
tree5dbc0896c091edc3c68104097393e389b88a649b /coverage
parent9c2e6e45d4c9745c4702ac1992a0cb086e99fb0b (diff)
coverage: Add inet's API test case
Change-Id: I2a08d70b655478252de48fa2071cd4682aa4192d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'coverage')
-rw-r--r--coverage/scripts/07-inet.sh35
-rwxr-xr-xcoverage/scripts/run-test.sh2
2 files changed, 37 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
+
diff --git a/coverage/scripts/run-test.sh b/coverage/scripts/run-test.sh
index bac4da5e..caaec79f 100755
--- a/coverage/scripts/run-test.sh
+++ b/coverage/scripts/run-test.sh
@@ -108,6 +108,8 @@ $R/bin/afb-daemon-cov \
--call demat/ping:true \
--ws-server unix:$R/apis/ws/hello \
--ws-server unix:$R/apis/ws/salut \
+ --ws-server localhost:9595/salut \
+ --ws-client localhost:9595/salut2 \
--exec $R/scripts/run-parts.sh @p @t
exit 0