nixpkgs/nixos/tests/redmine.nix
Felix Singer b93160990d nixosTests.redmine: Drop 3rdparty plugins and themes
The tests are supposed to test Redmine and not if specific 3rdparty
plugins and themes work. These can be tested too, but then they should
be separated out and not be included in the main test. However, just
remove them as these weren't updated since quite a while.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-09-25 21:52:38 +02:00

50 lines
993 B
Nix

{
system ? builtins.currentSystem,
config ? { },
pkgs ? import ../.. { inherit system config; },
}:
with import ../lib/testing-python.nix { inherit system pkgs; };
with pkgs.lib;
let
redmineTest =
{ name, type }:
makeTest {
name = "redmine-${name}";
nodes.machine =
{ config, pkgs, ... }:
{
services.redmine = {
enable = true;
package = pkgs.redmine;
database.type = type;
};
};
testScript = ''
start_all()
machine.wait_for_unit("redmine.service")
machine.wait_for_open_port(3000)
machine.succeed("curl --fail http://localhost:3000/")
'';
}
// {
meta.maintainers = [ maintainers.aanderse ];
};
in
{
sqlite3 = redmineTest {
name = "sqlite3";
type = "sqlite3";
};
mysql = redmineTest {
name = "mysql";
type = "mysql2";
};
pgsql = redmineTest {
name = "pgsql";
type = "postgresql";
};
}