From 96d553d2eb50afd60a6a36ece05e261451f84c63 Mon Sep 17 00:00:00 2001 From: Sonia Zorba <sonia.zorba@inaf.it> Date: Thu, 6 May 2021 17:28:29 +0200 Subject: [PATCH] Added storages and locations to test-data.sql --- src/test/resources/test-data.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/resources/test-data.sql b/src/test/resources/test-data.sql index 54a4a81..e31766b 100644 --- a/src/test/resources/test-data.sql +++ b/src/test/resources/test-data.sql @@ -1,3 +1,14 @@ +INSERT INTO storage (storage_type, base_path, base_url, hostname) VALUES ('cold', '/ia2_tape/users', NULL, 'tape-server'); +INSERT INTO storage (storage_type, base_path, base_url, hostname) VALUES ('hot', '/mnt/hot_storage/users', NULL, 'server'); +INSERT INTO storage (storage_type, base_path, base_url, hostname) VALUES ('local', '/home', NULL, 'localhost'); +INSERT INTO storage (storage_type, base_path, base_url, hostname) VALUES ('local', '/home/vospace/upload', NULL, 'localhost'); +INSERT INTO storage (storage_type, base_path, base_url, hostname) VALUES ('portal', NULL, '/files/lbt', 'archive.lbto.org'); + +INSERT INTO location (location_type, storage_src_id, storage_dest_id) VALUES ('async', 1, 3); +INSERT INTO location (location_type, storage_src_id, storage_dest_id) VALUES ('async', 2, 3); +INSERT INTO location (location_type, storage_src_id, storage_dest_id) VALUES ('user', 4, 4); +INSERT INTO location (location_type, storage_src_id, storage_dest_id) VALUES ('portal', 5, 5); + DELETE FROM node; ALTER SEQUENCE node_node_id_seq RESTART WITH 1; -- GitLab