at 24.11-pre 520 B view raw
1import ./make-test-python.nix ({ lib, pkgs, ... }: { 2 name = "redlib"; 3 meta.maintainers = with lib.maintainers; [ soispha ]; 4 5 nodes.machine = { 6 services.libreddit = { 7 package = pkgs.redlib; 8 enable = true; 9 # Test CAP_NET_BIND_SERVICE 10 port = 80; 11 }; 12 }; 13 14 testScript = '' 15 machine.wait_for_unit("libreddit.service") 16 machine.wait_for_open_port(80) 17 # Query a page that does not require Internet access 18 machine.succeed("curl --fail http://localhost:80/settings") 19 ''; 20})