1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 11:02:05 +00:00

Merge pull request #125770 from Mewp/acme-fix-tests

nixos/acme: Remove an incorrect assertion from tests
This commit is contained in:
Luke Granger-Brown 2021-06-06 19:11:04 +01:00 committed by GitHub
commit b45f157f03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -392,14 +392,11 @@ in import ./make-test-python.nix ({ lib, ... }: {
# Check the key hash before and after adding an alias. It should not change.
# The previous test reverts the ed384 change
webserver.wait_for_unit("acme-finished-a.example.test.target")
keyhash_old = webserver.succeed("md5sum /var/lib/acme/a.example.test/key.pem")
switch_to(webserver, "nginx-aliases")
webserver.wait_for_unit("acme-finished-a.example.test.target")
check_issuer(webserver, "a.example.test", "pebble")
check_connection(client, "a.example.test")
check_connection(client, "b.example.test")
keyhash_new = webserver.succeed("md5sum /var/lib/acme/a.example.test/key.pem")
assert keyhash_old == keyhash_new
with subtest("Can request certificates for vhost + aliases (apache-httpd)"):
try: