1import ./make-test-python.nix (
2 { pkgs, ... }:
3
4 {
5 name = "morty";
6 meta = with pkgs.lib.maintainers; {
7 maintainers = [ leenaars ];
8 };
9
10 nodes = {
11 mortyProxyWithKey =
12
13 { ... }:
14 {
15 services.morty = {
16 enable = true;
17 key = "78a9cd0cfee20c672f78427efb2a2a96036027f0";
18 port = 3001;
19 };
20 };
21
22 };
23
24 testScript =
25 { ... }:
26 ''
27 mortyProxyWithKey.wait_for_unit("default.target")
28 mortyProxyWithKey.wait_for_open_port(3001)
29 mortyProxyWithKey.succeed("curl -fL 127.0.0.1:3001 | grep MortyProxy")
30 '';
31
32 }
33)