1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

tests/acme: check consistent account hash

This commit is contained in:
Sandro Jäckel 2024-02-07 14:59:50 +01:00
parent ff2a77caa3
commit 3f20904498
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -535,6 +535,12 @@ in {
check_fullchain(webserver, "http.example.test")
check_issuer(webserver, "http.example.test", "pebble")
# Perform account hash test
with subtest("Assert that account hash didn't unexpected change"):
hash = webserver.succeed("ls /var/lib/acme/.lego/accounts/")
print("Account hash: " + hash)
assert hash.strip() == "d590213ed52603e9128d"
# Perform renewal test
with subtest("Can renew certificates when they expire"):
hash = webserver.succeed("sha256sum /var/lib/acme/http.example.test/cert.pem")