Compare commits
14 Commits
test-use_d
...
test-with-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d393b9b70 | ||
|
|
343853713f | ||
|
|
bcab17a2e4 | ||
|
|
ceb201b9c7 | ||
|
|
17c7d5c56b | ||
|
|
29aef60728 | ||
|
|
209b281a81 | ||
|
|
1ccb67ca87 | ||
|
|
7c87144cf7 | ||
|
|
2c79aa98f1 | ||
|
|
bbcde7974c | ||
|
|
36eabe0b07 | ||
|
|
04108a22c5 | ||
|
|
1be906c57f |
@@ -127,7 +127,6 @@ Boulder:
|
|||||||
|
|
||||||
.. code-block:: shell
|
.. code-block:: shell
|
||||||
|
|
||||||
export SERVER=http://localhost:4000/directory
|
|
||||||
source tests/integration/_common.sh
|
source tests/integration/_common.sh
|
||||||
|
|
||||||
Run the integration tests using:
|
Run the integration tests using:
|
||||||
|
|||||||
@@ -24,9 +24,18 @@ if [ "$BOULDER_INTEGRATION" = "v2" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
printf "\n10.77.77.77 boulder" | sudo tee -a /etc/hosts
|
||||||
|
|
||||||
set +x # reduce verbosity while waiting for boulder
|
set +x # reduce verbosity while waiting for boulder
|
||||||
until curl http://localhost:4000/directory 2>/dev/null; do
|
for n in `seq 1 300` ; do
|
||||||
echo waiting for boulder
|
if curl http://boulder:4000/directory 2>/dev/null ; then
|
||||||
sleep 1
|
break
|
||||||
|
else
|
||||||
|
echo waiting for boulder
|
||||||
|
sleep 1
|
||||||
|
fi
|
||||||
|
if [[ $n == 300 ]]; then
|
||||||
|
echo timed out waiting for boulder
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -16,9 +16,10 @@ certbot_test () {
|
|||||||
"$@"
|
"$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export SERVER=${SERVER:-http://boulder:4000/directory}
|
||||||
# Use local ACMEv2 endpoint if requested and SERVER isn't already set.
|
# Use local ACMEv2 endpoint if requested and SERVER isn't already set.
|
||||||
if [ "${BOULDER_INTEGRATION:-v1}" = "v2" -a -z "${SERVER:+x}" ]; then
|
if [ "${BOULDER_INTEGRATION:-v1}" = "v2" -a -z "${SERVER:+x}" ]; then
|
||||||
SERVER="http://localhost:4001/directory"
|
SERVER="http://boulder:4001/directory"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
certbot_test_no_force_renew () {
|
certbot_test_no_force_renew () {
|
||||||
@@ -30,7 +31,7 @@ certbot_test_no_force_renew () {
|
|||||||
--source $sources \
|
--source $sources \
|
||||||
--omit $omit_patterns \
|
--omit $omit_patterns \
|
||||||
$(command -v certbot) \
|
$(command -v certbot) \
|
||||||
--server "${SERVER:-http://localhost:4000/directory}" \
|
--server "${SERVER}" \
|
||||||
--no-verify-ssl \
|
--no-verify-ssl \
|
||||||
--tls-sni-01-port $tls_sni_01_port \
|
--tls-sni-01-port $tls_sni_01_port \
|
||||||
--http-01-port $http_01_port \
|
--http-01-port $http_01_port \
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# If domain begins with fail, fail the challenge by not completing it.
|
# If domain begins with fail, fail the challenge by not completing it.
|
||||||
if [[ "$CERTBOT_DOMAIN" != fail* ]]; then
|
if [[ "$CERTBOT_DOMAIN" != fail* ]]; then
|
||||||
curl -X POST 'http://localhost:8055/set-txt' -d \
|
curl -X POST "http://boulder:8055/set-txt" -d \
|
||||||
"{\"host\": \"_acme-challenge.$CERTBOT_DOMAIN.\", \
|
"{\"host\": \"_acme-challenge.$CERTBOT_DOMAIN.\", \
|
||||||
\"value\": \"$CERTBOT_VALIDATION\"}"
|
\"value\": \"$CERTBOT_VALIDATION\"}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
# If domain begins with fail, we didn't complete the challenge so there is
|
# If domain begins with fail, we didn't complete the challenge so there is
|
||||||
# nothing to clean up.
|
# nothing to clean up.
|
||||||
if [[ "$CERTBOT_DOMAIN" != fail* ]]; then
|
if [[ "$CERTBOT_DOMAIN" != fail* ]]; then
|
||||||
curl -X POST 'http://localhost:8055/clear-txt' -d \
|
curl -X POST "http://boulder:8055/clear-txt" -d \
|
||||||
"{\"host\": \"_acme-challenge.$CERTBOT_DOMAIN.\"}"
|
"{\"host\": \"_acme-challenge.$CERTBOT_DOMAIN.\"}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user