2020-04-24 23:36:52 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... } : {
|
|
|
|
|
|
|
|
name = "mxisd";
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ mguentner ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
2021-04-22 02:08:21 +00:00
|
|
|
server = args : {
|
2020-04-24 23:36:52 +00:00
|
|
|
services.mxisd.enable = true;
|
|
|
|
services.mxisd.matrix.domain = "example.org";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
start_all()
|
2021-04-22 02:08:21 +00: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'")
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
})
|