1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/nixos/tests/artalk.nix
2024-05-18 02:15:33 +08:00

29 lines
529 B
Nix

import ./make-test-python.nix (
{ lib, pkgs, ... }:
{
name = "artalk";
meta = {
maintainers = with lib.maintainers; [ moraxyc ];
};
nodes.machine =
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.curl ];
services.artalk = {
enable = true;
};
};
testScript = ''
machine.wait_for_unit("artalk.service")
machine.wait_for_open_port(23366)
machine.succeed("curl --fail --max-time 10 http://127.0.0.1:23366/")
'';
}
)