mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
85aa4bf92b
- remove check for `connected .JID: focus@auth.server` because
- log format was changed in c1945ea6cb
- connection.getUser() in jicofo also appears to be broken, returning null instead of username
- testing for this log line shouldn't be necessary, as we also test for "Authenticated as focus@auth.server"
- remove check for `External component successfully authenticated` because
- [JVB no longer uses component](https://community.jitsi.org/t/jvb-not-connecting/91157/2)
- increase VM memory
51 lines
1.5 KiB
Nix
51 lines
1.5 KiB
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "jitsi-meet";
|
|
meta = with pkgs.lib; {
|
|
maintainers = teams.jitsi.members;
|
|
};
|
|
|
|
nodes = {
|
|
client = { nodes, pkgs, ... }: {
|
|
};
|
|
server = { config, pkgs, ... }: {
|
|
virtualisation.memorySize = 512;
|
|
services.jitsi-meet = {
|
|
enable = true;
|
|
hostName = "server";
|
|
};
|
|
services.jitsi-videobridge.openFirewall = true;
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
services.nginx.virtualHosts.server = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
};
|
|
|
|
security.acme.email = "me@example.org";
|
|
security.acme.acceptTerms = true;
|
|
security.acme.server = "https://example.com"; # self-signed only
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
server.wait_for_unit("jitsi-videobridge2.service")
|
|
server.wait_for_unit("jicofo.service")
|
|
server.wait_for_unit("nginx.service")
|
|
server.wait_for_unit("prosody.service")
|
|
|
|
server.wait_until_succeeds(
|
|
"journalctl -b -u jitsi-videobridge2 -o cat | grep -q 'Performed a successful health check'"
|
|
)
|
|
server.wait_until_succeeds(
|
|
"journalctl -b -u prosody -o cat | grep -q 'Authenticated as focus@auth.server'"
|
|
)
|
|
server.wait_until_succeeds(
|
|
"journalctl -b -u prosody -o cat | grep -q 'Authenticated as jvb@auth.server'"
|
|
)
|
|
|
|
client.wait_for_unit("network.target")
|
|
assert "<title>Jitsi Meet</title>" in client.succeed("curl -sSfkL http://server/")
|
|
'';
|
|
})
|