mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 22:33:00 -04:00
This PR is a part of the tls-sni-01 removal plan described in #6849. This PR removes the tls-sni-01 challenge tests during the integration tests. The approach I used here is not to remove completely the existing test code, but simply editing it to use a http-01 challenge. Indeed: * the current integration tests are strongly coupled, and would require more modifications that it is worth, because ... * the certbot-ci project, that has already no tls-sni tests, will soon replace completely the current integration tests code.
32 lines
947 B
Bash
Executable file
32 lines
947 B
Bash
Executable file
#!/bin/bash
|
|
# Download and run Boulder instance for integration testing
|
|
set -xe
|
|
|
|
# Clone Boulder into a GOPATH-style directory structure even if Go isn't
|
|
# installed, because Boulder's docker-compose.yml file wll look for it there.
|
|
export GOPATH=${GOPATH:-$HOME/gopath}
|
|
BOULDERPATH=${BOULDERPATH:-$GOPATH/src/github.com/letsencrypt/boulder}
|
|
if [ ! -d ${BOULDERPATH} ]; then
|
|
git clone --depth=1 https://github.com/letsencrypt/boulder ${BOULDERPATH}
|
|
fi
|
|
|
|
cd ${BOULDERPATH}
|
|
|
|
docker-compose up -d boulder
|
|
|
|
set +x # reduce verbosity while waiting for boulder
|
|
for n in `seq 1 150` ; do
|
|
if curl http://localhost:4000/directory 2>/dev/null; then
|
|
break
|
|
else
|
|
sleep 1
|
|
fi
|
|
done
|
|
|
|
if ! curl http://localhost:4000/directory 2>/dev/null; then
|
|
echo "timed out waiting for boulder to start"
|
|
exit 1
|
|
fi
|
|
|
|
# Setup the DNS resolution used by boulder instance to docker host
|
|
curl -X POST -d '{"ip":"10.77.77.1"}' http://localhost:8055/set-default-ipv4
|