about summary refs log tree commit diff
path: root/nixos/tests/mxisd.nix
blob: 354612a8a53d0313031cf149887f8e6a30ffc5d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import ./make-test-python.nix ({ pkgs, ... } : {

  name = "mxisd";
  meta = with pkgs.lib.maintainers; {
    maintainers = [ mguentner ];
  };

  nodes = {
    server = args : {
      services.mxisd.enable = true;
      services.mxisd.matrix.domain = "example.org";
    };
  };

  testScript = ''
    start_all()
    server.wait_for_unit("mxisd.service")
    server.wait_for_open_port(8090)
    server.succeed("curl -Ssf 'http://127.0.0.1:8090/_matrix/identity/api/v1'")
  '';
})