diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-02-08 14:57:38 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-03-04 23:57:31 +0100 |
commit | f89769055b38b4037a8a036aea0ad74b97c6f41e (patch) | |
tree | c371f6a32675b5232ed9975c1a39f2de74c30411 /nixos/tests | |
parent | f8fff1c1a61a105d7bc8cce9b5cf55d99ce27db2 (diff) | |
download | nixlib-f89769055b38b4037a8a036aea0ad74b97c6f41e.tar nixlib-f89769055b38b4037a8a036aea0ad74b97c6f41e.tar.gz nixlib-f89769055b38b4037a8a036aea0ad74b97c6f41e.tar.bz2 nixlib-f89769055b38b4037a8a036aea0ad74b97c6f41e.tar.lz nixlib-f89769055b38b4037a8a036aea0ad74b97c6f41e.tar.xz nixlib-f89769055b38b4037a8a036aea0ad74b97c6f41e.tar.zst nixlib-f89769055b38b4037a8a036aea0ad74b97c6f41e.zip |
nixos/tests/matrix-appservice-irc: use synapse settings option
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/matrix-appservice-irc.nix | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/nixos/tests/matrix-appservice-irc.nix b/nixos/tests/matrix-appservice-irc.nix index e1da410af060..d1c561f95dbf 100644 --- a/nixos/tests/matrix-appservice-irc.nix +++ b/nixos/tests/matrix-appservice-irc.nix @@ -1,6 +1,6 @@ import ./make-test-python.nix ({ pkgs, ... }: let - homeserverUrl = "http://homeserver:8448"; + homeserverUrl = "http://homeserver:8008"; in { name = "matrix-appservice-irc"; @@ -14,28 +14,32 @@ import ./make-test-python.nix ({ pkgs, ... }: specialisation.running.configuration = { services.matrix-synapse = { enable = true; - database_type = "sqlite3"; - app_service_config_files = [ "/registration.yml" ]; - - enable_registration = true; - - listeners = [ - # The default but tls=false - { - "bind_address" = ""; - "port" = 8448; - "resources" = [ - { "compress" = true; "names" = [ "client" ]; } - { "compress" = false; "names" = [ "federation" ]; } + settings = { + database.name = "sqlite3"; + app_service_config_files = [ "/registration.yml" ]; + + enable_registration = true; + + listeners = [ { + # The default but tls=false + bind_addresses = [ + "0.0.0.0" ]; - "tls" = false; - "type" = "http"; - "x_forwarded" = false; - } - ]; + port = 8008; + resources = [ { + "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_open_port(8448) + homeserver.wait_for_open_port(8008) with subtest("ensure messages can be exchanged"): client.succeed("do_test ${homeserverUrl} >&2") |