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