From 508bc9844cadb5a2248116578683f13181b5027a Mon Sep 17 00:00:00 2001 From: Dmitry <1315874+dniku@users.noreply.github.com> Date: Thu, 18 Jun 2026 09:44:45 +0100 Subject: [PATCH] Add eval-only test for Let's Encrypt DNS provider configuration --- test/blocks/ssl.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test/blocks/ssl.nix b/test/blocks/ssl.nix index 46780c2..28842c7 100644 --- a/test/blocks/ssl.nix +++ b/test/blocks/ssl.nix @@ -3,6 +3,28 @@ let pkgs' = pkgs; in { + letsencryptDnsProvider = shb.test.runNixOSTest { + name = "ssl-letsencrypt-dns-provider"; + + nodes.server = + { config, ... }: + { + imports = [ + shb.test.baseImports + ../../modules/blocks/ssl.nix + ]; + + shb.certs.certs.letsencrypt.dns = { + domain = "dns.example.com"; + dnsProvider = "namecheap"; + credentialsFile = "/run/this-file-does-not-exist-acme-env"; + adminEmail = "admin@example.com"; + }; + }; + + testScript = ""; + }; + test = shb.test.runNixOSTest { name = "ssl-test";