Add eval-only test for Let's Encrypt DNS provider configuration

This commit is contained in:
Dmitry 2026-06-18 09:44:45 +01:00 committed by Pierre Penninckx
parent bd9575783f
commit 508bc9844c

View file

@ -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";