nixpkgs/nixos/tests/isso.nix
Wolfgang Walther 1c6af9ba0a
treewide: remove unused with
Auto-fixed by nixf-diagnose.

(cherry picked from commit c283f32d29)
2025-10-05 12:38:28 +02:00

37 lines
765 B
Nix

import ./make-test-python.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")
'';
}
)