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