Commit Graph
569 Commits
Author SHA1 Message Date
Carl Johnsen 4943a0de2d Found another suffix > prefix change 2025-02-03 19:40:55 +01:00
Carl Johnsen f38fc6ba18 Extended the general remote synchronization test with more general usage 2025-02-03 19:21:08 +01:00
Carl Johnsen 4d007795a8 Added a test for the two verify flags 2025-02-03 13:47:18 +01:00
Carl Johnsen 0e86f44593 Added a test for dry run 2025-02-03 13:41:01 +01:00
Carl Johnsen 2dd3aaffb3 Added a test for the retention option with an empty source directory 2025-02-03 13:21:45 +01:00
Carl Johnsen 55aca59aeb Added a test for whether an empty source deletes destination files. 2025-02-03 13:13:53 +01:00
Carl Johnsen a8edca231b Added a test with everything being empty 2025-02-03 13:12:38 +01:00
Carl Johnsen 217c26c663 Added more tests of the log level enum 2025-02-03 10:32:30 +01:00
Carl Johnsen 347e299132 Merge branch 'master' into feature/rsync_tool 2025-02-03 09:48:52 +01:00
Carl Johnsen f88c2971a3 Added a test for parsing all of the commandline options 2025-02-03 09:06:30 +01:00
Carl Johnsen 4b6d73ddbd Included Duplicati.CommandLine to get the console output sink for logging. 2025-01-30 13:22:45 +01:00
Carl Johnsen c40ee2e156 Added light profiling to the console output of the rsync tool test 2025-01-29 04:33:54 +01:00
Carl Johnsen 35f75ce70e Proper forwarding of the test options to the rsync tool during test 2025-01-29 04:33:29 +01:00
Carl Johnsen dc75b4c09c Proper OS independant paths in the rsync tool test 2025-01-29 04:32:51 +01:00
Carl Johnsen 3d194e8da5 Reworded confirm commandline option description 2025-01-28 14:39:29 +01:00
Carl Johnsen 552f9747e2 Modified ToolTests.GenerateTestData to use async/await for improved performance 2025-01-28 09:49:22 +01:00
Carl Johnsen 2df0710d7e Added the capability to forward multiple tokens to an option 2025-01-28 09:48:51 +01:00
Kenneth SkovhedeandGitHub f7b7555e87 Fixes for tests (#5918)
* Two small test fixes

* Ignore exceptions when comitting an empty transaction

* Attempt to fix FTP connection issue

* Unified test by having a single download function.
Added DNS probing call to attempt fixing sporadic DNS errors.

* Fixed argument order

* Avoid creating temp file during tests, if not needed
2025-01-28 08:55:28 +01:00
Kenneth SkovhedeandGitHub d99f74ed94 Rewrite the backend manager. (#5896)
* Rewrite the backend manager.

This creates a new more logic backend manager that handles all backend operations.

For each top-level operation, there is now a single backend manager instance that is passed to sub-commands.

The internals of the backend manager are now rewritten to use async logic instead of threading.

The design uses a single task runner that dispatches operations and honors concurrent settings and limits from one place.

The logic for each operation has been moved into a separate files/classes to make it easier to understand each operation.

This fixes #5804

* Fixed a few issues with not awaiting tasks

* Fixed not creating empty databases

* Fixed an issue with hashes not being recorded on download

* Reworked the download logic to avoid attempting to decrypt the file if it has been modified.

* Review fixes

* Renamed db collector to better reflect the purpose.

* Review fixes
2025-01-28 08:54:50 +01:00
Carl Johnsen c0f4146ba7 Changed the rsync unit test to use the test folders and generate test data 2025-01-27 10:06:49 +01:00
Carl Johnsen 3c62fb7e39 Preliminary rsync tool test implemented. 2025-01-27 09:53:48 +01:00
Kenneth SkovhedeandGitHub 6c493186a7 Changed MissingFileDetected message to Warning (#5893)
* Changed `MissingFileDetected` message to `Warning`

* Updated tests to match errors/warning counts
2025-01-22 21:18:33 +01:00
Kenneth SkovhedeandGitHub 997891525a Updated license-updater to update csproj files (#5898)
* Updated license-updater to update csproj files

* License updates
2025-01-22 21:04:19 +01:00
Carl Johnsen af69436a1e Added preliminary unittest for the remote synchronization tool 2025-01-22 06:10:43 +01:00
Carl Johnsen 628684a2f7 Added the correct PR number to the new test 2025-01-17 12:34:52 +01:00
Carl Johnsen 35bf86799b Added a unit test for restore of a partial file 2025-01-17 12:29:11 +01:00
Kenneth SkovhedeandGitHub 52a73c3418 Fixed issue 5845 (#5880)
* Fixed issue 5845

This commit introduces the test that makes the error.

* Fixed query cleaning up duplicates, in the case that where a block has multiple valid source candidates.

* Reduced number of replicas for the test
2025-01-16 14:27:15 +01:00
Kenneth SkovhedeandGitHub d64c7e721f Handle duplicated missing blocks (#5858)
* Implemented test for #5845

* Removed unittests not executing cleanup.

* Cleanup commit

* Fixed the query that causes the constraint violation
2025-01-10 09:24:54 +01:00
Kenneth SkovhedeandGitHub 382ba172b3 Fixed duplicate entries in index files (#5856)
* Added test to verify that compression modules will mask duplicate entries, if present

* Because there are likely many, otherwise valid, dindex zip archives with duplicated blocklists out there, the log message is now verbose.

To make sure we no longer create archives with duplicated entries, the `--unittest-mode` option makes this a warning that is checked in most tests.

* Added guard in `IndexVolumeCreator` to prevent creating zip files with duplicated block lists.

* Added debug check for duplicates

* Fixed the duplicate test
2025-01-10 09:24:31 +01:00
Kenneth SkovhedeandGitHub 9464caf622 Feature/update license 2025 (#5851)
* Fixed some minor whitespace issues

* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Carl Johnsen 284b14b72f Merge branch 'master' into bugfix/restore-overwrite 2025-01-06 14:43:03 +01:00
Carl Johnsen e88b16dd86 Add assertions to verify untouched files during restore operations 2025-01-05 12:28:08 +01:00
Carl Johnsen 5b7314621c Reduced test file size to speed up the test. File size shouldn't matter too much here. 2025-01-05 12:17:16 +01:00
Carl Johnsen 193b5a8e64 Extended the 5825 test to verify finding an already restored but timestamp retargeted file. 2025-01-05 12:15:43 +01:00
Carl Johnsen 85ddeaba51 Fixed old assertion message in restore test 2025-01-05 11:54:38 +01:00
Carl Johnsen 23aefd51c9 Add unit test for Issue #5825 Restore behavior with overwrite option 2025-01-05 11:52:12 +01:00
Carl Johnsen 1157f7c7bd Update RestoreHandlerTests to expect warning for non-created restore folder 2025-01-03 21:38:03 +01:00
Carl Johnsen ec001e7e73 Added a test to capture issue #5826 2025-01-03 20:34:45 +01:00
Carl Johnsen 4b0033d8e8 Fixed bug where if the parent folder contained the name "10", the DisruptionTests.FilesetFiles test would fail 2024-12-20 08:23:32 +01:00
Kenneth SkovhedeandGitHub ff1b2b7990 Simplified task control (#5753)
* Simplified task control by having all logic in a single class and using async control mechanism
* Fixed the tests
* Made the marking of a backup partial explicitly communicated if the enumeration process is stopped.
* Added support for pausing active transfers
* Introduced transfer token to abort operations.
* Updated the way LiveControl is emitting events.
* Retains the paused state of the server across reboots, this fixes #5760.
* Reworked the way throttle speeds are propagated through LiveControls.
* Added option to pause transfers in the UI.
* Removed throttle settings from the LiveControls class so it is exclusively handled by the ApplicationSettings.
* Removed `thread-priority` as it does not work at all when tasks are used.
* Fixed the stop dialog and API to only support stop and abort.
* Removed unused variables
2024-12-18 08:27:59 +01:00
Carl Johnsen 345701576c Merge branch 'master' into performance/restoreopt 2024-12-05 12:33:30 +01:00
Carl Johnsen ee7e5add21 Fixed bug in CompactDisruptionTests where the DeterministicErrorBackend was used, when the intention is to use the regular backend 2024-12-05 12:11:49 +01:00
Carl Johnsen 9e62a9efe4 Fixed sleeping in between backups being too short for fast machines. 2024-12-04 06:48:26 +01:00
Carl Johnsen 2469475ef2 Added a test for when trying to restore an already existing symlink 2024-12-03 10:04:29 +01:00
Kenneth Skovhede d941ca3b7d Merge branch 'feature/fix-dst-changing-scheduled-time' of github.com:duplicati/duplicati into feature/fix-dst-changing-scheduled-time 2024-11-25 14:24:27 +01:00
Kenneth Skovhede 06329d591f Fixed test on Windows 2024-11-25 13:39:39 +01:00
Kenneth Skovhede 0a5baa127c Merge remote-tracking branch 'origin/master' into feature/fix-dst-changing-scheduled-time 2024-11-25 13:05:28 +01:00
Kenneth Skovhede 74bb22e022 Implemented support for keeping time-of-day stable across daylight savings time changes.
This fixes #1364
2024-11-05 21:26:30 +01:00
Kenneth Skovhede 68fa9afa23 Fixed tests and fixed a missing encode 2024-11-05 12:44:00 +01:00
Kenneth Skovhede a72bf27aa3 Merge remote-tracking branch 'origin/master' into feature/add-secret-provider 2024-11-05 11:48:30 +01:00