Files
nixpkgs/nixos/tests/plikd.nix
Hugo Herter 8bbbba08ab nixos/tests: drop empty let/in stubs
Remove the empty let/in blocks from the terminal-emulators
and plikd tests to comply with RFC-0166 and avoid rebuild diffs.
2026-01-23 19:27:39 +01:00

30 lines
624 B
Nix

{ lib, ... }:
{
name = "plikd";
meta = {
maintainers = [ ];
};
nodes.machine =
{ pkgs, ... }:
{
services.plikd.enable = true;
environment.systemPackages = [ pkgs.plik ];
};
testScript = ''
# Service basic test
machine.wait_for_unit("plikd")
# Network test
machine.wait_for_open_port(8080)
machine.succeed("curl --fail -v http://localhost:8080")
# Application test
machine.execute("echo test > /tmp/data.txt")
machine.succeed("plik --server http://localhost:8080 /tmp/data.txt | grep curl")
machine.succeed("diff data.txt /tmp/data.txt")
'';
}