nixpkgs/nixos/tests/litellm.nix

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

28 lines
398 B
Nix
Raw Normal View History

2025-03-16 10:37:16 +01:00
{ 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 = with lib.maintainers; {
maintainers = [ drupol ];
};
}