summary refs log blame commit diff
path: root/nixos/tests/owncast.nix
blob: e54d2cc5dd48d10cd23a3309939c85365e565fe5 (plain) (tree)




















                                                                            
{ system ? builtins.currentSystem, config ? { }
, pkgs ? import ../.. { inherit system config; } }:

with import (nixpkgs + "/nixos/lib/testing-python.nix") { inherit system; };
makeTest {
  name = "owncast";
  meta = with pkgs.stdenv.lib.maintainers; { maintainers = [ MayNiklas ]; };

  nodes = {
    client = { ... }: {
      environment.systemPackages = [ curl ];
      services.owncast = { enable = true; };
    };
  };

  testScript = ''
    start_all()
    client.wait_for_unit("owncast.service")
    client.succeed("curl localhost:8080/api/status")
  '';
}