summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-09-06 18:30:48 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-09-06 18:30:48 +0200
commit883908de23d82bd4de856dd7aa4865b0f71a6642 (patch)
treef319c9f31db7a8ed6b97fba76c4321a7087c4d44
parent3ac772e2a254d8d8f3df3af4a0e6836905caba46 (diff)
downloadApp-BorgRestore-883908de23d82bd4de856dd7aa4865b0f71a6642.tar.gz
App-BorgRestore-883908de23d82bd4de856dd7aa4865b0f71a6642.tar.xz
t/handle_added_archives: Check for paths that should not be part of the db
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--t/handle_added_archives_with_db.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/handle_added_archives_with_db.t b/t/handle_added_archives_with_db.t
index 7bb3106..a59084c 100644
--- a/t/handle_added_archives_with_db.t
+++ b/t/handle_added_archives_with_db.t
@@ -35,12 +35,14 @@ for my $in_memory (0,1) {
$app->_handle_added_archives(['archive-1']);
# check database content
+ eq_or_diff($db->get_archives_for_path('.'), [{archive => 'archive-1', modification_time => undef},]);
eq_or_diff($db->get_archives_for_path('boot'), [{archive => 'archive-1', modification_time => 20},]);
eq_or_diff($db->get_archives_for_path('boot/foo'), [{archive => 'archive-1', modification_time => 19},]);
eq_or_diff($db->get_archives_for_path('boot/foo/bar'), [{archive => 'archive-1', modification_time => 19},]);
eq_or_diff($db->get_archives_for_path('boot/foo/blub'), [{archive => 'archive-1', modification_time => 13},]);
eq_or_diff($db->get_archives_for_path('boot/grub'), [{archive => 'archive-1', modification_time => 20},]);
eq_or_diff($db->get_archives_for_path('boot/grub/grub.cfg'), [{archive => 'archive-1', modification_time => 8},]);
+ eq_or_diff($db->get_archives_for_path('lulz'), [{archive => 'archive-1', modification_time => undef},]);
}