Commit 9ec6b154 authored by Nicola Fulvio Calabria's avatar Nicola Fulvio Calabria
Browse files

Refactored common parent calculation + tests for archive generation

parent 82135d3f
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@ INSERT INTO node (parent_path, name, type, creator_id, location_id, is_public) V


INSERT INTO node (parent_path, name, type, creator_id, group_read, group_write, location_id) VALUES ('', 'test1', 'container', 'user1', '{"group1","group2"}','{"group2"}', 1);      -- /test1
INSERT INTO node (parent_path, name, type, creator_id, group_read, group_write, location_id) VALUES ('', 'test1', 'container', 'user1', '{"group1","group2"}','{"group2"}', 1);      -- /test1
INSERT INTO node (parent_path, name, type, creator_id, location_id) VALUES ('2', 'f1', 'container', 'user1', 1);      -- /test1/f1 (rel: /f1)
INSERT INTO node (parent_path, name, type, creator_id, location_id) VALUES ('2', 'f1', 'container', 'user1', 1);      -- /test1/f1 (rel: /f1)
INSERT INTO node (parent_path, name, os_name, type, creator_id, location_id, quota) VALUES ('2.3', 'f2_renamed', 'f2', 'container', 'user1', 1, 50000);      -- /test1/f1/f2_renamed (rel: /f1/f2)
INSERT INTO node (parent_path, name, type, creator_id, location_id, quota) VALUES ('2.3', 'f2_renamed', 'container', 'user1', 1, 50000);      -- /test1/f1/f2_renamed (rel: /f1/f2)
INSERT INTO node (parent_path, name, type, creator_id, location_id, content_md5, content_length) VALUES ('2.3.4', 'f3', 'data', 'user1', 1, '<md5sum>', 4000);      -- /test1/f1/f2_renamed/f3 (rel: /f1/f2/f3)
INSERT INTO node (parent_path, name, type, creator_id, location_id, content_md5, content_length) VALUES ('2.3.4', 'f3', 'data', 'user1', 1, '<md5sum>', 4000);      -- /test1/f1/f2_renamed/f3 (rel: /f1/f2/f3)


INSERT INTO node (parent_path, name, type, creator_id, is_public, location_id) VALUES ('', 'test2', 'container', 'user2', true, 1);      -- /test2
INSERT INTO node (parent_path, name, type, creator_id, is_public, location_id) VALUES ('', 'test2', 'container', 'user2', true, 1);      -- /test2