From: Felix Dörre Date: Tue, 28 Mar 2017 08:38:26 +0000 (+0200) Subject: add: utility for minimal testing X-Git-Url: http://www.controwiki.de/?a=commitdiff_plain;h=e55c9b41481003f4a3f371a863e66d163b92a19f;p=infra.git add: utility for minimal testing The script tests a finished Gigi installation by checking if it returns any page on /. The root certificate is downloaded from /roots?pem. Change-Id: I91d91761b82bb2b0425cd3c2ffcc746a59db51a3 --- diff --git a/manager/quick-test b/manager/quick-test new file mode 100755 index 0000000..1165c4f --- /dev/null +++ b/manager/quick-test @@ -0,0 +1,12 @@ +#!/bin/bash +set -e + +if ! [[ -f $1/config ]]; then + printf "Fail: config not found\n" >&2 + exit 1 +fi +source "$1/config" + +wget --no-hsts -q -O root.crt http://www.$domain/roots?pem +wget -q --ca-certificate=root.crt https://www.$domain -O /dev/null +printf "Validation successful\n"