1 import ./make-test-python.nix ({ lib, pkgs, ... }: {
3 meta.maintainers = with lib.maintainers; [ stunkymonkey ];
5 nodes.machine = { pkgs, ... }: {
6 services.photoprism = {
9 originalsPath = "/media/photos/";
10 passwordFile = pkgs.writeText "password" "secret";
12 environment.extraInit = ''
13 mkdir -p /media/photos
18 machine.wait_for_unit("multi-user.target")
19 machine.wait_for_open_port(8080)
20 response = machine.succeed("curl -vvv -s -H 'Host: photoprism' http://127.0.0.1:8080/library/login")
21 assert '<title>PhotoPrism</title>' in response, "Login page didn't load successfully"