Commit Graph
167 Commits
Author SHA1 Message Date
Kenneth Skovhede 98ce287522 Rename to fix warnings
Recent C# compilers warn if async methods are not suffixed with `Async`.

This PR fixes a number of such warnings.
2026-06-08 13:16:17 +02:00
Kenneth Skovhede 1e216110e1 Merge commit '1250b1c9641bef873c60df8a02b1194fe4ed36ca' into feature/full-disk-ntfs 2026-06-03 22:01:37 +02:00
Kenneth Skovhede bb654749b8 Merge remote-tracking branch 'origin/master' into feature/full-disk-ntfs 2026-06-03 21:51:15 +02:00
Kenneth SkovhedeandGitHub 1250b1c964 Merge pull request #6945 from duplicati/feature/context-aware-testing
Added read-only testing to backends
2026-06-03 21:35:14 +02:00
Kenneth Skovhede 9a9ea55fed Made the ignore in tests a bit more explicit 2026-06-03 17:40:14 +02:00
Kenneth Skovhede 4d569c51e4 Added read-only testing to backends
This PR adds a flag to the test method so we can choose to test for read-only access (needed for restore) or read-write (needed for backups).

Additionally, this PR fixes a logic bug in that the BackendSourceProvider would not actually test the connection, but just check the placeholder element returned (which is always returned). With this PR the backend's ListAsync command is tested fully.

Also renamed the methods on ISourceProvider to have the `...Async` prefix.

This replaces #6939
2026-06-03 17:27:34 +02:00
Kenneth Skovhede 211c58cbbc Added support for supressing warnings during tests 2026-06-03 14:34:42 +02:00
Kenneth Skovhede eeb323b51d Make FS parsing experimental
This PR flips the logic so filesystem parsing is not enabled by default. This means that any disk source will be treated as an opaque stream of blocks.

Brave users can still try out the filesystem parsing, but we need more time to ensure the logic works across variations on filesystems.
2026-06-03 10:37:58 +02:00
Kenneth Skovhede 179d1ceb47 Make controller Async
This PR has a large blast radius because it takes the final step and bumps up the Controller to be fully async.

We have historically done a piece-by-piece update, so all operations were already async but the controller interface was kept synchronous.

With this update, the controller is now fully async and all tests are updated.

Most places where the new C# compiler warns about function names not ending in `Async` were also adressed, giving a massive refactor change.

Functionally, no changes are done.
2026-05-13 15:04:13 +02:00
Carl Johnsen 9a7e6d2c1e Merge branch 'master' into feature/full-disk-ntfs 2026-04-29 14:05:20 +02:00
Carl Johnsen e71dff4b27 Added timing to the filesystem aware tests 2026-04-29 10:53:45 +02:00
Carl JohnsenandCopilot b186237ef5 Timing Test_FileSystem_IncrementalBackup_UnchangedBlocks_Skipped
Co-authored-by: Copilot <copilot@github.com>
2026-04-29 10:21:03 +02:00
Carl Johnsen d802c37909 Added NTFS test cases to the file system aware tests 2026-04-20 14:11:06 +02:00
Carl Johnsen b4b6def8d3 Updated the MFT record factory for NTFS tests to match the attribute header 2026-04-17 11:24:44 +02:00
Kenneth Skovhede c0f40e19ca Updated copyright year to 2026 across the project 2026-04-16 15:21:24 +02:00
Carl Johnsen b5def58a80 Switched disk image integration tests to individual but derived classes to have the tree structure in the test explorer as well. 2026-03-25 08:00:34 +01:00
Carl Johnsen 8bf92fe57c Made the full round trip tests file be shorter, by having the shared method call operating system specific helpers for whether or not a test should be skipped. 2026-03-25 07:56:33 +01:00
Carl Johnsen 02c2e16006 Restructured disk image integration tests into a subfolder with multiple files 2026-03-25 06:10:31 +01:00
Carl Johnsen d76deb84f1 Added more NTFS tests 2026-03-24 19:52:15 +01:00
Carl Johnsen 4305a2cf41 Added test for checking the NTFS MFT walker always marks the NTFL journal as being allocated. 2026-03-24 19:41:41 +01:00
Carl Johnsen 1af258ad09 Added MFT walker tests 2026-03-24 18:46:22 +01:00
Carl Johnsen c3e4ad219c Added tests for NTFS bitmap parsing 2026-03-24 17:58:37 +01:00
Carl Johnsen 862d1a2995 Added tests for NTFS boot sector parsing 2026-03-24 13:58:10 +01:00
Carl Johnsen 3f62a85892 Post Fat32 tests build warning fixes 2026-03-23 21:04:44 +01:00
Carl Johnsen a187332ab3 Handled build warnings in FAT32 tests 2026-03-23 20:17:18 +01:00
Carl Johnsen 7537f4bf2d Refactored disk image unit tests into separate files 2026-03-23 20:14:56 +01:00
Carl Johnsen b41c613347 Paths handled by the disk image feature doesn't treat all separators as / 2026-03-18 07:03:52 +01:00
Carl Johnsen 30d33d2056 Fixed the unit test related to the geometry file, now that the method has been updated. 2026-03-16 16:44:13 +01:00
Carl Johnsen 2b5db218ad Post restructure namespace fixes 2026-03-16 11:10:20 +01:00
Carl Johnsen 20ff1c73b1 Restructured Disk Image related files 2026-03-16 11:10:20 +01:00
Carl Johnsen 11cb9c570d Revert mac specific fix regarding unknown filesystem 2026-03-13 18:07:12 +01:00
Carl Johnsen 0d5081ae33 The other filesystem tests should also be using FAT32 for source, and should also ignore the option warning. 2026-03-13 16:53:30 +00:00
Carl Johnsen e6fbc8150c Added option to disable filesystem-aware functionality 2026-03-13 17:37:51 +01:00
Carl Johnsen 0bc185062a Incorrectly threw error on Unknown file systems on macOS 2026-03-13 13:36:33 +01:00
Carl Johnsen 522755f3ee Made the file system tests generic so they can test multiple file systems 2026-03-13 13:25:35 +01:00
Carl Johnsen e9c0a65c21 Handled FAT32 detection error due to endianness 2026-03-13 10:55:13 +01:00
Carl Johnsen 5fa136bccf Added inecremental FAT32 integration test 2026-03-13 09:21:48 +01:00
Carl Johnsen acfc691bf0 MacOS disk helper ReAttach wasn't using the readonly argument. 2026-03-13 09:15:52 +01:00
Carl Johnsen 64c1e26795 Added FAT32 aware integration tests 2026-03-13 08:49:25 +01:00
Carl Johnsen 19685c4e9c Added FAT32 stream tests 2026-03-12 15:08:45 +01:00
Carl Johnsen 4d295e4101 Added FAT32 file system tests 2026-03-12 15:08:32 +01:00
Carl Johnsen 39f16f471d Added last modified timestamp to file system files 2026-03-12 15:06:43 +01:00
Carl Johnsen e3a37f22a1 Added tests for the FAT32 directory walker 2026-03-12 14:39:41 +01:00
Carl Johnsen bc01ef75ff Added tests for the FAT32 table reader 2026-03-12 14:23:36 +01:00
Carl Johnsen d598c609ad Added tests for the FAT32 parser 2026-03-12 14:05:58 +01:00
Carl Johnsen 31121d3730 Added Windows overhead for the disk sizes, as init takes 16 MB 2026-03-12 09:29:05 +00:00
Carl Johnsen 9b1af5197d Incorrect key used for getting partition address on Mac 2026-03-12 09:04:28 +01:00
Carl Johnsen a62d23fab4 Reintroduced old code for cleaning up disks 2026-03-12 06:17:46 +01:00
Carl Johnsen 415349c9c0 Removed unused helper methods 2026-03-11 15:47:41 +01:00
Carl Johnsen e25cd65314 Call disk helpers cleanup methods instead 2026-03-11 15:47:31 +01:00