aboutsummaryrefslogtreecommitdiffstats
path: root/coverage/scripts/01-http.sh
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-06-22 18:30:43 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-06-22 18:30:43 +0200
commit57e09344b57d98515bf02165e0e33a1d43134af0 (patch)
treee135a770ca7d0357c3d3ef9c25b2987fa30681ab /coverage/scripts/01-http.sh
parent1f9e60c26a10bc4232b4827e85235dafcee17120 (diff)
coverage: Add coverage testflounder_5.99.1flounder/5.99.15.99.1
This is a first version of the coverage tests. Change-Id: Iec2feaba12c369b2ff5fb82e246fa0cad87813f5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'coverage/scripts/01-http.sh')
-rwxr-xr-xcoverage/scripts/01-http.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/coverage/scripts/01-http.sh b/coverage/scripts/01-http.sh
new file mode 100755
index 00000000..191318c0
--- /dev/null
+++ b/coverage/scripts/01-http.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+
+curl $URL/index.html
+curl $URL/marrus-orthocanna.jpg
+curl $URL/test.js
+curl $URL/icons/marrus-orthocanna.jpg
+
+curl $URL/fake-file.html
+
+curl "$URL/api/salut/ping?arg1=null&arg1=%22a+string%22"
+curl "$URL/api/hello/ping" \
+ -F image=@$R/www/marrus-orthocanna.jpg \
+ -F name=test
+curl -X POST "$URL/api/hello/ping" \
+ --header 'content-type: application/json' \
+ --data-binary '[null,3,{"hello":false,"salut":4.5},true]'