mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
22 lines
630 B
Nix
22 lines
630 B
Nix
import ./make-test-python.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 = ''
|
|
start_all()
|
|
|
|
machine.wait_for_unit("phpfpm-mediawiki.service")
|
|
|
|
page = machine.succeed("curl -L http://localhost/")
|
|
assert "MediaWiki has been installed" in page
|
|
'';
|
|
})
|