aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests/Command/FixEncryptedVersionTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Migrate away from ILogger in encryptionCôme Chilliet2023-08-081-1/+2
| | | | | | And modernize code a bit Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove unused method getLocalFolderCôme Chilliet2023-04-031-1/+1
| | | | | | It’s not used and not in any OCP interface/class. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* allow running encryption:fix-encrypted-version for all usersRobin Appelman2022-11-291-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Adapt test to fixed command output.Côme Chilliet2022-08-041-3/+14
| | | | | | | No user and non-existing user are now correctly treated as two separated cases Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix encrypted version to 0 when finding unencrypted fileVincent Petry2021-08-261-0/+40
| | | | | | | | | | | | Whenever the command is run and a "legacy cipher" seems to be detected when the legacy option is disabled, it's highly likely that the file is actually unencrypted but the database contains a encrypted version higher than 0 for some reason. The command now detects this case and automatically sets the encrypted version to 0 so that the file can be read again. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Prevent running FixEncryptedVersion without master keyVincent Petry2021-06-291-0/+46
| | | | | | | Return an error when running occ encryption:fix-encrypted-version when master key encryption is not enabled. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix FixEncryptedVersionTest testVincent Petry2021-06-291-153/+80
| | | | | | | Fixed setup to use EncryptionTrait like other existing tests. Fix expectations to not rely on side effects from previous test cases. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Downstream FixEncryptedVersionTestVincent Petry2021-06-291-0/+373
Signed-off-by: Vincent Petry <vincent@nextcloud.com>