summaryrefslogtreecommitdiff
path: root/src/hub/test-client
diff options
context:
space:
mode:
Diffstat (limited to 'src/hub/test-client')
-rwxr-xr-xsrc/hub/test-client14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/hub/test-client b/src/hub/test-client
index 859b2da..f6c2c18 100755
--- a/src/hub/test-client
+++ b/src/hub/test-client
@@ -1,15 +1,23 @@
#!/bin/sh
echo pipe: import sample.json
+echo ------------------------
socat file:../../dat/sample.json,rdonly unix-client:/run/sfive/pipe
echo pipe-gram: import sample-gram.json
+echo ----------------------------------
while read x; do echo "$x" | socat stdio unix-sendto:/run/sfive/pipegram; done < ../../dat/sample-gram.json
echo show query result
-wget -q -S -O - 'http://localhost:8000/updates?from=2013-10-24T05:00:00Z&to=2013-10-24T00:05:20Z'
+echo -----------------
+curl -i 'http://localhost:8000/updates?from=2013-10-24T05:00:00Z&to=2013-10-24T00:05:20Z'
echo '\npost update'
-wget -q -S -O - --post-file='../../dat/sample-post.json' 'http://localhost:8000/updates'
+echo ------------
+curl -i --data @../../dat/sample-post.json 'http://localhost:8000/updates'
-echo '\ndone'
+echo show stats
+echo ----------
+curl -i 'http://localhost:8000/stats'
+
+echo '\n\ndone'