mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
nixos/tests/matrix-appservice-irc: use synapse settings option
This commit is contained in:
parent
f8fff1c1a6
commit
f89769055b
|
@ -1,6 +1,6 @@
|
||||||
import ./make-test-python.nix ({ pkgs, ... }:
|
import ./make-test-python.nix ({ pkgs, ... }:
|
||||||
let
|
let
|
||||||
homeserverUrl = "http://homeserver:8448";
|
homeserverUrl = "http://homeserver:8008";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
name = "matrix-appservice-irc";
|
name = "matrix-appservice-irc";
|
||||||
|
@ -14,28 +14,32 @@ import ./make-test-python.nix ({ pkgs, ... }:
|
||||||
specialisation.running.configuration = {
|
specialisation.running.configuration = {
|
||||||
services.matrix-synapse = {
|
services.matrix-synapse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
database_type = "sqlite3";
|
settings = {
|
||||||
app_service_config_files = [ "/registration.yml" ];
|
database.name = "sqlite3";
|
||||||
|
app_service_config_files = [ "/registration.yml" ];
|
||||||
|
|
||||||
enable_registration = true;
|
enable_registration = true;
|
||||||
|
|
||||||
listeners = [
|
listeners = [ {
|
||||||
# The default but tls=false
|
# The default but tls=false
|
||||||
{
|
bind_addresses = [
|
||||||
"bind_address" = "";
|
"0.0.0.0"
|
||||||
"port" = 8448;
|
|
||||||
"resources" = [
|
|
||||||
{ "compress" = true; "names" = [ "client" ]; }
|
|
||||||
{ "compress" = false; "names" = [ "federation" ]; }
|
|
||||||
];
|
];
|
||||||
"tls" = false;
|
port = 8008;
|
||||||
"type" = "http";
|
resources = [ {
|
||||||
"x_forwarded" = false;
|
"compress" = true;
|
||||||
}
|
"names" = [ "client" ];
|
||||||
];
|
} {
|
||||||
|
"compress" = false;
|
||||||
|
"names" = [ "federation" ];
|
||||||
|
} ];
|
||||||
|
tls = false;
|
||||||
|
type = "http";
|
||||||
|
} ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 8448 ];
|
networking.firewall.allowedTCPPorts = [ 8008 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -209,7 +213,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
|
||||||
)
|
)
|
||||||
|
|
||||||
homeserver.wait_for_unit("matrix-synapse.service")
|
homeserver.wait_for_unit("matrix-synapse.service")
|
||||||
homeserver.wait_for_open_port(8448)
|
homeserver.wait_for_open_port(8008)
|
||||||
|
|
||||||
with subtest("ensure messages can be exchanged"):
|
with subtest("ensure messages can be exchanged"):
|
||||||
client.succeed("do_test ${homeserverUrl} >&2")
|
client.succeed("do_test ${homeserverUrl} >&2")
|
||||||
|
|
Loading…
Reference in a new issue