Commit Graph
131 Commits
Author SHA1 Message Date
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
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
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