2015-06-27 09:34:23 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
if [ "xxx$root" = "xxx" ];
|
|
|
|
|
then
|
2015-07-29 18:08:22 -04:00
|
|
|
# The -t is required on OS X. It provides a template file path for
|
|
|
|
|
# the kernel to use.
|
2015-07-29 17:54:35 -04:00
|
|
|
root="$(mktemp -d -t leitXXXX)"
|
2015-06-27 09:34:23 -04:00
|
|
|
echo "Root integration tests directory: $root"
|
|
|
|
|
fi
|
|
|
|
|
store_flags="--config-dir $root/conf --work-dir $root/work"
|
|
|
|
|
store_flags="$store_flags --logs-dir $root/logs"
|
2016-10-10 21:44:39 -04:00
|
|
|
tls_sni_01_port=5001
|
|
|
|
|
http_01_port=5002
|
|
|
|
|
export root store_flags tls_sni_01_port http_01_port
|
2015-06-27 09:34:23 -04:00
|
|
|
|
2016-04-13 19:45:54 -04:00
|
|
|
certbot_test () {
|
|
|
|
|
certbot_test_no_force_renew \
|
2016-02-08 21:39:59 -05:00
|
|
|
--renew-by-default \
|
|
|
|
|
"$@"
|
2015-06-27 09:34:23 -04:00
|
|
|
}
|
2016-02-05 20:13:30 -05:00
|
|
|
|
2016-04-13 19:45:54 -04:00
|
|
|
certbot_test_no_force_renew () {
|
|
|
|
|
certbot \
|
2016-02-05 20:13:30 -05:00
|
|
|
--server "${SERVER:-http://localhost:4000/directory}" \
|
|
|
|
|
--no-verify-ssl \
|
2016-10-10 21:44:39 -04:00
|
|
|
--tls-sni-01-port $tls_sni_01_port \
|
|
|
|
|
--http-01-port $http_01_port \
|
2016-12-22 11:24:08 -05:00
|
|
|
--manual-public-ip-logging-ok \
|
2016-02-05 20:13:30 -05:00
|
|
|
$store_flags \
|
2016-02-08 21:07:56 -05:00
|
|
|
--non-interactive \
|
2016-02-05 20:13:30 -05:00
|
|
|
--no-redirect \
|
|
|
|
|
--agree-tos \
|
|
|
|
|
--register-unsafely-without-email \
|
|
|
|
|
--debug \
|
2016-10-26 21:07:33 -04:00
|
|
|
-vv \
|
2016-02-05 20:13:30 -05:00
|
|
|
"$@"
|
|
|
|
|
}
|