picture-frame/server/service-test.nix
2023-11-08 23:14:57 -07:00

24 lines
513 B
Nix

{ nixpkgs, system, service }:
with import (nixpkgs + "/nixos/lib/testing-python.nix") { inherit system; };
simpleTest {
name = "dynamic-frame-server";
nodes.machine = { config, pkgs, ... }: {
imports = [ service ];
virtualisation.memorySize = 256;
services.picture-frame-server = {
enable = true;
imgDir = "/tmp";
};
};
testScript =
''
machine.start()
machine.wait_for_unit("multi-user.target")
machine.wait_for_unit("picture-frame-server")
'';
}