nixos/nextcloud: port tests to python test-driver
This commit is contained in:
parent
3f86f21207
commit
6225fc5303
@ -1,4 +1,4 @@
|
|||||||
import ../make-test.nix ({ pkgs, ...}: let
|
import ../make-test-python.nix ({ pkgs, ...}: let
|
||||||
adminpass = "notproduction";
|
adminpass = "notproduction";
|
||||||
adminuser = "root";
|
adminuser = "root";
|
||||||
in {
|
in {
|
||||||
@ -50,11 +50,15 @@ in {
|
|||||||
diff <(echo 'hi') <(${pkgs.rclone}/bin/rclone cat nextcloud:test-shared-file)
|
diff <(echo 'hi') <(${pkgs.rclone}/bin/rclone cat nextcloud:test-shared-file)
|
||||||
'';
|
'';
|
||||||
in ''
|
in ''
|
||||||
startAll();
|
start_all()
|
||||||
$nextcloud->waitForUnit("multi-user.target");
|
nextcloud.wait_for_unit("multi-user.target")
|
||||||
$nextcloud->succeed("curl -sSf http://nextcloud/login");
|
nextcloud.succeed("curl -sSf http://nextcloud/login")
|
||||||
$nextcloud->succeed("${withRcloneEnv} ${copySharedFile}");
|
nextcloud.succeed(
|
||||||
$client->waitForUnit("multi-user.target");
|
"${withRcloneEnv} ${copySharedFile}"
|
||||||
$client->succeed("${withRcloneEnv} ${diffSharedFile}");
|
)
|
||||||
|
client.wait_for_unit("multi-user.target")
|
||||||
|
client.succeed(
|
||||||
|
"${withRcloneEnv} ${diffSharedFile}"
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import ../make-test.nix ({ pkgs, ...}: let
|
import ../make-test-python.nix ({ pkgs, ...}: let
|
||||||
adminpass = "hunter2";
|
adminpass = "hunter2";
|
||||||
adminuser = "root";
|
adminuser = "root";
|
||||||
in {
|
in {
|
||||||
@ -85,13 +85,16 @@ in {
|
|||||||
diff <(echo 'hi') <(${pkgs.rclone}/bin/rclone cat nextcloud:test-shared-file)
|
diff <(echo 'hi') <(${pkgs.rclone}/bin/rclone cat nextcloud:test-shared-file)
|
||||||
'';
|
'';
|
||||||
in ''
|
in ''
|
||||||
startAll();
|
start_all()
|
||||||
$nextcloud->waitForUnit("multi-user.target");
|
nextcloud.wait_for_unit("multi-user.target")
|
||||||
$nextcloud->succeed("${configureMemcached}");
|
nextcloud.succeed("${configureMemcached}")
|
||||||
$nextcloud->succeed("curl -sSf http://nextcloud/login");
|
nextcloud.succeed("curl -sSf http://nextcloud/login")
|
||||||
$nextcloud->succeed("${withRcloneEnv} ${copySharedFile}");
|
nextcloud.succeed(
|
||||||
$client->waitForUnit("multi-user.target");
|
"${withRcloneEnv} ${copySharedFile}"
|
||||||
$client->succeed("${withRcloneEnv} ${diffSharedFile}");
|
)
|
||||||
|
client.wait_for_unit("multi-user.target")
|
||||||
|
client.succeed(
|
||||||
|
"${withRcloneEnv} ${diffSharedFile}"
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import ../make-test.nix ({ pkgs, ...}: let
|
import ../make-test-python.nix ({ pkgs, ...}: let
|
||||||
adminpass = "hunter2";
|
adminpass = "hunter2";
|
||||||
adminuser = "custom-admin-username";
|
adminuser = "custom-admin-username";
|
||||||
in {
|
in {
|
||||||
@ -85,12 +85,16 @@ in {
|
|||||||
diff <(echo 'hi') <(${pkgs.rclone}/bin/rclone cat nextcloud:test-shared-file)
|
diff <(echo 'hi') <(${pkgs.rclone}/bin/rclone cat nextcloud:test-shared-file)
|
||||||
'';
|
'';
|
||||||
in ''
|
in ''
|
||||||
startAll();
|
start_all()
|
||||||
$nextcloud->waitForUnit("multi-user.target");
|
nextcloud.wait_for_unit("multi-user.target")
|
||||||
$nextcloud->succeed("${configureRedis}");
|
nextcloud.succeed("${configureRedis}")
|
||||||
$nextcloud->succeed("curl -sSf http://nextcloud/login");
|
nextcloud.succeed("curl -sSf http://nextcloud/login")
|
||||||
$nextcloud->succeed("${withRcloneEnv} ${copySharedFile}");
|
nextcloud.succeed(
|
||||||
$client->waitForUnit("multi-user.target");
|
"${withRcloneEnv} ${copySharedFile}"
|
||||||
$client->succeed("${withRcloneEnv} ${diffSharedFile}");
|
)
|
||||||
|
client.wait_for_unit("multi-user.target")
|
||||||
|
client.succeed(
|
||||||
|
"${withRcloneEnv} ${diffSharedFile}"
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user