0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 22:20:30 +03:00
nixpkgs/nixos/tests/paisa.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
565 B
Nix
Raw Normal View History

2025-06-30 17:18:05 +02:00
{ ... }:
{
name = "paisa";
nodes.machine =
2025-07-01 18:38:29 +02:00
{ pkgs, lib, ... }:
2025-06-30 17:18:05 +02:00
{
systemd.services.paisa = {
description = "Paisa";
wantedBy = [ "multi-user.target" ];
2025-07-01 18:38:29 +02:00
serviceConfig.ExecStart = "${lib.getExe pkgs.paisa} serve";
2025-06-30 17:18:05 +02:00
};
};
testScript = ''
start_all()
machine.systemctl("start network-online.target")
machine.wait_for_unit("network-online.target")
machine.wait_for_unit("paisa.service")
machine.wait_for_open_port(7500)
machine.succeed("curl --location --fail http://localhost:7500")
'';
}