Commit Graph
100 Commits
Author SHA1 Message Date
verhoek 2f41e02ca9 Merge branch 'master' into refactored 2018-05-18 08:05:19 +02:00
verhoek d9fc1cac08 Moved travis script steps to separate bash script with trap on error, to prevent continuing executing further steps on error. 2018-05-18 07:57:55 +02:00
verhoek 30cd41585b Corrected spelling function name. 2018-05-16 20:08:40 +02:00
verhoek 7a8a040e4b Renamed unit test category UrlUtility to UriUtility for consistency. Added to travis.yml. 2018-05-16 08:11:17 +02:00
verhoek be79384966 Removed duplicate ? when building urls with query parameters. 2018-05-15 21:50:14 +02:00
verhoek bbf489c86f Corrected appending paths to urls. 2018-05-14 22:53:13 +02:00
verhoek 44b5b00276 Renamed some googledriveapi var names. Modified ListFolder to be more readable. 2018-05-11 19:57:09 +02:00
verhoek 78a46c3a5c Renamed misspelled class urluttility to urlutility and newly added urlutility to uriutility. 2018-05-11 19:09:14 +02:00
verhoek d303db30d6 Replacing magic strings in google drive rest calls by query key value pairs. 2018-05-11 18:23:16 +02:00
Kenneth Hsu b2a1881504 Add Serialization test category to aid CI configuration. 2018-05-05 13:47:28 -07:00
Kenneth Hsu de4004f0af Move result serialization tests to UnitTest project.
This will make it simpler to configure AppVeyor and Travis to run these
tests.
2018-05-05 13:47:28 -07:00
Kenneth Skovhede e9d67ec082 Changed the category for the exclude test to "Filter" 2018-04-24 14:50:10 +02:00
Kenneth Skovhede bfa5b4e705 Integrated the ignore-filenames test into the test for empty folders 2018-04-24 14:48:54 +02:00
Kenneth Skovhede db61e23528 Added sleep statements to the backup steps as they are really fast, and complete in less than a second and thus creates competition to get the latest timestamp with second resolution. 2018-04-24 14:11:45 +02:00
Kenneth Skovhede 565487449d Added unittest to empty folder exclusion 2018-04-24 13:11:28 +02:00
Kenneth Skovhede c6be934747 Implemented empty folder exclusion flag 2018-04-24 13:11:03 +02:00
Kenneth Skovhede 04d5a7fcb2 Removed output spam from a unittest 2018-03-15 12:29:53 +01:00
Kenneth Skovhede 842fd96543 Implemented a new logging system that is more transparent and allows a more granular way of picking log messages.
Added ID's to each log message and each exception to allow later introduction of a Knowledgebase service that explains each error in more detail.
2018-03-15 09:12:34 +01:00
Kenneth Skovhede bd863016fa Added support for returning multiple DNS names for cache invalidation.
Updated most backends to return the actual DNS names for cache invalidation.
2018-02-26 11:37:10 +01:00
Kenneth Skovhede 9093603be1 Added support for disabling the file scanner during backups.
This fixes #2963
2018-02-11 20:57:38 +01:00
Kenneth Skovhede e65d38e235 Updated the unittest to not use the deprecated NUnit attributes 2018-02-01 09:48:55 +01:00
wjan d8efebfe8a corrects changes in app.config files and other unnecessary file changes 2018-01-18 21:22:54 +01:00
wjan 8500988d7c adds rclone UI and backend improvements 2018-01-10 15:33:28 +01:00
Kenneth SkovhedeandGitHub 9593edae14 Merge pull request #2939 from vnau/master
Compression classes refactoring
2017-12-26 12:27:35 +01:00
vnau 62a7901aca Compression modules refactored to work with streams instead of filenames;
Added unit test to check compression reversibility
2017-12-25 04:12:19 +07:00
Kenneth Hsu 839c8d9f27 Use method to parse string into bool to reduce duplication. 2017-12-17 14:52:29 -08:00
Kenneth Hsu faad6de7ba Add tests for parsing string into bool. 2017-12-17 14:52:29 -08:00
Kenneth SkovhedeandGitHub 36aadc4ad1 Merge pull request #2910 from warwickmm/refactor/remove_redundant_tostring
Remove redundant calls to ToString
2017-11-27 08:50:00 +01:00
Kenneth Hsu 5fb1958ceb Remove redundant calls to ToString. 2017-11-26 15:44:34 -08:00
Kenneth Hsu 8810e0130d Make string comparisons use ordinal (binary) sort rules.
These string comparisons should not be culture-aware.
2017-11-26 11:19:54 -08:00
Kenneth Hsu c9aa6cf5fb Avoid performing tilde expansion.
The expansion being performed was often incorrect, as it's possible for
the tilde character to appear as part of the path where it should not be
expanded to the user's home directory.

Properly supporting tilde expansion is complicated and requires
additional study.  Instead of supporting it only partially, we have
decided to simplify things and just drop tilde expansion for now.  See
the discussion in issue #2619, as well as issues #2325 and #2555.
2017-10-21 10:08:33 -07:00
Kenneth Skovhede f0cfde1cb2 Added delays to unittest as it is now too fast with the improved hashing library 2017-10-10 13:52:57 +02:00
Kenneth Hsu 9edec2b53e Add comments to clarify tests. 2017-09-29 21:10:21 -07:00
Kenneth Hsu ff7d57a9f4 Add test for obtaining unique items from empty collection. 2017-09-29 21:09:29 -07:00
Kenneth Hsu cb4972f900 Add test for obtaining unique items with custom comparer. 2017-09-28 21:30:29 -07:00
Kenneth Hsu 705bbe198f Modify test to use string data.
This will allow us to more easily test the case where a custom equality
comparer is provided.
2017-09-28 21:30:29 -07:00
Kenneth Hsu c658458e01 Add unit test for method to get unique items. 2017-09-28 21:30:29 -07:00
Kenneth SkovhedeandGitHub 33314ce7c9 Merge pull request #2763 from tygill/fix/list-ienumerable
Change IBackend.List() to return IEnumerable instead of List
2017-09-28 11:06:41 +02:00
Kenneth Skovhede 51084ada57 Merge branch 'feature/use-faster-hashing' 2017-09-26 14:24:20 +02:00
Kenneth Skovhede 640ec634b7 Increased delays in unittest due to faster hashing performance 2017-09-26 09:41:27 +02:00
Tyler Gill 38883285ee Change IBackend.List() to return IEnumerable instead of List
By changing to IEnumerable, it is possible to iterate only a portion of the list, which is useful when not all entries are needed (e.g., when testing a connection).
All existing backends have been updated, and any which were able to be changed to yield return results in a straightforward way now do.
Many backends had a try/catch in the List() method. Due to the fact that yield returns can't be placed within a try/catch block, these have been refactored to either scope the try/catch to the parts that (should) be the only places throwing exceptions, so that exceptions are still caught and handled.
Note that lazy evaluation may cause some changes in behavior - exceptions that were previously thrown at the point of invokation of List() may now be thrown while it is being enumerated.
I believe this will not be problematic though, as the only well-known exception seems to be FolderMissingException, which should be thrown by Test(), but TestList() attempts to enumerate the list to force this exception.
Any places that require the legacy behavior can get it by simply converting the lazy enumerable to a List()
2017-09-25 23:17:45 -06:00
Kenneth Skovhede 22e05577e2 Revert "Updated nunit"
This reverts commit e999f1d77d.
2017-09-23 14:57:05 +02:00
Kenneth Skovhede 2609dcc5dc Fixes after library updates 2017-09-23 14:52:53 +02:00
Kenneth Skovhede e999f1d77d Updated nunit 2017-09-23 14:48:02 +02:00
Tyler Gill 83a1dcfb64 Replace all instances of InvariantCultureIgnoreCase with OrdinalIgnoreCase in string comparisons.
InvariantCulture is useful when comparing / sorting human language strings in a culturely correct way. It handles things like accented letters in a way that makes sense to humans (e.g., 'a' should be sorted next to 'á', rather than after 'z').
Ordinal looks just at the raw code points of the characters. As such, it is recommended for use in cases when comparing system strings (file paths, command line parameters, config settings, etc.). Since it doesn't need to use the culture specific sorting rules, this method can often be faster.

For more information, see https://stackoverflow.com/questions/492799/difference-between-invariantculture-and-ordinal-string-comparison (and other related questions)
2017-09-18 23:55:08 -06:00
Kenneth Skovhede 6855824285 Rewrote the commandline to support plug-able output 2017-04-04 16:57:30 +02:00
Kenneth Skovhede 7349d73e80 Fixed returning non-zero status codes when verification fails 2017-03-07 23:09:04 +01:00
Kenneth Skovhede 680ee82189 Updated SharpCompress to the latest version 2017-02-27 22:21:01 +01:00
Kenneth Skovhede 5f9539b9ea Fixed creating the temporary folder for the unittest data before using it 2017-01-12 08:41:34 +01:00
Kenneth Skovhede 37ee4d4cf8 Fixed an issue with broken logging in the unittest 2017-01-11 22:41:45 +01:00