summaryrefslogtreecommitdiffstats
path: root/nixos/tests/code-server.nix
blob: 25a0f56b70ec162752ddb50152b7e8662e6561dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ pkgs, lib, ... }:
{
  name = "code-server";

  nodes = {
    machine =
      { pkgs, ... }:
      {
        services.code-server = {
          enable = true;
          auth = "none";
        };
      };
  };

  testScript = ''
    start_all()
    machine.wait_for_unit("code-server.service")
    machine.wait_for_open_port(4444)
    machine.succeed("curl -k --fail http://localhost:4444", timeout=10)
  '';

  meta.maintainers = [ ];
}