8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
21 lines
630 B
Nix
21 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
|
|
'';
|
|
})
|