1import ./make-test-python.nix (
2 { pkgs, ... }:
3 {
4 name = "coder";
5 meta.maintainers = pkgs.coder.meta.maintainers;
6
7 nodes.machine =
8 { pkgs, ... }:
9 {
10 services.coder = {
11 enable = true;
12 accessUrl = "http://localhost:3000";
13 };
14 };
15
16 testScript = ''
17 machine.start()
18 machine.wait_for_unit("postgresql.service")
19 machine.wait_for_unit("coder.service")
20 machine.wait_for_open_port(3000)
21
22 machine.succeed("curl --fail http://localhost:3000")
23 '';
24 }
25)