1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/nixos/tests/wordpress.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

2016-09-26 23:06:56 +01:00
import ./make-test.nix ({ pkgs, ... }:
{
name = "wordpress";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ grahamc ]; # under duress!
};
nodes =
{ web =
{ pkgs, ... }:
2016-09-26 23:06:56 +01:00
{
services.mysql = {
enable = true;
package = pkgs.mysql;
};
2016-09-26 23:06:56 +01:00
services.httpd = {
enable = true;
logPerVirtualHost = true;
adminAddr="js@lastlog.de";
virtualHosts = [
{
hostName = "wordpress";
extraSubservices =
[
{
serviceType = "wordpress";
dbPassword = "wordpress";
dbHost = "127.0.0.1";
2016-09-26 23:06:56 +01:00
languages = [ "de_DE" "en_GB" ];
}
];
}
];
};
};
};
testScript =
{ ... }:
2016-09-26 23:06:56 +01:00
''
startAll;
$web->waitForUnit("mysql");
$web->waitForUnit("httpd");
$web->succeed("curl -L 127.0.0.1:80 | grep 'Welcome to the famous'");
'';
})