mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
* Start of combined manual/script plugin * Return str from hooks.execute, not bytes * finish manual/script rewrite * delete old manual and script plugins * manually specify we want chall.token * use consistent quotes * specify chall for uri * s/script/hook * fix spacing on instructions * remove unneeded response argument * make achall more helpful * simplify perform * remove old test files * add start of manual_tests * fix ParseTest.test_help * stop using manual_test_mode in cli tests * Revert "make achall more helpful" This reverts commit54b01cea30. * use bad response/validation methods on achalls * simplify perform and cleanup environment * finish manual tests * Add HTTP manual hook integration test * add manual http scripts * Add manual DNS script integration test * remove references to the script plugin * they're hooks, not scripts * add --manual-public-ip-logging-ok to integration tests * use --pref-chall for dns integration * does dns work? * validate hooks * test hook validation * Revert "does dns work?" This reverts commit1224cc2961. * busy wait in manual-http-auth * remove DNS script test for now * Fix challenge prefix and add trailing . * Add comment about universal_newlines * Fix typo from0464ba2c4* fix nits and typos * Generalize HookCOmmandNotFound error * Add verify_exe_exists * Don't duplicate code in hooks.py * Revert changes to hooks.py * Use consistent hook error messages
37 lines
977 B
Bash
Executable file
37 lines
977 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ "xxx$root" = "xxx" ];
|
|
then
|
|
# The -t is required on OS X. It provides a template file path for
|
|
# the kernel to use.
|
|
root="$(mktemp -d -t leitXXXX)"
|
|
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"
|
|
tls_sni_01_port=5001
|
|
http_01_port=5002
|
|
export root store_flags tls_sni_01_port http_01_port
|
|
|
|
certbot_test () {
|
|
certbot_test_no_force_renew \
|
|
--renew-by-default \
|
|
"$@"
|
|
}
|
|
|
|
certbot_test_no_force_renew () {
|
|
certbot \
|
|
--server "${SERVER:-http://localhost:4000/directory}" \
|
|
--no-verify-ssl \
|
|
--tls-sni-01-port $tls_sni_01_port \
|
|
--http-01-port $http_01_port \
|
|
--manual-public-ip-logging-ok \
|
|
$store_flags \
|
|
--non-interactive \
|
|
--no-redirect \
|
|
--agree-tos \
|
|
--register-unsafely-without-email \
|
|
--debug \
|
|
-vv \
|
|
"$@"
|
|
}
|