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