mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
19 lines
608 B
Nix
19 lines
608 B
Nix
import ./make-test.nix ({ pkgs, lib, ... }: {
|
|
name = "mediawiki";
|
|
meta.maintainers = [ lib.maintainers.aanderse ];
|
|
|
|
machine =
|
|
{ ... }:
|
|
{ services.mediawiki.enable = true;
|
|
services.mediawiki.virtualHost.hostName = "localhost";
|
|
services.mediawiki.virtualHost.adminAddr = "root@example.com";
|
|
services.mediawiki.passwordFile = pkgs.writeText "password" "correcthorsebatterystaple";
|
|
};
|
|
|
|
testScript = ''
|
|
startAll;
|
|
|
|
$machine->waitForUnit('phpfpm-mediawiki.service');
|
|
$machine->succeed('curl -L http://localhost/') =~ /MediaWiki has been installed/ or die;
|
|
'';
|
|
})
|