mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
20 lines
608 B
Nix
20 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;
|
|
'';
|
|
})
|