1 import ./make-test-python.nix ({ lib, ... }: {
2 name = "tandoor-recipes";
3 meta.maintainers = with lib.maintainers; [ ambroisie ];
5 nodes.machine = { pkgs, ... }: {
6 services.tandoor-recipes = {
9 DB_ENGINE = "django.db.backends.postgresql";
10 POSTGRES_HOST = "/run/postgresql";
11 POSTGRES_USER = "tandoor_recipes";
12 POSTGRES_DB = "tandoor_recipes";
16 services.postgresql = {
18 ensureDatabases = [ "tandoor_recipes" ];
21 name = "tandoor_recipes";
22 ensureDBOwnership = true;
29 after = [ "postgresql.service" ];
35 machine.wait_for_unit("tandoor-recipes.service")
37 with subtest("Web interface gets ready"):
38 # Wait until server accepts connections
39 machine.wait_until_succeeds("curl -fs localhost:8080")