2019-12-15 19:46:53 +01:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... } : {
|
2018-11-04 22:18:06 +01:00
|
|
|
|
|
|
|
name = "mxisd";
|
2021-01-10 20:08:30 +01:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2018-11-04 22:18:06 +01:00
|
|
|
maintainers = [ mguentner ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
server_mxisd = args : {
|
|
|
|
services.mxisd.enable = true;
|
|
|
|
services.mxisd.matrix.domain = "example.org";
|
|
|
|
};
|
2019-09-01 16:55:46 +02:00
|
|
|
|
|
|
|
server_ma1sd = args : {
|
|
|
|
services.mxisd.enable = true;
|
|
|
|
services.mxisd.matrix.domain = "example.org";
|
|
|
|
services.mxisd.package = pkgs.ma1sd;
|
|
|
|
};
|
2018-11-04 22:18:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
2019-12-15 19:46:53 +01:00
|
|
|
start_all()
|
|
|
|
server_mxisd.wait_for_unit("mxisd.service")
|
|
|
|
server_mxisd.wait_for_open_port(8090)
|
|
|
|
server_mxisd.succeed("curl -Ssf 'http://127.0.0.1:8090/_matrix/identity/api/v1'")
|
|
|
|
server_ma1sd.wait_for_unit("mxisd.service")
|
|
|
|
server_ma1sd.wait_for_open_port(8090)
|
|
|
|
server_ma1sd.succeed("curl -Ssf 'http://127.0.0.1:8090/_matrix/identity/api/v1'")
|
2018-11-04 22:18:06 +01:00
|
|
|
'';
|
|
|
|
})
|