aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@mullvad.net>2022-06-20 14:05:05 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-06-20 14:05:05 +0200
commit1f5c622b8f8ea4839337c838797f89258894a9a3 (patch)
tree2be157c3608b3efb62513c9334639ef28149b7f1
parent001c6465e312af28b6b89ec2f3c1415c216e9c43 (diff)
hacky print consistency proofrgdd/proofs
-rw-r--r--go.mod2
-rw-r--r--integration/conf/client.config2
-rwxr-xr-xintegration/test.sh7
3 files changed, 11 insertions, 0 deletions
diff --git a/go.mod b/go.mod
index 579b196..103f241 100644
--- a/go.mod
+++ b/go.mod
@@ -2,6 +2,8 @@ module git.sigsum.org/log-go
go 1.15
+replace git.sigsum.org/sigsum-go => /home/rgdd/src/git.sigsum.org/sigsum-go
+
require (
git.sigsum.org/sigsum-go v0.0.7
github.com/golang/mock v1.4.4
diff --git a/integration/conf/client.config b/integration/conf/client.config
index fe89790..afd739e 100644
--- a/integration/conf/client.config
+++ b/integration/conf/client.config
@@ -11,3 +11,5 @@
cli_priv=
cli_domain_hint=
+cli_priv=29599fd81e266e161a9df977044dda89ab72fe9c8a98f23026f7fb63ee2feed9cda2517e17dcba133eb0e71bf77473f94a77d7e61b1de4e1e64adfd0938d6182
+cli_domain_hint=_sigsum_v0.testonly.rgdd.se
diff --git a/integration/test.sh b/integration/test.sh
index 38a00a9..7ddc066 100755
--- a/integration/test.sh
+++ b/integration/test.sh
@@ -213,6 +213,9 @@ function test_signed_tree_head() {
curl -s -w "%{http_code}" $log_url/get-tree-head-to-cosign \
>$log_dir/rsp
+ head --lines=-1 $log_dir/rsp >> /home/rgdd/output
+ echo "===" >> /home/rgdd/output
+
if [[ $(status_code) != 200 ]]; then
fail "$desc: http status code $(status_code)"
return
@@ -324,6 +327,10 @@ function test_consistency_proof() {
desc="GET get-consistency-proof (old_size $1, new_size $2)"
curl -s -w "%{http_code}" $log_url/get-consistency-proof/$1/$2 >$log_dir/rsp
+ echo "old_size=$1, new_size=$2" >> /home/rgdd/output
+ head --lines=-1 $log_dir/rsp >> /home/rgdd/output
+ echo "===" >> /home/rgdd/output
+
if [[ $(status_code) != 200 ]]; then
fail "$desc: http status code $(status_code)"
return