2018-07-20 20:56:59 +00:00
|
|
|
import ./make-test.nix ({ ... }:
|
2017-10-31 16:53:49 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
name = "owncloud";
|
|
|
|
nodes =
|
|
|
|
{ web =
|
2018-07-20 20:56:59 +00:00
|
|
|
{ ... }:
|
2017-10-31 16:53:49 +00: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");
|
|
|
|
'';
|
|
|
|
})
|