2019-02-05 14:51:33 +03:00
|
|
|
{ system ? builtins.currentSystem,
|
|
|
|
config ? {},
|
|
|
|
pkgs ? import ../.. { inherit system config; }
|
|
|
|
}:
|
|
|
|
|
2020-04-22 09:36:27 +03:00
|
|
|
with import ../lib/testing-python.nix { inherit system pkgs; };
|
2019-02-05 14:51:33 +03:00
|
|
|
with pkgs.lib;
|
2018-10-11 04:04:08 +03:00
|
|
|
|
2019-02-05 14:51:33 +03:00
|
|
|
let
|
2020-04-22 09:36:27 +03:00
|
|
|
redmineTest = { name, type }: makeTest {
|
|
|
|
name = "redmine-${name}";
|
2022-03-21 02:15:30 +03:00
|
|
|
nodes.machine = { config, pkgs, ... }: {
|
2020-04-22 09:36:27 +03:00
|
|
|
services.redmine = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.redmine;
|
|
|
|
database.type = type;
|
|
|
|
plugins = {
|
2019-02-05 14:51:33 +03:00
|
|
|
redmine_env_auth = pkgs.fetchurl {
|
2020-04-01 04:11:51 +03:00
|
|
|
url = "https://github.com/Intera/redmine_env_auth/archive/0.7.zip";
|
2019-02-05 14:51:33 +03:00
|
|
|
sha256 = "1xb8lyarc7mpi86yflnlgyllh9hfwb9z304f19dx409gqpia99sc";
|
|
|
|
};
|
2018-10-11 04:04:08 +03:00
|
|
|
};
|
2020-04-22 09:36:27 +03:00
|
|
|
themes = {
|
2019-02-05 14:51:33 +03:00
|
|
|
dkuk-redmine_alex_skin = pkgs.fetchurl {
|
2020-04-01 04:11:51 +03:00
|
|
|
url = "https://bitbucket.org/dkuk/redmine_alex_skin/get/1842ef675ef3.zip";
|
2019-02-05 14:51:33 +03:00
|
|
|
sha256 = "0hrin9lzyi50k4w2bd2b30vrf1i4fi1c0gyas5801wn8i7kpm9yl";
|
|
|
|
};
|
2018-10-11 04:04:08 +03:00
|
|
|
};
|
|
|
|
};
|
2020-04-22 09:36:27 +03:00
|
|
|
};
|
2018-10-11 04:04:08 +03:00
|
|
|
|
2019-02-05 14:51:33 +03:00
|
|
|
testScript = ''
|
2020-04-22 09:36:27 +03:00
|
|
|
start_all()
|
|
|
|
machine.wait_for_unit("redmine.service")
|
|
|
|
machine.wait_for_open_port(3000)
|
|
|
|
machine.succeed("curl --fail http://localhost:3000/")
|
2019-02-26 05:17:50 +03:00
|
|
|
'';
|
2020-04-22 09:36:27 +03:00
|
|
|
} // {
|
2019-02-05 14:51:33 +03:00
|
|
|
meta.maintainers = [ maintainers.aanderse ];
|
|
|
|
};
|
2020-04-22 09:36:27 +03:00
|
|
|
in {
|
|
|
|
mysql = redmineTest { name = "mysql"; type = "mysql2"; };
|
|
|
|
pgsql = redmineTest { name = "pgsql"; type = "postgresql"; };
|
2019-02-05 14:51:33 +03:00
|
|
|
}
|