Commit Graph
220 Commits
Author SHA1 Message Date
Kenneth Hsu 2aa76881a5 Mark fields that don't need to be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2019-10-19 13:59:22 -07:00
Kenneth Hsu ee751f218a Test purge operation with simple filter expression.
This will test the situation described in issue #3927, where the
specified file was kept, and all other files were deleted.

Without the fix in 9333517950 ("Fix query used by purge operation for
case-sensitive fileystems"), this test would pass in AppVeyor (Windows),
but fail in Travis (Linux).
2019-09-29 09:54:25 -07:00
Kenneth Hsu bedecdef1d Allow execution to continue on any thread. 2019-09-17 14:16:58 -07:00
Kenneth Hsu a9ace40723 Increase dblock size to speed up testing. 2019-09-17 12:46:23 -07:00
Kenneth Hsu 2f58de4021 Remove unused using directive. 2019-09-17 12:46:23 -07:00
Kenneth Hsu e9e87a495c Disable warning. 2019-09-17 12:46:23 -07:00
Kenneth Hsu ca5a135300 Avoid checking metadata in restore tests.
There appear to be some differences at the tick level.
2019-09-17 12:46:23 -07:00
Kenneth Hsu add8b13c11 Verify restore of full fileset. 2019-09-17 12:46:23 -07:00
Kenneth Hsu 9fd3795032 Verify that at least one file was backed up in partial fileset. 2019-09-17 12:46:23 -07:00
Kenneth Hsu 7dd37fb381 Filter folders from file list. 2019-09-17 12:46:23 -07:00
Kenneth Hsu 2d78a95d97 Extract file sizes to private field. 2019-09-17 12:46:23 -07:00
Kenneth Hsu 3b1b4d1e44 Test restoring from partial version. 2019-09-17 12:46:23 -07:00
Kenneth Hsu 5e9dd9a7b8 Expose BackupType to test classes. 2019-09-17 12:46:23 -07:00
Kenneth Hsu 929987c3f2 Verify backup types after recreating database. 2019-09-17 12:46:23 -07:00
Kenneth Hsu e81555effc Test full backup after interrupted backup. 2019-09-17 12:46:23 -07:00
Kenneth Hsu 507beea277 Add tests for stopping after current file. 2019-09-17 12:46:23 -07:00
Kenneth Hsu 149f5fe908 Add test for computing seconds since epoch. 2019-09-01 12:47:23 -07:00
Kenneth Hsu ef6b245ae9 Add test for normalizing DateTimes. 2019-09-01 12:38:23 -07:00
BlueBlock e110f6c64c Merge remote-tracking branch 'upstream/master' into update-framework-to-462 2019-08-31 14:11:32 -04:00
BlueBlock caba4be76f shared file access corrected 2019-08-30 11:03:57 -04:00
BlueBlock 7ce4639a9e unittest added for ReadLimitLengthStream() 2019-08-29 17:23:19 -04:00
BlueBlock c086b23d6e Merge branch 'master' into update-framework-to-462 2019-08-29 09:13:24 -04:00
BlueBlock 90ab4856b2 use variable in place of string 2019-08-25 17:30:35 -04:00
BlueBlock 81eb1ba58c update references 2019-08-25 13:43:46 -04:00
BlueBlock 8a9a72e2b0 conditional download of data.zip
only download data.zip if either it is missing locally and has been updated on s3
2019-08-25 13:34:30 -04:00
BlueBlock 1f952b8628 add optional use of a local data-alternative.zip in place of data.zip 2019-08-25 10:59:14 -04:00
BlueBlock db6456a628 cleanup the sqlite journal file if it exists
can happen after an exception
2019-08-25 10:55:36 -04:00
BlueBlock 0d36592887 faster to use a dir move isntead of copying everything 2019-08-25 10:52:41 -04:00
BlueBlock 41dd96c266 Merge branch 'master' of https://github.com/duplicati/duplicati into update-framework-to-462 2019-08-23 10:20:02 -04:00
BlueBlock 4b1f260ac6 resolve merge conflicts 2019-08-22 23:15:54 -04:00
Kenneth Hsu d094c96693 Insert missing newline. 2019-08-18 18:21:48 -07:00
Kenneth Hsu 0bb3cf0c5e Run OneTimeTearDown in OneTimeSetUp to ensure clean initialization. 2019-08-18 18:00:23 -07:00
Kenneth Hsu 9f23597c2b Extract duplicated path specifications to private property. 2019-08-18 17:46:13 -07:00
Kenneth Hsu caaedccc61 Remove recreated database file after each test. 2019-08-18 17:46:13 -07:00
Kenneth Hsu d29c9e090d Delete restore folder after each test. 2019-08-18 16:01:54 -07:00
Kenneth Hsu e2fda04a4c Delete test zip files and folders after tests complete. 2019-08-18 15:31:15 -07:00
Kenneth Hsu 3790f23749 Override instead of hiding property accessor. 2019-08-18 14:27:01 -07:00
Kenneth Hsu bcb1427b51 Avoid removing test base folder.
The base folder might contain additional content that the user does not
expect to be deleted.  We should only remove files/folders that we
create in the tests.
2019-08-18 14:27:01 -07:00
Kenneth Hsu 3a1c646855 Use braces for if statements. 2019-08-18 14:27:01 -07:00
Kenneth Hsu 90302de23c Delete base folder contents in test setup.
This also prevents undesired side effects if we later add additional
behaviors to the teardown method.
2019-08-18 14:27:01 -07:00
Kenneth Hsu baf3b6d52a Rename methods to clarify behaviors. 2019-08-18 14:27:01 -07:00
Kenneth Hsu d364be4037 Clean test data after each test. 2019-08-18 14:27:01 -07:00
Kenneth Hsu 5471e84eb0 Move download of test data to setup method.
This allows one to more easily run the unit tests locally.
2019-08-18 14:01:31 -07:00
Kenneth Hsu e16df8219c Move download of test data to setup method.
This allows one to more easily run the unit tests locally.
2019-08-18 14:01:31 -07:00
Kenneth Hsu ead6845e5d Remove base test folder instead of individual members. 2019-08-18 14:01:31 -07:00
Kenneth Hsu 3d82d95a63 Delete directories before specific files.
This is purely for aesthetic reasons.
2019-08-18 14:01:31 -07:00
Kenneth Hsu 1f66936c4c Remove redundant deletiong of test data.
The folders are now deleted in the teardown method.
2019-08-18 14:01:31 -07:00
Kenneth Hsu a6f751f605 Move creation of test data folders to base class. 2019-08-18 14:01:27 -07:00
Kenneth Hsu a9846f08f4 Remove unnecessary method override. 2019-08-17 19:54:57 -07:00
Kenneth Hsu 84bb7999a7 Remove unnecessary log output. 2019-08-17 19:54:55 -07:00