Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-02-06Test deliberate test failure.Kenneth Hsu
2020-12-19Merge pull request #4380 from warwickmm/fix_purge_broken_files_dry_runKenneth Skovhede
Fix error encountered during dry-run of purge-broken-files
2020-12-01Add test for purging broken files with dry-run.Kenneth Hsu
This concerns #4379.
2020-11-02Add test for specifying remote URL using run-script-before.Kenneth Hsu
This concerns issue #3651.
2020-11-02Allow custom commands to be provided to CreateScript test helper.Kenneth Hsu
2020-10-27Merge pull request #4352 from duplicati/feature/new_unittest_datahostKenneth Skovhede
Changed unittes datahost to reduce S3 transfer charges
2020-10-19Changed to using a proxied host to reduce S3 transfer charges from unittestsKenneth Skovhede
2020-09-28Use helper method to compare contents of directories.Kenneth Hsu
2020-09-27Avoid 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-23Merge pull request #4293 from warwickmm/fix_export_encodingKenneth Skovhede
Avoid decoding URL parameters when removing passwords
2020-09-13Add `Assert.Fail` to catch unexpected symlink policiesDean Ferreyra
2020-09-13For "Ignore" policy, also ensure a file doesn't existDean Ferreyra
2020-09-13Unit test improvements per review commentsDean Ferreyra
2020-09-13Address review commentsDean Ferreyra
2020-09-13Add back missing stream reset to AssertFilesAreEqualDean Ferreyra
2020-09-12Fix typo in log and assert messagesDean Ferreyra
2020-09-12Restore use of Utility.CompareStreams in AssertFilesAreEqualDean Ferreyra
For performance reasons, use `Utility.CompareStreams` in AssertFilesAreEqual.
2020-09-12Add tolerance to file time comparisonsDean Ferreyra
2020-09-12Address review comments from @warwickmmDean Ferreyra
Replace `VerifyDir` and `CompareFiles` with `AssertDirectoryTreesAreEquivalent` and `AssertFilesAreEqual`. Move `WriteFile` to `TestUtils`. Add "Symlink" category to start.sh.
2020-09-10Merge branch 'master' into symlink_unit_testsDean Ferreyra
2020-09-08Add symlink policy testsDean 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-08Address review comments from @warwickmmDean Ferreyra
2020-09-07Include Windows in tests for directory names with wildcardsDean Ferreyra
2020-09-06Add tests for directory names with wildcards.Kenneth Hsu
2020-08-24Remove unused local variable.Kenneth Hsu
2020-08-24Add 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-24Clean up code.Kenneth Hsu
2020-08-24Extract local function to method.Kenneth Hsu
2020-08-07Merge pull request #4269 from warwickmm/target_net_471Kenneth Skovhede
Target .NET Framework 4.7.1
2020-08-07Merge pull request #4261 from warwickmm/avoid_deleting_unrelated_filesKenneth Skovhede
Avoid deleting unrelated files when removing backup configuration
2020-08-07Merge pull request #4260 from warwickmm/remove_unnecessary_path_combineKenneth Skovhede
Remove unnecessary call to Path.Combine
2020-08-07Merge pull request #4259 from warwickmm/test_check_warnings_and_errorsKenneth Skovhede
Check for errors and warnings in unit tests
2020-08-07Merge pull request #4257 from warwickmm/test_invalid_windows_pathsKenneth Skovhede
Add tests for invalid Windows paths
2020-08-01Merge pull request #4274 from dferreyra/CommandLineOperationsTests_setupwarwickmm
Fix setup/teardown for CommandLineOperationsTests
2020-08-01Merge remote-tracking branch 'upstream/master' into test_invalid_windows_pathsKenneth Hsu
This allows us to simplify the ProblematicPathTests because the test teardown methods can now handle deleting directories containing problematic paths.
2020-07-31Fix setup/teardown for CommandLineOperationsTestsDean 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-30Change tests to work with long paths in WindowsDean Ferreyra
Change SystemIOWindows.PathGetFullPath() to convert forward slashes to backslashes. Change Duplicati.UnitTest.BasicSetupHelper.ZipFileExtractToDirectory() to rely on slash fix-ups.
2020-07-28Change tests to work with long paths in WindowsDean 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-27Target .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-24Add test to verify number of included paths.Kenneth Hsu
2020-07-24Rename test method.Kenneth Hsu
2020-07-24Extract creation of problematic file to method.Kenneth Hsu
2020-07-24Add test for excluding problematic paths.Kenneth Hsu
2020-07-21Rename test method.Kenneth Hsu
2020-07-21Add test to check that only backend files with correct prefix are deleted.Kenneth Hsu
This concerns issue #2678.
2020-07-21Add test to check that only relevant backend files are deleted.Kenneth Hsu
This concerns issues #3845, and #4244.
2020-07-21Remove unnecessary call to Path.Combine.Kenneth Hsu
2020-07-20Check for errors and warnings in unit tests.Kenneth Hsu
2020-07-20Verify 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-19Rename test methods.Kenneth Hsu