Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vospace-rest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VOSpace INAF
vospace-rest
Commits
82135d3f
Commit
82135d3f
authored
3 years ago
by
Nicola Fulvio Calabria
Browse files
Options
Downloads
Patches
Plain Diff
Cleaned test data script
parent
3e0c800b
No related branches found
No related tags found
No related merge requests found
Pipeline
#8791
passed
3 years ago
Stage: build
Stage: test
Stage: dockerize
Stage: publish
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/resources/test-data.sql
+23
-23
23 additions, 23 deletions
src/test/resources/test-data.sql
with
23 additions
and
23 deletions
src/test/resources/test-data.sql
+
23
−
23
View file @
82135d3f
...
...
@@ -12,36 +12,36 @@ INSERT INTO location (location_type, storage_src_id, storage_dest_id) VALUES ('u
DELETE
FROM
node
;
ALTER
SEQUENCE
node_node_id_seq
RESTART
WITH
1
;
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
location_id
,
is_public
)
VALUES
(
NULL
,
NULL
,
''
,
'container'
,
'0'
,
1
,
true
);
INSERT
INTO
node
(
parent_path
,
name
,
type
,
creator_id
,
location_id
,
is_public
)
VALUES
(
NULL
,
''
,
'container'
,
'0'
,
1
,
true
);
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
group_read
,
group_write
,
location_id
)
VALUES
(
''
,
NULL
,
'test1'
,
'container'
,
'user1'
,
'{"group1","group2"}'
,
'{"group2"}'
,
1
);
-- /test1
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
location_id
)
VALUES
(
'2'
,
''
,
'f1'
,
'container'
,
'user1'
,
1
);
-- /test1/f1 (rel: /f1)
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
os_name
,
type
,
creator_id
,
location_id
,
quota
)
VALUES
(
'2.3'
,
'3'
,
'f2_renamed'
,
'f2'
,
'container'
,
'user1'
,
1
,
50000
);
-- /test1/f1/f2_renamed (rel: /f1/f2)
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
location_id
,
content_md5
,
content_length
)
VALUES
(
'2.3.4'
,
'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
,
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
,
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
,
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
,
parent_relative_path
,
name
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
''
,
NULL
,
'test2'
,
'container'
,
'user2'
,
true
,
1
);
-- /test2
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'6'
,
''
,
'f4'
,
'container'
,
'user2'
,
true
,
1
);
-- /test2/f4 (rel: /f4)
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'6'
,
''
,
'f5'
,
'container'
,
'user2'
,
true
,
1
);
-- /test2/f5 (rel: /f5)
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
(
'6'
,
'f4'
,
'container'
,
'user2'
,
true
,
1
);
-- /test2/f4 (rel: /f4)
INSERT
INTO
node
(
parent_path
,
name
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'6'
,
'f5'
,
'container'
,
'user2'
,
true
,
1
);
-- /test2/f5 (rel: /f5)
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
''
,
NULL
,
'test3'
,
'container'
,
'user3'
,
false
,
3
);
-- /test3
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'9'
,
''
,
'm1'
,
'container'
,
'user3'
,
false
,
3
);
-- /test3/m1
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'9.10'
,
''
,
'm2'
,
'container'
,
'user3'
,
false
,
3
);
-- /test3/m1/m2
INSERT
INTO
node
(
parent_path
,
name
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
''
,
'test3'
,
'container'
,
'user3'
,
false
,
3
);
-- /test3
INSERT
INTO
node
(
parent_path
,
name
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'9'
,
'm1'
,
'container'
,
'user3'
,
false
,
3
);
-- /test3/m1
INSERT
INTO
node
(
parent_path
,
name
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'9.10'
,
'm2'
,
'container'
,
'user3'
,
false
,
3
);
-- /test3/m1/m2
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
''
,
NULL
,
'test4'
,
'container'
,
'user3'
,
false
,
3
);
-- /test4
INSERT
INTO
node
(
parent_path
,
name
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
''
,
'test4'
,
'container'
,
'user3'
,
false
,
3
);
-- /test4
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
sticky
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'9'
,
''
,
'mstick'
,
true
,
'container'
,
'user3'
,
false
,
3
);
-- /test3/mstick
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
job_id
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'9'
,
''
,
'mbusy'
,
'job1234'
,
'container'
,
'user3'
,
false
,
3
);
-- /test3/mbusy
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
async_trans
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'9'
,
''
,
'masynctrans'
,
true
,
'container'
,
'user3'
,
false
,
3
);
-- /test3/masynctrans
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'9'
,
''
,
'asyncloc'
,
'container'
,
'user3'
,
false
,
1
);
-- /test3/asyncloc
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
group_write
,
group_read
,
is_public
,
location_id
)
VALUES
(
'9'
,
''
,
'group1'
,
'container'
,
'user3'
,
'{"group1"}'
,
'{"group1"}'
,
false
,
3
);
-- /test3/group1
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
group_write
,
group_read
,
is_public
,
location_id
,
target
)
VALUES
(
'9.10'
,
''
,
'link1'
,
'link'
,
'user3'
,
'{"group1"}'
,
'{"group1"}'
,
false
,
3
,
'vos://authority/dummy/link'
);
-- /test3/m1/link1
INSERT
INTO
node
(
parent_path
,
name
,
sticky
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'9'
,
'mstick'
,
true
,
'container'
,
'user3'
,
false
,
3
);
-- /test3/mstick
INSERT
INTO
node
(
parent_path
,
name
,
job_id
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'9'
,
'mbusy'
,
'job1234'
,
'container'
,
'user3'
,
false
,
3
);
-- /test3/mbusy
INSERT
INTO
node
(
parent_path
,
name
,
async_trans
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'9'
,
'masynctrans'
,
true
,
'container'
,
'user3'
,
false
,
3
);
-- /test3/masynctrans
INSERT
INTO
node
(
parent_path
,
name
,
type
,
creator_id
,
is_public
,
location_id
)
VALUES
(
'9'
,
'asyncloc'
,
'container'
,
'user3'
,
false
,
1
);
-- /test3/asyncloc
INSERT
INTO
node
(
parent_path
,
name
,
type
,
creator_id
,
group_write
,
group_read
,
is_public
,
location_id
)
VALUES
(
'9'
,
'group1'
,
'container'
,
'user3'
,
'{"group1"}'
,
'{"group1"}'
,
false
,
3
);
-- /test3/group1
INSERT
INTO
node
(
parent_path
,
name
,
type
,
creator_id
,
group_write
,
group_read
,
is_public
,
location_id
,
target
)
VALUES
(
'9.10'
,
'link1'
,
'link'
,
'user3'
,
'{"group1"}'
,
'{"group1"}'
,
false
,
3
,
'vos://authority/dummy/link'
);
-- /test3/m1/link1
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
sticky
,
type
,
creator_id
,
group_write
,
group_read
,
is_public
,
location_id
)
VALUES
(
''
,
NULL
,
'mycontainer'
,
true
,
'container'
,
'user3'
,
'{"group1"}'
,
'{"group1"}'
,
false
,
3
);
-- /mycontainer
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
group_write
,
group_read
,
is_public
,
location_id
)
VALUES
(
'19'
,
''
,
'container1'
,
'container'
,
'user3'
,
'{"group1"}'
,
'{"group1"}'
,
false
,
3
);
-- /mycontainer/container1
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
group_write
,
group_read
,
is_public
,
location_id
)
VALUES
(
'19'
,
''
,
'destination2'
,
'container'
,
'user3'
,
'{"group1"}'
,
'{"group1"}'
,
false
,
3
);
-- /mycontainer/destination2
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
group_write
,
group_read
,
is_public
,
location_id
)
VALUES
(
'19.21'
,
'20'
,
'control'
,
'container'
,
'user3'
,
'{"group1"}'
,
'{"group1"}'
,
false
,
3
);
-- /mycontainer/destination2/control
INSERT
INTO
node
(
parent_path
,
name
,
sticky
,
type
,
creator_id
,
group_write
,
group_read
,
is_public
,
location_id
)
VALUES
(
''
,
'mycontainer'
,
true
,
'container'
,
'user3'
,
'{"group1"}'
,
'{"group1"}'
,
false
,
3
);
-- /mycontainer
INSERT
INTO
node
(
parent_path
,
name
,
type
,
creator_id
,
group_write
,
group_read
,
is_public
,
location_id
)
VALUES
(
'19'
,
'container1'
,
'container'
,
'user3'
,
'{"group1"}'
,
'{"group1"}'
,
false
,
3
);
-- /mycontainer/container1
INSERT
INTO
node
(
parent_path
,
name
,
type
,
creator_id
,
group_write
,
group_read
,
is_public
,
location_id
)
VALUES
(
'19'
,
'destination2'
,
'container'
,
'user3'
,
'{"group1"}'
,
'{"group1"}'
,
false
,
3
);
-- /mycontainer/destination2
INSERT
INTO
node
(
parent_path
,
name
,
type
,
creator_id
,
group_write
,
group_read
,
is_public
,
location_id
)
VALUES
(
'19.21'
,
'control'
,
'container'
,
'user3'
,
'{"group1"}'
,
'{"group1"}'
,
false
,
3
);
-- /mycontainer/destination2/control
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
creator_id
,
group_write
,
group_read
,
is_public
,
location_id
,
target
)
VALUES
(
'9.10'
,
''
,
'link2'
,
'link'
,
'user3'
,
'{"group1"}'
,
'{"group1"}'
,
false
,
3
,
'vos://example.com!vospace/test1/f1/f2_renamed/f3'
);
-- /test3/m1/link2
INSERT
INTO
node
(
parent_path
,
name
,
type
,
creator_id
,
group_write
,
group_read
,
is_public
,
location_id
,
target
)
VALUES
(
'9.10'
,
'link2'
,
'link'
,
'user3'
,
'{"group1"}'
,
'{"group1"}'
,
false
,
3
,
'vos://example.com!vospace/test1/f1/f2_renamed/f3'
);
-- /test3/m1/link2
DELETE
FROM
job
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment