1 { system ? builtins.currentSystem, config ? { }
2 , pkgs ? import ../../.. { inherit system config; } }:
4 with import ../../lib/testing-python.nix { inherit system pkgs; };
8 writefreelyTest = { name, type }:
10 name = "writefreely-${name}";
12 nodes.machine = { config, pkgs, ... }: {
13 services.writefreely = {
15 host = "localhost:3000";
20 createLocally = type == "mysql";
21 passwordFile = pkgs.writeText "db-pass" "pass";
24 settings.server.port = 3000;
30 machine.wait_for_unit("writefreely.service")
31 machine.wait_for_open_port(3000)
32 machine.succeed("curl --fail http://localhost:3000")
36 sqlite = writefreelyTest {
40 mysql = writefreelyTest {