diff options
| author | Raito Bezarius <masterancpp@gmail.com> | 2023-03-21 17:26:03 +0100 |
|---|---|---|
| committer | Raito Bezarius <masterancpp@gmail.com> | 2023-03-21 17:26:03 +0100 |
| commit | 04dcd33630189d4655c13623c59d5daaca5598c3 (patch) | |
| tree | 19bea95fb4feee96efb67a22241423c722eb274c | |
| parent | nixos/web-apps/nextcloud: introduce nextcloud26 (DO NOT USE; BROKEN STATEVERS... (diff) | |
| download | nixpkgs-04dcd33630189d4655c13623c59d5daaca5598c3.tar.gz | |
nixos/tests/nextcloud: do not expect failure on NC ≥26 with respect to RC4 bug
| -rw-r--r-- | nixos/tests/nextcloud/openssl-sse.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/tests/nextcloud/openssl-sse.nix b/nixos/tests/nextcloud/openssl-sse.nix index 7595ee2c67e3..cf7187323ab5 100644 --- a/nixos/tests/nextcloud/openssl-sse.nix +++ b/nixos/tests/nextcloud/openssl-sse.nix @@ -55,6 +55,7 @@ in { nextcloudwithopenssl1.wait_for_unit("multi-user.target") nextcloudwithopenssl1.succeed("nextcloud-occ status") nextcloudwithopenssl1.succeed("curl -sSf http://nextcloudwithopenssl1/login") + nextcloud_version = ${toString nextcloudVersion} with subtest("With OpenSSL 1 SSE can be enabled and used"): nextcloudwithopenssl1.succeed("nextcloud-occ app:enable encryption") @@ -71,12 +72,15 @@ in { nextcloudwithopenssl1.succeed("nextcloud-occ status") with subtest("Existing encrypted files cannot be read, but new files can be added"): - nextcloudwithopenssl1.fail("${withRcloneEnv3} ${pkgs.rclone}/bin/rclone cat nextcloud:test-shared-file >&2") + # This will succed starting NC26 because of their custom implementation of openssl_seal + read_existing_file_test = nextcloudwithopenssl1.fail if nextcloud_version < 26 else nextcloudwithopenssl1.succeed + read_existing_file_test("${withRcloneEnv3} ${pkgs.rclone}/bin/rclone cat nextcloud:test-shared-file >&2") nextcloudwithopenssl1.succeed("nextcloud-occ encryption:disable") nextcloudwithopenssl1.succeed("${copySharedFile3}") nextcloudwithopenssl1.succeed("grep bye /var/lib/nextcloud/data/root/files/test-shared-file2") nextcloudwithopenssl1.succeed("${withRcloneEnv3} ${pkgs.rclone}/bin/rclone cat nextcloud:test-shared-file2 | grep bye") + with subtest("Switch back to OpenSSL 1.1 and ensure that encrypted files are readable again"): nextcloudwithopenssl1.succeed("${openssl1-node}/bin/switch-to-configuration test") nextcloudwithopenssl1.wait_for_open_port(80) |
