summaryrefslogtreecommitdiff
path: root/src/hub/test-client
diff options
context:
space:
mode:
authorMarkus Grüneis <gimpf@gimpf.org>2014-10-22 18:55:33 +0200
committerMarkus Grüneis <gimpf@gimpf.org>2014-10-22 18:55:33 +0200
commit993e24ed33066e75d6f971cb7ec36a11603dd79e (patch)
tree664b0653834326f4823734ca3b1a2650cff5992f /src/hub/test-client
parenthub: prepare db schema update (diff)
hub: add basic POST support
Diffstat (limited to 'src/hub/test-client')
-rwxr-xr-xsrc/hub/test-client10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/hub/test-client b/src/hub/test-client
index c9d7b91..0696bc5 100755
--- a/src/hub/test-client
+++ b/src/hub/test-client
@@ -1,8 +1,12 @@
#!/bin/sh
echo import sample.json
-time socat file:../../dat/sample.json,rdonly unix-client:/run/sfive/pipe
-
+socat file:../../dat/sample.json,rdonly unix-client:/run/sfive/pipe
echo show query result
-wget -q -S -O - 'http://localhost:8000/updates?from=2013-10-24T05:00:00Z&to=2013-10-24T00:05:20Z
+wget -q -S -O - 'http://localhost:8000/updates?from=2013-10-24T05:00:00Z&to=2013-10-24T00:05:20Z'
+
+echo '\npost update'
+wget --post-file='../../dat/sample-post.json' 'http://localhost:8000/updates'
+
+echo '\ndone'