nixosTests.tranquil-pds: init

This commit is contained in:
nelind 2026-05-28 23:45:41 +02:00
commit 46a9ac2071
No known key found for this signature in database
2 changed files with 36 additions and 0 deletions

View file

@ -1707,6 +1707,7 @@ in
tracee = handleTestOn [ "x86_64-linux" ] ./tracee.nix { };
traefik = runTestOn [ "aarch64-linux" "x86_64-linux" ] ./traefik.nix;
trafficserver = runTest ./trafficserver.nix;
tranquil-pds = runTest ./tranquil-pds.nix;
transfer-sh = runTest ./transfer-sh.nix;
transmission_4 = runTest ./transmission.nix;
trezord = runTest ./trezord.nix;

View file

@ -0,0 +1,35 @@
{ lib, ... }:
{
name = "tranquil-pds";
nodes.machine =
{ pkgs, ... }:
{
services.tranquil-pds = {
enable = true;
database.createLocally = true;
settings = {
server = {
hostname = "pds";
port = 8080;
};
secrets = {
allow_insecure = true;
jwt_secret = "test-jwt-secret-must-be-32-chars-long";
dpop_secret = "test-dpop-secret-must-be-32-chars-long";
master_key = "test-master-key-must-be-32-chars-long";
};
};
};
};
testScript = ''
machine.wait_for_unit("tranquil-pds.service")
machine.wait_for_open_port(8080)
machine.succeed("curl --fail http://localhost:8080")
'';
meta.maintainers = with lib.maintainers; [ nelind ];
}