Kenneth Hsu
738a36092d
Add test for wildcard filter patterns.
2018-12-24 18:47:46 -08:00
Kenneth Skovhede and GitHub
8d3ed27ac9
Merge pull request #3538 from LacunaSoftware/improve-backup-logs-ui
...
New improvements on Backup Logs UI
2018-12-13 15:01:16 +01:00
Mikael Mello
965bd6d761
result-classes: rename properties of RestoreResults to be consistent with BackupResults
2018-12-12 12:14:11 -02:00
Kenneth Hsu
8dd3aeaf26
Use invariant culture in calls to ToLower and ToUpper.
2018-12-11 21:21:07 -08:00
verhoek
72b1f6b6f8
Updated project files.
2018-11-02 22:45:07 +01:00
verhoek
8bb406cd15
Migrated to use the platform class.
2018-11-02 22:17:16 +01:00
verhoek
b2cc18426c
Renamed Library.IO to Library.Common.IO.
...
Moved basic Platform functions to Library.Common.Platform.
Turned IO_OS into property within Library.Common.
2018-11-02 21:34:07 +01:00
verhoek
6755d8cd1c
Unnecessary return removed.
2018-11-02 17:54:10 +01:00
verhoek
9fb38ebe9a
Continuation of Util.DirectorySeparatorString replacements.
2018-11-02 17:48:17 +01:00
verhoek
1275f14405
Replaced DirectorySeparatorChar.ToString() calls.
2018-11-02 17:45:00 +01:00
verhoek
71c6aca8a7
Fixed IO calls in Filebackend.
...
Moved FileEntry to Library.IO due to AlphaFS not implementing
System.IO.FileInfo/DirectoryInfo.
2018-11-01 17:56:48 +01:00
verhoek
706dd6b8e8
Added two further tests to test GetDirectories and GetFiles in case no directory exists.
2018-11-01 12:55:10 +01:00
verhoek
d7d8590507
Fixed unit test to see what we can rely using AlphaFS.
2018-10-31 13:05:31 +01:00
verhoek
0b2a43f513
Added unit test to test AlphaFS behaviour.
2018-10-31 12:33:41 +01:00
verhoek
dd74245b75
Handled GetFiles calls at risky spots in combination with PathTooLongExceptions.
2018-10-30 17:16:13 +01:00
verhoek
215334376b
Added unit test for GetPathRoot in case of long paths.
2018-10-29 21:31:49 +01:00
verhoek
4494e43ad8
Simplification.
2018-10-28 16:47:13 +01:00
verhoek
bc053df294
Moved basic IO helper functions to Library.IO.
2018-10-27 12:17:07 +02:00
Kenneth Hsu
0f3ff687da
Add missing test category.
...
The category is needed for the test to run in Travis.
2018-10-23 21:04:00 -07:00
Kenneth Hsu
731a8b1644
Remove unused empty methods.
2018-10-10 21:20:40 -07:00
Kenneth Hsu
d72128ec83
Remove unused method parameters.
2018-10-06 15:09:43 -07:00
Kenneth Hsu
183ae4ede2
Remove additional unused variables.
2018-09-29 12:49:22 -07:00
Kenneth Hsu
9ce1e807c7
Remove unused variables and fields.
2018-09-29 10:41:27 -07:00
Kenneth Skovhede and GitHub
7330aebaeb
Merge pull request #3394 from warwickmm/remove_unnecessary_indirection
...
Use built-in method to expand environment variables
2018-09-28 22:25:46 +02:00
Kenneth Hsu
d4692e2d35
Use built-in method to expand environment variables.
...
After we removed the tilde expansion in revision c9aa6cf5fb ("Avoid
performing tilde expansion"), the Utility.ExpandEnvironmentVariables
method simply called System.Environment.ExpandEnvironmentVariables. We
can simplify the code by just referencing the built-in method directly.
2018-09-22 19:59:46 -07:00
Kenneth Hsu
2d397745d0
Add unit test for utility that appends path separator.
2018-09-22 10:19:45 -07:00
Kenneth Hsu
d67c5c393b
Fix whitespace issues.
2018-08-30 21:52:02 -07:00
Kenneth Hsu
c54d2bb18a
Add culture-aware string comparison tests.
...
This concerns issue #3342 .
2018-08-30 21:51:53 -07:00
Kenneth Hsu
08ac538983
Fix expected Google Cloud Storage URL in unit test.
2018-08-25 09:44:43 -07:00
Kenneth Skovhede
baee3e312e
Added delay to the exit code tests to avoid overlapping timestamps
2018-08-15 08:15:15 +02:00
Kenneth Skovhede
1626037fd7
Changed path where scripts are created to avoid littering the base folder with junk
2018-08-14 11:30:17 +02:00
Kenneth Skovhede
494fccd931
Added support for multiple exit codes, and added a unittest to verify that the exit codes are handled correctly
2018-08-14 11:09:16 +02:00
Kenneth Skovhede
d0026d8028
Reworked the file-path query, and enabled experimentally changing it by setting the environment variable TEST_QUERY_VERSION=1 or TEST_QUERY_VERSION=2.
...
Added check to the unittests to catch cases where it scans too many files.
2018-08-13 13:23:59 +02:00
Kenneth Skovhede
52cb9fb1f9
Removed the deprecated --store-metadata option.
...
Rewrote the logic for pre-filtering files based on timestamps/metadata to be more verbose and well documented.
Fixed an issue where `--check-filetime-only` also checked the file size, which was not present due to the reduced query used to grab only the lastmodified information.
Fixed a problem where the check for existing metadata was wrong and produced a warning.
This fixes #3204
This handles some of #3194
2018-08-11 11:48:19 +02:00
Kenneth Skovhede and GitHub
dceb5bfb43
Merge pull request #3263 from verhoek/webapi/googlecloudstorage
...
Webapi refactoring - google cloud storage
2018-06-14 10:23:36 +02:00
Kenneth Skovhede
8427774d85
Added more aggressive testing of data during unittest
2018-06-13 21:42:34 +02:00
Kenneth Skovhede
68c36edbf7
Added a new unittest option that disables auto-fixes to make sure we do not mask errors by auto-fixing them during unittests
2018-06-12 09:31:39 +02:00
Kenneth Skovhede
1322455786
Improved output when running unittest
2018-06-12 08:52:57 +02:00
Kenneth Skovhede
ae17df3736
Minor fix to the unittest output
2018-06-11 11:22:03 +02:00
verhoek
a850ed8f26
Removed inheritance in favor of separation of googledrive / cloud storage api.
2018-06-11 10:19:03 +02:00
verhoek
441d893a49
Changes to make codacy happier.
2018-06-09 14:19:18 +02:00
verhoek
d0a53f4b85
Added AboutInfo test.
2018-06-09 10:55:18 +02:00
verhoek
7b5779ca5d
Merge remote-tracking branch 'origin' into webapi/googlecloudstorage
...
# Conflicts:
# Duplicati/Library/Backend/GoogleServices/GCSConfig.cs (line endings)
# Duplicati/Library/Backend/GoogleServices/GoogleCloudStorage.cs (readonly)
2018-06-09 08:49:23 +02:00
Kenneth Hsu
214e4c0428
Add test for reading stream into buffer.
2018-06-04 20:35:22 -07:00
verhoek
fe8ccfbab3
Added createfolder unit test for googledrive.
2018-06-03 19:52:22 +02:00
Kenneth Hsu
afdae80716
Fix line ending issues.
2018-06-02 13:19:49 -07:00
verhoek
3691d6dfdf
Initiated basic unit tests to ensure correct url helper functions.
2018-05-29 22:13:09 +02:00
verhoek
bbf5d71782
Merge branch 'master' into webapi/googlecloudstorage
2018-05-23 20:14:06 +02:00
verhoek
41234a314d
Introduced UrlPath wrapper for stringbuilder to ease concatenation of multiple paths.
...
Started cleaning googlecloud services API.
2018-05-18 22:55:09 +02:00
verhoek
2f41e02ca9
Merge branch 'master' into refactored
2018-05-18 08:05:19 +02:00