1import ../make-test-python.nix (
2 { lib, pkgs, ... }:
3 {
4 name = "freshrss-none-auth";
5 meta.maintainers = with lib.maintainers; [ mattchrist ];
6
7 nodes.machine =
8 { pkgs, ... }:
9 {
10 services.freshrss = {
11 enable = true;
12 baseUrl = "http://localhost";
13 authType = "none";
14 };
15 };
16
17 testScript = ''
18 machine.wait_for_unit("multi-user.target")
19 machine.wait_for_open_port(80)
20 response = machine.succeed("curl -vvv -s http://localhost:80/i/")
21 assert '<title> · FreshRSS</title>' in response, "FreshRSS stream page didn't load successfully"
22 '';
23 }
24)