1 import ./make-test-python.nix (
10 server.port = 3000; # upstream default, set explicitly in case upstream changes it
13 dialect = "postgres"; # `createLocally` only supports postgres
14 host = "/run/postgresql";
15 port = 5432; # service will fail if port is not set
21 database.createLocally = true;
23 # Created with `cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -n 1`
24 # Prefer passwordSaltFile in production.
25 passwordSalt = "NpqCY7eY7fMoIWYmPx5mAgr6YoSlXSuI";
29 # Test that the service is running and that it is reachable.
30 # This is not very comprehensive for a test, but it should
31 # catch very basic mistakes in the module.
33 machine.wait_for_unit("wakapi.service")
34 machine.wait_for_open_port(3000)
35 machine.succeed("curl --fail http://localhost:3000")
38 meta.maintainers = [ lib.maintainers.NotAShelf ];