2018-07-20 22:56:59 +02:00
|
|
|
import ./make-test.nix ({ ... }:
|
2017-10-31 17:53:49 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
name = "owncloud";
|
|
|
|
nodes =
|
|
|
|
{ web =
|
2018-07-20 22:56:59 +02:00
|
|
|
{ ... }:
|
2017-10-31 17:53:49 +01:00
|
|
|
{
|
|
|
|
services.postgresql.enable = true;
|
|
|
|
services.httpd = {
|
|
|
|
enable = true;
|
|
|
|
logPerVirtualHost = true;
|
|
|
|
adminAddr = "example@example.com";
|
|
|
|
virtualHosts = [
|
|
|
|
{
|
|
|
|
hostName = "owncloud";
|
|
|
|
extraSubservices =
|
|
|
|
[
|
|
|
|
{
|
|
|
|
serviceType = "owncloud";
|
|
|
|
adminPassword = "secret";
|
|
|
|
dbPassword = "secret";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
startAll;
|
|
|
|
|
|
|
|
$web->waitForUnit("postgresql");
|
|
|
|
$web->waitForUnit("httpd");
|
|
|
|
|
|
|
|
$web->succeed("curl -L 127.0.0.1:80");
|
|
|
|
'';
|
|
|
|
})
|