diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-30 17:39:26 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-30 17:39:26 +0100 |
commit | 317b64b20bb44c37f6aef0008e65b18ab806cd51 (patch) | |
tree | fca396681b2c1de484846c4b987304cd669469a9 /server/testdata/cmd | |
parent | 9e6c301a830ef2675a2b2dab08002723b1315af4 (diff) |
added and moved test data
Diffstat (limited to 'server/testdata/cmd')
-rw-r--r-- | server/testdata/cmd/config | 11 | ||||
-rwxr-xr-x | server/testdata/cmd/get-anchors | 8 | ||||
-rwxr-xr-x | server/testdata/cmd/get-consistency-proof | 15 | ||||
-rwxr-xr-x | server/testdata/cmd/get-entries | 15 | ||||
-rwxr-xr-x | server/testdata/cmd/get-proof-by-hash | 15 | ||||
-rwxr-xr-x | server/testdata/cmd/get-sth | 8 |
6 files changed, 0 insertions, 72 deletions
diff --git a/server/testdata/cmd/config b/server/testdata/cmd/config deleted file mode 100644 index 8138319..0000000 --- a/server/testdata/cmd/config +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -export base_url='localhost:6965/st/v1' - -function info() { - echo "[Info] $@" 1>&2 -} - -function newline() { - echo "" -} diff --git a/server/testdata/cmd/get-anchors b/server/testdata/cmd/get-anchors deleted file mode 100755 index def3595..0000000 --- a/server/testdata/cmd/get-anchors +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -set -eo pipefail -source config - -info "downloading trust anchors" -curl -G $base_url/get-anchors -newline diff --git a/server/testdata/cmd/get-consistency-proof b/server/testdata/cmd/get-consistency-proof deleted file mode 100755 index 206cb4c..0000000 --- a/server/testdata/cmd/get-consistency-proof +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -set -eo pipefail -source config - -first="1" -second="2" -if [[ ! -z $1 ]] && [[ ! -z $2 ]]; then - first=$1 - second=$2 -fi - -info "sending get-consistency-proof request" -curl -G -d "first=$first" -d "second=$second" $base_url/get-consistency-proof -newline diff --git a/server/testdata/cmd/get-entries b/server/testdata/cmd/get-entries deleted file mode 100755 index b0075ab..0000000 --- a/server/testdata/cmd/get-entries +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -set -eo pipefail -source config - -first=0 -second=0 -if [[ ! -z $1 ]] && [[ ! -z $2 ]]; then - first=$1 - second=$2 -fi - -info "downloading entries [$first, $second]" -curl -G -d "start=$first" -d "end=$second" $base_url/get-entries -newline diff --git a/server/testdata/cmd/get-proof-by-hash b/server/testdata/cmd/get-proof-by-hash deleted file mode 100755 index 9d3221e..0000000 --- a/server/testdata/cmd/get-proof-by-hash +++ /dev/null @@ -1,15 +0,0 @@ -#!/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 diff --git a/server/testdata/cmd/get-sth b/server/testdata/cmd/get-sth deleted file mode 100755 index e5881a9..0000000 --- a/server/testdata/cmd/get-sth +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -set -eo pipefail -source config - -info "fetching signed tree head" -curl -G $base_url/get-sth -newline |