1
0

Test if symlinks get created on RENEW_SKIP

This commit is contained in:
Nicolas Duchon 2020-10-11 20:26:41 +02:00
parent e63b22722e
commit b07dbc5468
No known key found for this signature in database
GPG Key ID: EA3151C66A4D79E7
2 changed files with 18 additions and 0 deletions

View File

@ -10,6 +10,10 @@ The link is pointing to the file ./le3.wtf/fullchain.pem
Symlink to le1.wtf certificate has been removed.
Symlink to le2.wtf certificate has been removed.
Symlink to le3.wtf certificate has been removed.
Restarted test web server for le3.wtf
Symlink to le3.wtf certificate has been generated.
The link is pointing to the file ./le3.wtf/fullchain.pem
Symlink to le3.wtf certificate has been removed.
Started test web server for le1.wtf,le2.wtf,le3.wtf
Symlink to le3.wtf certificate has been generated.
The link is pointing to the file ./le1.wtf/fullchain.pem

View File

@ -74,6 +74,20 @@ docker exec "$le_container_name" [ -L "/etc/nginx/certs/${domains[2]}.crt" ] \
docker stop "symlink-le3" > /dev/null
wait_for_symlink_rm "${domains[2]}" "$le_container_name"
# Start the nginx containers for ${domains[2]} again,
# and check if the corresponding symlink is re-created.
docker run --rm -d \
--name "symlink-le3" \
-e "VIRTUAL_HOST=${domains[2]}" \
-e "LETSENCRYPT_HOST=${domains[2]}" \
--network boulder_bluenet \
nginx:alpine > /dev/null && echo "Restarted test web server for ${domains[2]}"
wait_for_symlink "${domains[2]}" "$le_container_name"
# Stop the nginx containers for ${domains[2]} silently and wait for symlink removal.
docker stop "symlink-le3" > /dev/null
wait_for_symlink_rm "${domains[2]}" "$le_container_name"
# Move ${domains[2]} to a san certificate with ${domains[0]} and ${domains[1]}
docker run --rm -d \
--name "symlink-le1-le2-le3" \