mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
25 lines
590 B
Nix
25 lines
590 B
Nix
import ../make-test-python.nix (
|
|
{ lib, ... }:
|
|
|
|
{
|
|
name = "bentopdf-nginx";
|
|
meta.maintainers = with lib.maintainers; [ stunkymonkey ];
|
|
|
|
nodes.machine =
|
|
{ pkgs, ... }:
|
|
{
|
|
services.bentopdf = {
|
|
enable = true;
|
|
domain = "localhost";
|
|
nginx.enable = true;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("nginx.service")
|
|
machine.wait_for_open_port(80)
|
|
assert "<title>PDF Tools</title>" in machine.succeed("curl --fail --show-error --silent --location --insecure http://localhost:80/")
|
|
'';
|
|
}
|
|
)
|