mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixosTests.tranquil-pds: init
This commit is contained in:
parent
564795482d
commit
46a9ac2071
2 changed files with 36 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
35
nixos/tests/tranquil-pds.nix
Normal file
35
nixos/tests/tranquil-pds.nix
Normal 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 ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue