1 { system ? builtins.currentSystem
6 inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest;
7 inherit (lib) recursiveUpdate;
10 meta.maintainers = with lib.maintainers; [ ratcornu ];
11 nodes.machine = { pkgs, ... }: {
12 services.suwayomi-server = {
14 settings.server.port = 1234;
18 machine.wait_for_unit("suwayomi-server.service")
19 machine.wait_for_open_port(1234)
20 machine.succeed("curl --fail http://localhost:1234/")
26 without-auth = makeTest (recursiveUpdate baseTestConfig {
27 name = "suwayomi-server-without-auth";
30 with-auth = makeTest (recursiveUpdate baseTestConfig {
31 name = "suwayomi-server-with-auth";
33 nodes.machine = { pkgs, ... }: {
34 services.suwayomi-server = {
39 basicAuthEnabled = true;
40 basicAuthUsername = "alice";
41 basicAuthPasswordFile = pkgs.writeText "snakeoil-pass.txt" "pass";