aboutsummaryrefslogtreecommitdiff
path: root/server/testdata/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'server/testdata/cmd')
-rw-r--r--server/testdata/cmd/config11
-rwxr-xr-xserver/testdata/cmd/get-anchors8
-rwxr-xr-xserver/testdata/cmd/get-consistency-proof15
-rwxr-xr-xserver/testdata/cmd/get-entries15
-rwxr-xr-xserver/testdata/cmd/get-proof-by-hash15
-rwxr-xr-xserver/testdata/cmd/get-sth8
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