mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
parent
f8c4e5e70b
commit
92d438cec9
2 changed files with 22 additions and 24 deletions
|
@ -795,7 +795,7 @@ in
|
||||||
defaults.services.mongodb.package = config.node.pkgs.mongodb-ce;
|
defaults.services.mongodb.package = config.node.pkgs.mongodb-ce;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
moodle = handleTest ./moodle.nix { };
|
moodle = runTest ./moodle.nix;
|
||||||
moonraker = handleTest ./moonraker.nix { };
|
moonraker = handleTest ./moonraker.nix { };
|
||||||
mopidy = handleTest ./mopidy.nix { };
|
mopidy = handleTest ./mopidy.nix { };
|
||||||
morph-browser = runTest ./morph-browser.nix;
|
morph-browser = runTest ./morph-browser.nix;
|
||||||
|
|
|
@ -1,26 +1,24 @@
|
||||||
import ./make-test-python.nix (
|
{ lib, ... }:
|
||||||
{ pkgs, lib, ... }:
|
{
|
||||||
{
|
name = "moodle";
|
||||||
name = "moodle";
|
meta.maintainers = [ lib.maintainers.aanderse ];
|
||||||
meta.maintainers = [ lib.maintainers.aanderse ];
|
|
||||||
|
|
||||||
nodes.machine =
|
nodes.machine =
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
services.moodle.enable = true;
|
services.moodle.enable = true;
|
||||||
services.moodle.virtualHost.hostName = "localhost";
|
services.moodle.virtualHost.hostName = "localhost";
|
||||||
services.moodle.virtualHost.adminAddr = "root@example.com";
|
services.moodle.virtualHost.adminAddr = "root@example.com";
|
||||||
services.moodle.initialPassword = "correcthorsebatterystaple";
|
services.moodle.initialPassword = "correcthorsebatterystaple";
|
||||||
|
|
||||||
# Ensure the virtual machine has enough memory to avoid errors like:
|
# Ensure the virtual machine has enough memory to avoid errors like:
|
||||||
# Fatal error: Out of memory (allocated 152047616) (tried to allocate 33554440 bytes)
|
# Fatal error: Out of memory (allocated 152047616) (tried to allocate 33554440 bytes)
|
||||||
virtualisation.memorySize = 2000;
|
virtualisation.memorySize = 2000;
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
start_all()
|
start_all()
|
||||||
machine.wait_for_unit("phpfpm-moodle.service", timeout=1800)
|
machine.wait_for_unit("phpfpm-moodle.service", timeout=1800)
|
||||||
machine.wait_until_succeeds("curl http://localhost/ | grep 'You are not logged in'")
|
machine.wait_until_succeeds("curl http://localhost/ | grep 'You are not logged in'")
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue