nixos/tests/tandoor-recipes: use SQLite
This is a work-around for getting the tests working until #216989 is fixed.
This commit is contained in:
parent
3a3c1077f3
commit
2fa56fcb30
1 changed files with 0 additions and 25 deletions
|
@ -3,33 +3,8 @@ import ./make-test-python.nix ({ lib, ... }: {
|
||||||
meta.maintainers = with lib.maintainers; [ ambroisie ];
|
meta.maintainers = with lib.maintainers; [ ambroisie ];
|
||||||
|
|
||||||
nodes.machine = { pkgs, ... }: {
|
nodes.machine = { pkgs, ... }: {
|
||||||
# Setup using Postgres
|
|
||||||
services.tandoor-recipes = {
|
services.tandoor-recipes = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
extraConfig = {
|
|
||||||
DB_ENGINE = "django.db.backends.postgresql";
|
|
||||||
POSTGRES_HOST = "/run/postgresql";
|
|
||||||
POSTGRES_USER = "tandoor_recipes";
|
|
||||||
POSTGRES_DB = "tandoor_recipes";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.postgresql = {
|
|
||||||
enable = true;
|
|
||||||
ensureDatabases = [ "tandoor_recipes" ];
|
|
||||||
ensureUsers = [
|
|
||||||
{
|
|
||||||
name = "tandoor_recipes";
|
|
||||||
ensurePermissions."DATABASE tandoor_recipes" = "ALL PRIVILEGES";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services = {
|
|
||||||
tandoor-recipes = {
|
|
||||||
after = [ "postgresql.service" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue