Kenneth Skovhede
c0f40e19ca
Updated copyright year to 2026 across the project
2026-04-16 15:21:24 +02:00
Kenneth Skovhede
8fca01f64f
Updated NUnit
...
This closes #4939
2025-06-13 11:48:24 +02:00
Kenneth Skovhede and GitHub
9464caf622
Feature/update license 2025 ( #5851 )
...
* Fixed some minor whitespace issues
* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Jojo-1000
917e2cd0c4
Remove obsolete custom platform detection.
2024-05-30 02:14:05 +02: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
Kenneth Hsu
a58f6b5d69
Add test for restoring file with newline character in name.
...
This concerns #4508 .
2021-05-14 18:36:28 -07:00
Kenneth Hsu
4cc7beea2c
Add test for restoring directory containing problematic filenames.
2021-05-14 18:34:52 -07:00
Kenneth Hsu
53621c984d
Simplify verification of restored file in test.
2021-05-14 18:34:52 -07:00
Kenneth Hsu
a8b0df57d4
Avoid clock issues when quickly running successive backups in tests.
...
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-27 10:44:25 -07:00
Dean Ferreyra
e3b8a12ec1
Unit test improvements per review comments
2020-09-12 17:03:48 -07:00
Dean Ferreyra
eafe7320e9
Address review comments
2020-09-12 14:45:55 -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
Dean Ferreyra
f56f64e541
Merge branch 'master' into symlink_unit_tests
2020-09-09 20:03:32 -07:00
Dean Ferreyra
be6ac941ea
Add symlink policy tests
...
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-07 22:50:21 -07:00
Dean Ferreyra
93601d0a82
Address review comments from @warwickmm
2020-09-07 18:56:59 -07:00
Dean Ferreyra
27da5a4dc7
Include Windows in tests for directory names with wildcards
2020-09-06 15:00:48 -07:00
Kenneth Hsu
7d13d9ed81
Add tests for directory names with wildcards.
2020-09-05 15:05:11 -07:00
Kenneth Hsu
d99d40717d
Merge remote-tracking branch 'upstream/master' into test_invalid_windows_paths
...
This allows us to simplify the ProblematicPathTests because the test
teardown methods can now handle deleting directories containing
problematic paths.
2020-07-31 16:29:28 -07:00
Kenneth Hsu
ef8209bc21
Add test to verify number of included paths.
2020-07-23 19:46:23 -07:00
Kenneth Hsu
443514dabd
Rename test method.
2020-07-23 19:44:10 -07:00
Kenneth Hsu
466bc3786b
Extract creation of problematic file to method.
2020-07-23 19:43:24 -07:00
Kenneth Hsu
1b7d1533ee
Add test for excluding problematic paths.
2020-07-23 19:40:00 -07:00
Kenneth Hsu
654ca45892
Verify contents of restored problematic paths.
...
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 14:07:26 -07:00
Kenneth Hsu
941c8892b0
Rename test methods.
2020-07-18 18:54:10 -07:00
Kenneth Hsu
c8b1e093fb
Add test to backup and restore paths with problematic suffixes.
...
Paths that end with a dot or space are problematic on Windows.
This concerns issue #3839 .
This concerns pull request #4256 .
2020-07-18 18:20:27 -07:00
Kenneth Hsu
7f6411eca9
Add test to backup and restore problematic long path.
...
This tests a path that exceeds typical limits on Windows.
This concerns issue #3839 .
This concerns pull request #4256 .
2020-07-18 18:15:34 -07:00
Kenneth Hsu
a837144b42
Add class to help remove problematic paths from tests.
...
This will make it easier to create and clean up tests that involve
problematic paths (e.g., paths that end with a dot or space on Windows).
2020-07-18 18:10:02 -07:00