2018-11-04 21:18:06 +00:00
|
|
|
import ./make-test.nix ({ pkgs, ... } : {
|
|
|
|
|
|
|
|
name = "mxisd";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ mguentner ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
server_mxisd = args : {
|
|
|
|
services.mxisd.enable = true;
|
|
|
|
services.mxisd.matrix.domain = "example.org";
|
|
|
|
};
|
2019-09-01 14:55:46 +00:00
|
|
|
|
|
|
|
server_ma1sd = args : {
|
|
|
|
services.mxisd.enable = true;
|
|
|
|
services.mxisd.matrix.domain = "example.org";
|
|
|
|
services.mxisd.package = pkgs.ma1sd;
|
|
|
|
};
|
2018-11-04 21:18:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
startAll;
|
|
|
|
$server_mxisd->waitForUnit("mxisd.service");
|
|
|
|
$server_mxisd->waitForOpenPort(8090);
|
2019-09-01 14:55:46 +00:00
|
|
|
$server_mxisd->succeed("curl -Ssf \"http://127.0.0.1:8090/_matrix/identity/api/v1\"");
|
|
|
|
$server_ma1sd->waitForUnit("mxisd.service");
|
|
|
|
$server_ma1sd->waitForOpenPort(8090);
|
|
|
|
$server_ma1sd->succeed("curl -Ssf \"http://127.0.0.1:8090/_matrix/identity/api/v1\"")
|
|
|
|
|
2018-11-04 21:18:06 +00:00
|
|
|
'';
|
|
|
|
})
|