Commit Graph
158 Commits
Author SHA1 Message Date
mukut1994 9aee4f0181 Fix Test 2019-04-05 18:19:42 +01:00
mukut1994 ed714c20d5 Fix build..... 2019-04-04 23:38:42 +01:00
Sean Templeton b02b19e683 Change Put method name to PutAsync 2019-03-17 18:28:45 -05:00
Sean Templeton 662627a98a Update AlternativeFtp Backend for async Put
Removed System.Net.FtpClient and added the FluentFTP Nuget package which
is the new name of System.Net.FtpClient.
2019-03-03 21:43:13 -06:00
Sean Templeton 0c122ff550 Change IBackend and IStreamingBackend to return Task for Put() 2019-03-03 21:43:10 -06:00
Kenneth Hsu 8a15d782e0 Test importing encrypted configuration with wrong passphrase. 2019-01-17 19:52:41 -08:00
Kenneth Hsu a46269cfcf Add comments to describe tests. 2019-01-17 19:41:55 -08:00
Kenneth Hsu 95f6ed9dee Add comment to explain empty catch block. 2019-01-17 19:21:32 -08:00
Kenneth Hsu 12115c127c Add round-trip test for exporting and importing configurations. 2019-01-17 19:05:47 -08:00
Kenneth Hsu 738a36092d Add test for wildcard filter patterns. 2018-12-24 18:47:46 -08:00
Kenneth SkovhedeandGitHub 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 SkovhedeandGitHub 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 SkovhedeandGitHub 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