1import ./make-test-python.nix ({ lib, pkgs, ... }: {
2 name = "freshrss";
3 meta.maintainers = with lib.maintainers; [ etu stunkymonkey ];
4
5 nodes.machine = { pkgs, ... }: {
6 services.freshrss = {
7 enable = true;
8 baseUrl = "http://localhost";
9 passwordFile = pkgs.writeText "password" "secret";
10 };
11 };
12
13 testScript = ''
14 machine.wait_for_unit("multi-user.target")
15 machine.wait_for_open_port(80)
16 response = machine.succeed("curl -vvv -s -H 'Host: freshrss' http://127.0.0.1:80/i/")
17 assert '<title>Login · FreshRSS</title>' in response, "Login page didn't load successfully"
18 '';
19})