depot/third_party/nixpkgs/nixos/tests/artalk.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

28 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/")
'';
}
)