Compare commits

...

14 Commits

Author SHA1 Message Date
Jacob Hoffman-Andrews
5d393b9b70 Back out some noise. 2018-05-08 19:13:16 -07:00
Jacob Hoffman-Andrews
343853713f add error 2018-05-08 19:01:33 -07:00
Jacob Hoffman-Andrews
bcab17a2e4 Longer wait. 2018-05-08 19:00:37 -07:00
Jacob Hoffman-Andrews
ceb201b9c7 Fix hosts. 2018-05-08 18:51:24 -07:00
Jacob Hoffman-Andrews
17c7d5c56b Cat etc/hosts 2018-05-08 18:43:14 -07:00
Jacob Hoffman-Andrews
29aef60728 Add logs. 2018-05-08 18:33:57 -07:00
Jacob Hoffman-Andrews
209b281a81 Add -v and upper bound. 2018-05-08 18:33:21 -07:00
Jacob Hoffman-Andrews
1ccb67ca87 Remove dev null output. 2018-05-08 16:54:47 -07:00
Jacob Hoffman-Andrews
7c87144cf7 Replace IP with hostname. 2018-05-08 16:43:41 -07:00
Jacob Hoffman-Andrews
2c79aa98f1 Soft quotes. 2018-05-08 16:28:55 -07:00
Jacob Hoffman-Andrews
bbcde7974c No unbuond variables. 2018-05-08 16:21:11 -07:00
Jacob Hoffman-Andrews
36eabe0b07 More fixes. 2018-05-08 15:59:22 -07:00
Jacob Hoffman-Andrews
04108a22c5 Missed one. 2018-05-08 14:57:17 -07:00
Jacob Hoffman-Andrews
1be906c57f Switch to Boulder IP address. 2018-05-08 14:37:06 -07:00
5 changed files with 17 additions and 8 deletions

View File

@@ -127,7 +127,6 @@ Boulder:
.. code-block:: shell
export SERVER=http://localhost:4000/directory
source tests/integration/_common.sh
Run the integration tests using:

View File

@@ -24,9 +24,18 @@ if [ "$BOULDER_INTEGRATION" = "v2" ]; then
fi
docker-compose up -d
printf "\n10.77.77.77 boulder" | sudo tee -a /etc/hosts
set +x # reduce verbosity while waiting for boulder
until curl http://localhost:4000/directory 2>/dev/null; do
echo waiting for boulder
sleep 1
for n in `seq 1 300` ; do
if curl http://boulder:4000/directory 2>/dev/null ; then
break
else
echo waiting for boulder
sleep 1
fi
if [[ $n == 300 ]]; then
echo timed out waiting for boulder
exit 1
fi
done

View File

@@ -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.
if [ "${BOULDER_INTEGRATION:-v1}" = "v2" -a -z "${SERVER:+x}" ]; then
SERVER="http://localhost:4001/directory"
SERVER="http://boulder:4001/directory"
fi
certbot_test_no_force_renew () {
@@ -30,7 +31,7 @@ certbot_test_no_force_renew () {
--source $sources \
--omit $omit_patterns \
$(command -v certbot) \
--server "${SERVER:-http://localhost:4000/directory}" \
--server "${SERVER}" \
--no-verify-ssl \
--tls-sni-01-port $tls_sni_01_port \
--http-01-port $http_01_port \

View File

@@ -2,7 +2,7 @@
# If domain begins with fail, fail the challenge by not completing it.
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.\", \
\"value\": \"$CERTBOT_VALIDATION\"}"
fi

View File

@@ -3,6 +3,6 @@
# If domain begins with fail, we didn't complete the challenge so there is
# nothing to clean up.
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.\"}"
fi