mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
31 lines
686 B
Nix
31 lines
686 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "isso";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ asbachb ];
|
|
};
|
|
|
|
machine = { config, pkgs, ... }: {
|
|
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")
|
|
|
|
machine.wait_for_open_port("${toString port}")
|
|
|
|
machine.succeed("curl --fail http://localhost:${toString port}/?uri")
|
|
machine.succeed("curl --fail http://localhost:${toString port}/js/embed.min.js")
|
|
'';
|
|
})
|