Commit Graph
25 Commits
Author SHA1 Message Date
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
Kenneth Skovhede d998ca81d3 Persist used compression module
This PR fixes an issue with using a non-default compression method. The recreate database will detect the compression module correctly and restore everything. But when recreating the database it will look at the `compression-module` from the given options and persist this value into the database.

If the recreate was made without passing in the compression module in the options, the default compression module would be persisted to the database, which would later cause problems for operations that rely on this value.

With this PR there is a test for the behavior, and the compression module is extracted from the first volume, similar to how blocksize and other options are written back.
2026-05-08 12:53:52 +02:00
aureliandevel 575cd643ee Drops the unnecessary local DB update post-recompress, and associated tests. 2026-04-23 10:14:51 +10:00
Kenneth SkovhedeandGitHub e821b72bf2 Merge branch 'master' into fix/maintenance-write-path-config-persistence 2026-04-17 12:34:19 +02:00
Kenneth Skovhede c0f40e19ca Updated copyright year to 2026 across the project 2026-04-16 15:21:24 +02:00
aureliandevel ccf39670d1 Fix persisted write-path option restore for maintenance and recompress (#6824) 2026-04-04 14:37:31 +11:00
Kenneth Skovhede 8fca01f64f Updated NUnit
This closes #4939
2025-06-13 11:48:24 +02: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
Kenneth Skovhede 57c8c025d1 This fixes an issues with the recovery tool that would mangle names if no encryption module is set on the source files.
This uses a test provided in #4490 to verify.
This fixes #4490
2024-11-01 17:01:30 +01:00
Kenneth Skovhede 6ab2a63218 Extended recovery tool tests to cover more combinations 2024-06-21 15:15:01 +02:00
JanandGitHub f79b1f93c4 Merge branch 'master' into fix-recoverytool-empty 2024-05-11 23:49:24 +02:00
Kenneth Skovhede 115e887802 Implemented new updater logic that supports multi-arch distributions. 2024-03-15 14:18:56 +01:00
Kenneth Skovhede 473c6cbbb8 Merge commit '4f577c65a4d8806f79637c50c21ca3a683c5a07a' into feature/kestrel-avalonia-upgrade 2024-03-04 12:21:53 +01:00
Kenneth Skovhede d7f027b9e2 Fixed usings in unit tests 2024-03-03 15:41:49 +01:00
Kenneth Skovhede aa20088c39 Tool based upgrade of all projects with some manual update 2024-03-01 14:29:54 +01:00
Kenneth Skovhede 40dd3c6816 Updated all license mentions to MIT 2024-02-28 15:45:30 +01:00
Jojo-1000 cff1049347 Add unit tests for recovery tool restore paths.
Test that paths are generated correctly from a different source OS.
Also test that empty files are restored by recovery tool.
2023-07-11 22:48:28 +02:00
Thomas Suckow 5956b771f0 Cleanup inconsistent overrides of test SetUp and TearDown.
Also add some memory usage diagnostics
2022-05-05 22:30:15 -07:00
Kenneth Hsu d5b6386cfe Use helper method to compare contents of directories. 2020-09-27 14:06:03 -07:00
Dean Ferreyra f4195e4eb0 Address review comments from @warwickmm
Replace `VerifyDir` and `CompareFiles` with
`AssertDirectoryTreesAreEquivalent` and `AssertFilesAreEqual`.

Move `WriteFile` to `TestUtils`.

Add "Symlink" category to start.sh.
2020-09-11 20:06:53 -07:00
Kenneth Hsu e1a6ae4483 Check operation results for errors and warnings in tests. 2020-07-05 18:50:10 -07:00
Kenneth Hsu 5ff5961019 Test RecoveryTool using file-based and in-memory index. 2020-01-23 20:45:49 -08:00
Kenneth Hsu 30ea3c05da Fix typo in comment. 2020-01-22 17:44:12 -08:00
Kenneth Hsu 6a6224a10a Reset current directory before removing test files.
The RecoveryTool sets the currenty directory during its operation.  We
must reset the current directory so that the test teardown methods do
not complain that paths are being used by other processes.
2020-01-18 14:44:05 -08:00
Kenneth Hsu bfbae6fcaf Add test for restoring files using RecoveryTool. 2020-01-18 09:36:03 -08:00