Unverified Commit cc4e0f06 authored by nanoyaki's avatar nanoyaki
Browse files

shoko: add plugin test

parent 38472e8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1418,7 +1418,7 @@ in
  sharkey = runTest ./web-apps/sharkey.nix;
  shattered-pixel-dungeon = runTest ./shattered-pixel-dungeon.nix;
  shiori = runTest ./shiori.nix;
  shoko = runTest ./shoko.nix;
  shoko = import ./shoko.nix { inherit runTest; };
  signal-desktop = runTest ./signal-desktop.nix;
  silverbullet = runTest ./silverbullet.nix;
  simple = runTest ./simple.nix;
+47 −17
Original line number Diff line number Diff line
{ runTest }:

{
  default = runTest (
    { lib, ... }:

    {
      name = "Shoko";

@@ -17,3 +22,28 @@
        nanoyaki
      ];
    }
  );

  withPlugins = runTest (
    { pkgs, lib, ... }:

    {
      name = "Shoko with plugins";

      nodes.machine = {
        services.shoko = {
          enable = true;
          plugins = [ pkgs.luarenamer ];
        };
      };

      testScript = ''
        machine.wait_for_unit("shoko.service")
        machine.wait_for_open_port(8111)
        machine.succeed("curl --fail http://localhost:8111")
      '';

      meta.maintainers = with lib.maintainers; [ nanoyaki ];
    }
  );
}
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ buildDotnetModule (finalAttrs: {
      ];
    };

    tests.shoko = nixosTests.shoko;
    tests = { inherit (nixosTests) shoko; };
  };

  meta = {