aboutsummaryrefslogtreecommitdiff
path: root/server/testdata/cmd/get-proof-by-hash
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-27 10:53:46 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-27 10:53:46 +0100
commit96a5021d586a20cbf00eb7f74ca08084bbaf048a (patch)
treec1e18bc03852c47e04de81ac34241ed58cd3adca /server/testdata/cmd/get-proof-by-hash
parent550f7878bf509cc825726e6d95506e62857d48c9 (diff)
added additional interactive test scripts
Diffstat (limited to 'server/testdata/cmd/get-proof-by-hash')
-rwxr-xr-xserver/testdata/cmd/get-proof-by-hash15
1 files changed, 15 insertions, 0 deletions
diff --git a/server/testdata/cmd/get-proof-by-hash b/server/testdata/cmd/get-proof-by-hash
new file mode 100755
index 0000000..9d3221e
--- /dev/null
+++ b/server/testdata/cmd/get-proof-by-hash
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -eo pipefail
+source config
+
+tree_size=2
+hash_b64="Fl5eY9cAOz9A9c9j3Uibia3YfBxeGH5KQJg5BMIqNrA="
+if [[ ! -z $1 ]] && [[ ! -z $2 ]]; then
+ tree_size=$1
+ hash_b64=$2
+fi
+
+info "fetching proof($hash_b64) against size $tree_size"
+curl -G -d "tree_size=$tree_size" -d "hash=$hash_b64" $base_url/get-proof-by-hash
+newline