diff options
author | Bas van Dijk <v.dijk.bas@gmail.com> | 2017-10-31 17:53:49 +0100 |
---|---|---|
committer | Bas van Dijk <v.dijk.bas@gmail.com> | 2017-10-31 23:03:33 +0100 |
commit | cb4b9b1cc196fec213c98541752f9df0cc6ee320 (patch) | |
tree | 60401b271b9f9ef95e07f8e7095ac6fb9ec22f32 /nixos/tests | |
parent | 4b49e21f8658e86a1cf4929de56541f3a4ab2e9d (diff) | |
download | nixlib-cb4b9b1cc196fec213c98541752f9df0cc6ee320.tar nixlib-cb4b9b1cc196fec213c98541752f9df0cc6ee320.tar.gz nixlib-cb4b9b1cc196fec213c98541752f9df0cc6ee320.tar.bz2 nixlib-cb4b9b1cc196fec213c98541752f9df0cc6ee320.tar.lz nixlib-cb4b9b1cc196fec213c98541752f9df0cc6ee320.tar.xz nixlib-cb4b9b1cc196fec213c98541752f9df0cc6ee320.tar.zst nixlib-cb4b9b1cc196fec213c98541752f9df0cc6ee320.zip |
owncloud: fix some but not all errors
* Don't set timezone when it's null * Don't create the postgres role because the postgresqsl service already does that. * Fix documentation * Add a test suite
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/owncloud.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/nixos/tests/owncloud.nix b/nixos/tests/owncloud.nix new file mode 100644 index 000000000000..0dcdea40b064 --- /dev/null +++ b/nixos/tests/owncloud.nix @@ -0,0 +1,39 @@ +import ./make-test.nix ({ pkgs, ... }: + +{ + name = "owncloud"; + nodes = + { web = + { config, pkgs, ... }: + { + 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"); + ''; +}) |