1import ./make-test-python.nix (
2 { lib, ... }:
3 let
4 port = 61812;
5 in
6 {
7 name = "misskey";
8
9 meta.maintainers = [ lib.maintainers.feathecutie ];
10
11 nodes.machine = {
12 services.misskey = {
13 enable = true;
14 settings = {
15 url = "http://misskey.local";
16 inherit port;
17 };
18 database.createLocally = true;
19 redis.createLocally = true;
20 };
21 };
22
23 testScript = ''
24 machine.wait_for_unit("misskey.service")
25 machine.wait_for_open_port(${toString port})
26 machine.succeed("curl --fail http://localhost:${toString port}/")
27 '';
28 }
29)