nixos/nextcloud: run tests against each Nextcloud instance
(cherry picked from commit 10703a8c926e182311cdf538937517db33f4261c)
This commit is contained in:
parent
c1541b370a
commit
50b29bf6aa
@ -1,4 +1,6 @@
|
|||||||
import ../make-test-python.nix ({ pkgs, ...}: let
|
args@{ pkgs, nextcloudVersion ? 22, ... }:
|
||||||
|
|
||||||
|
(import ../make-test-python.nix ({ pkgs, ...}: let
|
||||||
adminpass = "notproduction";
|
adminpass = "notproduction";
|
||||||
adminuser = "root";
|
adminuser = "root";
|
||||||
in {
|
in {
|
||||||
@ -39,6 +41,7 @@ in {
|
|||||||
inherit adminpass;
|
inherit adminpass;
|
||||||
dbtableprefix = "nixos_";
|
dbtableprefix = "nixos_";
|
||||||
};
|
};
|
||||||
|
package = pkgs.${"nextcloud" + (toString nextcloudVersion)};
|
||||||
autoUpdateApps = {
|
autoUpdateApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
startAt = "20:00";
|
startAt = "20:00";
|
||||||
@ -100,4 +103,4 @@ in {
|
|||||||
)
|
)
|
||||||
assert "hi" in client.succeed("cat /mnt/dav/test-shared-file")
|
assert "hi" in client.succeed("cat /mnt/dav/test-shared-file")
|
||||||
'';
|
'';
|
||||||
})
|
})) args
|
||||||
|
@ -2,8 +2,20 @@
|
|||||||
config ? {},
|
config ? {},
|
||||||
pkgs ? import ../../.. { inherit system config; }
|
pkgs ? import ../../.. { inherit system config; }
|
||||||
}:
|
}:
|
||||||
{
|
|
||||||
basic = import ./basic.nix { inherit system pkgs; };
|
with pkgs.lib;
|
||||||
with-postgresql-and-redis = import ./with-postgresql-and-redis.nix { inherit system pkgs; };
|
|
||||||
with-mysql-and-memcached = import ./with-mysql-and-memcached.nix { inherit system pkgs; };
|
foldl
|
||||||
}
|
(matrix: ver: matrix // {
|
||||||
|
"basic${toString ver}" = import ./basic.nix { inherit system pkgs; nextcloudVersion = ver; };
|
||||||
|
"with-postgresql-and-redis${toString ver}" = import ./with-postgresql-and-redis.nix {
|
||||||
|
inherit system pkgs;
|
||||||
|
nextcloudVersion = ver;
|
||||||
|
};
|
||||||
|
"with-mysql-and-memcached${toString ver}" = import ./with-mysql-and-memcached.nix {
|
||||||
|
inherit system pkgs;
|
||||||
|
nextcloudVersion = ver;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
{}
|
||||||
|
[ 20 21 22 ]
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
import ../make-test-python.nix ({ pkgs, ...}: let
|
args@{ pkgs, nextcloudVersion ? 22, ... }:
|
||||||
|
|
||||||
|
(import ../make-test-python.nix ({ pkgs, ...}: let
|
||||||
adminpass = "hunter2";
|
adminpass = "hunter2";
|
||||||
adminuser = "root";
|
adminuser = "root";
|
||||||
in {
|
in {
|
||||||
@ -18,6 +20,7 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
hostName = "nextcloud";
|
hostName = "nextcloud";
|
||||||
https = true;
|
https = true;
|
||||||
|
package = pkgs.${"nextcloud" + (toString nextcloudVersion)};
|
||||||
caching = {
|
caching = {
|
||||||
apcu = true;
|
apcu = true;
|
||||||
redis = false;
|
redis = false;
|
||||||
@ -103,4 +106,4 @@ in {
|
|||||||
"${withRcloneEnv} ${diffSharedFile}"
|
"${withRcloneEnv} ${diffSharedFile}"
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
})
|
})) args
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
import ../make-test-python.nix ({ pkgs, ...}: let
|
args@{ pkgs, nextcloudVersion ? 22, ... }:
|
||||||
|
|
||||||
|
(import ../make-test-python.nix ({ pkgs, ...}: let
|
||||||
adminpass = "hunter2";
|
adminpass = "hunter2";
|
||||||
adminuser = "custom-admin-username";
|
adminuser = "custom-admin-username";
|
||||||
in {
|
in {
|
||||||
@ -17,6 +19,7 @@ in {
|
|||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = "nextcloud";
|
hostName = "nextcloud";
|
||||||
|
package = pkgs.${"nextcloud" + (toString nextcloudVersion)};
|
||||||
caching = {
|
caching = {
|
||||||
apcu = false;
|
apcu = false;
|
||||||
redis = true;
|
redis = true;
|
||||||
@ -96,4 +99,4 @@ in {
|
|||||||
"${withRcloneEnv} ${diffSharedFile}"
|
"${withRcloneEnv} ${diffSharedFile}"
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
})
|
})) args
|
||||||
|
Loading…
Reference in New Issue
Block a user