rework stirling-pdf to be more generic with test

This commit is contained in:
2025-07-31 10:40:31 +07:00
parent c5c8e0050d
commit 5109c3f4fa
6 changed files with 88 additions and 34 deletions

View File

@@ -0,0 +1,34 @@
{
...
}:
{
name = "service-stirling-pdf";
clan = {
directory = ./.;
inventory = {
machines.server = { };
instances = {
actual-budget-test = {
module.name = "@clan/stirling-pdf";
module.input = "self";
roles.default.machines."server".settings = { };
};
};
};
};
nodes = {
server = { };
};
testScript = ''
start_all()
server.wait_for_unit("stirling-pdf")
server.succeed("systemctl status stirling-pdf")
'';
}