at 23.11-beta 630 B view raw
1import ./make-test-python.nix ({ lib, pkgs, ... }: { 2 name = "freshrss"; 3 meta.maintainers = with lib.maintainers; [ mattchrist ]; 4 5 nodes.machine = { pkgs, ... }: { 6 services.freshrss = { 7 enable = true; 8 baseUrl = "http://localhost"; 9 dataDir = "/srv/freshrss"; 10 authType = "http_auth"; 11 }; 12 }; 13 14 testScript = '' 15 machine.wait_for_unit("multi-user.target") 16 machine.wait_for_open_port(80) 17 response = machine.succeed("curl -vvv -s -H 'Host: freshrss' -H 'Remote-User: testuser' http://127.0.0.1:80/i/") 18 assert 'Account: testuser' in response, "http_auth method didn't work." 19 ''; 20})