nixpkgs-suyu/nixos/tests/mxisd.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
481 B
Nix
Raw Permalink Normal View History

2019-12-15 19:46:53 +01:00
import ./make-test-python.nix ({ pkgs, ... } : {
2018-11-04 22:18:06 +01:00
name = "mxisd";
meta = with pkgs.lib.maintainers; {
2018-11-04 22:18:06 +01:00
maintainers = [ mguentner ];
};
nodes = {
server = args : {
2018-11-04 22:18:06 +01:00
services.mxisd.enable = true;
services.mxisd.matrix.domain = "example.org";
};
};
testScript = ''
2019-12-15 19:46:53 +01:00
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'")
2018-11-04 22:18:06 +01:00
'';
})