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