summaryrefslogtreecommitdiffstats
path: root/nixos/tests/litellm.nix
blob: f41ccebcb63892582bb7c1175cbeea1412856ee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, ... }:
let
  mainPort = "8080";
in
{
  name = "litellm";

  nodes = {
    machine =
      { ... }:
      {
        services.litellm = {
          enable = true;
        };
      };
  };

  testScript = ''
    machine.start()
    machine.wait_for_unit("litellm.service")
    machine.wait_for_open_port(${mainPort})
  '';

  meta = {
    maintainers = [ ];
  };
}