nixpkgs/nixos/tests/isso.nix
Wolfgang Walther c283f32d29
treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00

35 lines
671 B
Nix

{ pkgs, ... }:
{
name = "isso";
meta = {
maintainers = [ ];
};
nodes.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")
'';
}