nixosTests.prosodyMysql: fix

Since 8aea5288 xmpp-sendmessage.nix tests MUC and HTTP upload,
change the test to reflect this.
This commit is contained in:
Martin Milata 2020-05-04 00:14:42 +02:00
parent ce0c39be0b
commit 96146a9476

View File

@ -6,6 +6,11 @@ import ../make-test-python.nix {
environment.systemPackages = [ environment.systemPackages = [
(pkgs.callPackage ./xmpp-sendmessage.nix { connectTo = nodes.server.config.networking.primaryIPAddress; }) (pkgs.callPackage ./xmpp-sendmessage.nix { connectTo = nodes.server.config.networking.primaryIPAddress; })
]; ];
networking.extraHosts = ''
${nodes.server.config.networking.primaryIPAddress} example.com
${nodes.server.config.networking.primaryIPAddress} conference.example.com
${nodes.server.config.networking.primaryIPAddress} uploads.example.com
'';
}; };
server = { config, pkgs, ... }: { server = { config, pkgs, ... }: {
nixpkgs.overlays = [ nixpkgs.overlays = [
@ -18,6 +23,8 @@ import ../make-test-python.nix {
]; ];
networking.extraHosts = '' networking.extraHosts = ''
${config.networking.primaryIPAddress} example.com ${config.networking.primaryIPAddress} example.com
${config.networking.primaryIPAddress} conference.example.com
${config.networking.primaryIPAddress} uploads.example.com
''; '';
networking.firewall.enable = false; networking.firewall.enable = false;
services.prosody = { services.prosody = {
@ -39,6 +46,14 @@ import ../make-test-python.nix {
domain = "example.com"; domain = "example.com";
enabled = true; enabled = true;
}; };
muc = [
{
domain = "conference.example.com";
}
];
uploadHttp = {
domain = "uploads.example.com";
};
}; };
}; };
mysql = { config, pkgs, ... }: { mysql = { config, pkgs, ... }: {