2021-08-10 14:31:46 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "isso";
|
|
|
|
meta = with pkgs.lib.maintainers; {
|
2023-03-04 12:14:45 +00:00
|
|
|
maintainers = [ ];
|
2021-08-10 14:31:46 +00:00
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nodes.machine = { config, pkgs, ... }: {
|
2021-08-10 14:31:46 +00:00
|
|
|
services.isso = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
general = {
|
|
|
|
dbpath = "/var/lib/isso/comments.db";
|
|
|
|
host = "http://localhost";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = let
|
|
|
|
port = 8080;
|
|
|
|
in
|
|
|
|
''
|
|
|
|
machine.wait_for_unit("isso.service")
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
machine.wait_for_open_port(${toString port})
|
2021-08-10 14:31:46 +00:00
|
|
|
|
|
|
|
machine.succeed("curl --fail http://localhost:${toString port}/?uri")
|
|
|
|
machine.succeed("curl --fail http://localhost:${toString port}/js/embed.min.js")
|
|
|
|
'';
|
|
|
|
})
|