Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-02-06 | Test deliberate test failure. | Kenneth Hsu | |
2020-12-19 | Merge pull request #4380 from warwickmm/fix_purge_broken_files_dry_run | Kenneth Skovhede | |
Fix error encountered during dry-run of purge-broken-files | |||
2020-12-01 | Add test for purging broken files with dry-run. | Kenneth Hsu | |
This concerns #4379. | |||
2020-11-02 | Add test for specifying remote URL using run-script-before. | Kenneth Hsu | |
This concerns issue #3651. | |||
2020-11-02 | Allow custom commands to be provided to CreateScript test helper. | Kenneth Hsu | |
2020-10-27 | Merge pull request #4352 from duplicati/feature/new_unittest_datahost | Kenneth Skovhede | |
Changed unittes datahost to reduce S3 transfer charges | |||
2020-10-19 | Changed to using a proxied host to reduce S3 transfer charges from unittests | Kenneth Skovhede | |
2020-09-28 | Use helper method to compare contents of directories. | Kenneth Hsu | |
2020-09-27 | Avoid clock issues when quickly running successive backups in tests. | Kenneth Hsu | |
This is an attempt to avoid errors like "System.Exception : The previous backup has time 9/27/2020 5:25:56 PM, but this backup has time 9/27/2020 5:25:55 PM. Something is wrong with the clock." We are seeing these errors often recently in AppVeyor. | |||
2020-09-23 | Merge pull request #4293 from warwickmm/fix_export_encoding | Kenneth Skovhede | |
Avoid decoding URL parameters when removing passwords | |||
2020-09-13 | Add `Assert.Fail` to catch unexpected symlink policies | Dean Ferreyra | |
2020-09-13 | For "Ignore" policy, also ensure a file doesn't exist | Dean Ferreyra | |
2020-09-13 | Unit test improvements per review comments | Dean Ferreyra | |
2020-09-13 | Address review comments | Dean Ferreyra | |
2020-09-13 | Add back missing stream reset to AssertFilesAreEqual | Dean Ferreyra | |
2020-09-12 | Fix typo in log and assert messages | Dean Ferreyra | |
2020-09-12 | Restore use of Utility.CompareStreams in AssertFilesAreEqual | Dean Ferreyra | |
For performance reasons, use `Utility.CompareStreams` in AssertFilesAreEqual. | |||
2020-09-12 | Add tolerance to file time comparisons | Dean Ferreyra | |
2020-09-12 | Address review comments from @warwickmm | Dean Ferreyra | |
Replace `VerifyDir` and `CompareFiles` with `AssertDirectoryTreesAreEquivalent` and `AssertFilesAreEqual`. Move `WriteFile` to `TestUtils`. Add "Symlink" category to start.sh. | |||
2020-09-10 | Merge branch 'master' into symlink_unit_tests | Dean Ferreyra | |
2020-09-08 | Add symlink policy tests | Dean Ferreyra | |
This adds a basic symlink policy test that performs backups using each symlink policy. If you don't have the required privilege in Windows, you can get an exception trying to create a symbolic link. If an exception is thrown trying to create a symbolic link, the exception is trapped and the test is marked as "Ignored"; e.g., ``` 1) Ignored : Duplicati.UnitTest.SymLinkTests.SymLinkPolicy Client could not create a symbolic link. Error reported: (1314) A required privilege is not held by the client. | Read: [C:\td\backup-data\target] | Write: [C:\td\backup-data\symlink] ``` | |||
2020-09-08 | Address review comments from @warwickmm | Dean Ferreyra | |
2020-09-07 | Include Windows in tests for directory names with wildcards | Dean Ferreyra | |
2020-09-06 | Add tests for directory names with wildcards. | Kenneth Hsu | |
2020-08-24 | Remove unused local variable. | Kenneth Hsu | |
2020-08-24 | Add test for exporting backup configuration to JSON. | Kenneth Hsu | |
This tests that we escape '@' with '%40', as the import code in escape_uri in AppUtils.js cannot handle '@'. This concerns issue #3619. | |||
2020-08-24 | Clean up code. | Kenneth Hsu | |
2020-08-24 | Extract local function to method. | Kenneth Hsu | |
2020-08-07 | Merge pull request #4269 from warwickmm/target_net_471 | Kenneth Skovhede | |
Target .NET Framework 4.7.1 | |||
2020-08-07 | Merge pull request #4261 from warwickmm/avoid_deleting_unrelated_files | Kenneth Skovhede | |
Avoid deleting unrelated files when removing backup configuration | |||
2020-08-07 | Merge pull request #4260 from warwickmm/remove_unnecessary_path_combine | Kenneth Skovhede | |
Remove unnecessary call to Path.Combine | |||
2020-08-07 | Merge pull request #4259 from warwickmm/test_check_warnings_and_errors | Kenneth Skovhede | |
Check for errors and warnings in unit tests | |||
2020-08-07 | Merge pull request #4257 from warwickmm/test_invalid_windows_paths | Kenneth Skovhede | |
Add tests for invalid Windows paths | |||
2020-08-01 | Merge pull request #4274 from dferreyra/CommandLineOperationsTests_setup | warwickmm | |
Fix setup/teardown for CommandLineOperationsTests | |||
2020-08-01 | Merge remote-tracking branch 'upstream/master' into test_invalid_windows_paths | Kenneth Hsu | |
This allows us to simplify the ProblematicPathTests because the test teardown methods can now handle deleting directories containing problematic paths. | |||
2020-07-31 | Fix setup/teardown for CommandLineOperationsTests | Dean Ferreyra | |
Change Duplicati.UnitTest.CommandLineOperationsTests to use `Setup()` instead of `OneTimeSetUp()` to make sure the test files are in place for each test. This fixes #4273. | |||
2020-07-30 | Change tests to work with long paths in Windows | Dean Ferreyra | |
Change SystemIOWindows.PathGetFullPath() to convert forward slashes to backslashes. Change Duplicati.UnitTest.BasicSetupHelper.ZipFileExtractToDirectory() to rely on slash fix-ups. | |||
2020-07-28 | Change tests to work with long paths in Windows | Dean Ferreyra | |
Even in .NET 4.6.2 `System.IO.Compression.ZipFile.ExtractToDirectory()` cannot handle long paths. Replace call to `System.IO.Compression.ZipFile.ExtractToDirectory()` with an equivalent that extracts files to a temporary location and uses I/O functions that support long paths to move them to their final location. In CommandLineOperationsTests.cs, use ISystemIO functions to handle potentially long paths. Add a fix to RecoveryTool for long paths that was missed by #4258. This fixes #3863. | |||
2020-07-27 | Target .NET Framework 4.7.1. | Kenneth Hsu | |
This updates all projects to target .NET Framework 4.7.1. The TencentCOS and Tardigrade backends depend on .NET Standard 2.0. When a .NET Framework prior to 4.7.1 is targeted, the system cannot be sure that all the dependencies exist, so it copies all dependent assemblies to the output directory. This causes many assemblies from the System namespace to become bundled in the release. https://stackoverflow.com/a/48875007 We had previously attempted to make individual projects target 4.7.1 (see pull request #4242), but this can cause compatibility issues when 4.6.2 projects depend on 4.7.1. projects. This will require Mono 5.10.0 or greater (previously, we required 5.0.0 or greater). https://www.mono-project.com/docs/about-mono/releases/5.10.0/#class-libraries This fixes issue #4234. | |||
2020-07-24 | Add test to verify number of included paths. | Kenneth Hsu | |
2020-07-24 | Rename test method. | Kenneth Hsu | |
2020-07-24 | Extract creation of problematic file to method. | Kenneth Hsu | |
2020-07-24 | Add test for excluding problematic paths. | Kenneth Hsu | |
2020-07-21 | Rename test method. | Kenneth Hsu | |
2020-07-21 | Add test to check that only backend files with correct prefix are deleted. | Kenneth Hsu | |
This concerns issue #2678. | |||
2020-07-21 | Add test to check that only relevant backend files are deleted. | Kenneth Hsu | |
This concerns issues #3845, and #4244. | |||
2020-07-21 | Remove unnecessary call to Path.Combine. | Kenneth Hsu | |
2020-07-20 | Check for errors and warnings in unit tests. | Kenneth Hsu | |
2020-07-20 | Verify contents of restored problematic paths. | Kenneth Hsu | |
This is somewhat redundant since the RestoreHandler verifies the hash of the restored file, but it doesn't hurt to check again. | |||
2020-07-19 | Rename test methods. | Kenneth Hsu | |