Commit Graph
229 Commits
Author SHA1 Message Date
Kenneth Hsu 7746ff1014 Fix derivation of seconds from TimeSpan.
Although the TimeSpan should be less than one minute, we should still
reference TotalSeconds to be safe.
2019-12-03 18:23:24 -08:00
Kenneth Hsu 30fddd4b91 Add test for retention-policy logic. 2019-11-29 22:18:02 -08:00
Kenneth Hsu 68e7844dae Add test for keep-versions logic where last backup was full.
This concerns issue #3982.
2019-11-29 14:13:15 -08:00
Kenneth Hsu 07df3d4d5e Verify backup times in addition to partial/full status. 2019-11-29 09:14:35 -08:00
Kenneth Hsu b0224194de Allow continutation after await to run in any context. 2019-11-29 09:12:15 -08:00
Kenneth Hsu 8c9512ac2c Add test for keep-versions retention logic. 2019-11-29 09:11:18 -08:00
Kenneth Hsu afecf891da Add test for keep-time retention logic.
We had to remove the keep-versions options since multiple retention
options are not allowed.

This concerns issue #3982.
2019-11-28 21:50:16 -08:00
Kenneth Hsu 9eedf757cd Extract creation of partial backup to helper method. 2019-11-28 21:47:54 -08:00
Kenneth Hsu 1d42c53319 Fix disruption test to expect partial backups in fileset listing.
This concerns issue #3982.
2019-11-19 19:30:03 -08:00
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