at 25.11-pre 792 B view raw
1import ./make-test-python.nix ( 2 { pkgs, ... }: 3 { 4 name = "isso"; 5 meta = with pkgs.lib.maintainers; { 6 maintainers = [ ]; 7 }; 8 9 nodes.machine = 10 { config, pkgs, ... }: 11 { 12 services.isso = { 13 enable = true; 14 settings = { 15 general = { 16 dbpath = "/var/lib/isso/comments.db"; 17 host = "http://localhost"; 18 }; 19 }; 20 }; 21 }; 22 23 testScript = 24 let 25 port = 8080; 26 in 27 '' 28 machine.wait_for_unit("isso.service") 29 30 machine.wait_for_open_port(${toString port}) 31 32 machine.succeed("curl --fail http://localhost:${toString port}/?uri") 33 machine.succeed("curl --fail http://localhost:${toString port}/js/embed.min.js") 34 ''; 35 } 36)