3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #74762 from mmilata/mediawiki-python-test

nixosTests.mediawiki: port to python
This commit is contained in:
Florian Klink 2019-12-02 20:28:31 +01:00 committed by GitHub
commit 9144d84a60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
import ./make-test.nix ({ pkgs, lib, ... }: {
import ./make-test-python.nix ({ pkgs, lib, ... }: {
name = "mediawiki";
meta.maintainers = [ lib.maintainers.aanderse ];
@ -11,9 +11,11 @@ import ./make-test.nix ({ pkgs, lib, ... }: {
};
testScript = ''
startAll;
start_all()
$machine->waitForUnit('phpfpm-mediawiki.service');
$machine->succeed('curl -L http://localhost/') =~ /MediaWiki has been installed/ or die;
machine.wait_for_unit("phpfpm-mediawiki.service")
page = machine.succeed("curl -L http://localhost/")
assert "MediaWiki has been installed" in page
'';
})