Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
692d5891
Commit
692d5891
authored
6 years ago
by
yvesn
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-6427: added integration test
parent
1d32e65b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/python/OBis/integration_tests/integration_tests.py
+26
-0
26 additions, 0 deletions
src/python/OBis/integration_tests/integration_tests.py
with
26 additions
and
0 deletions
src/python/OBis/integration_tests/integration_tests.py
+
26
−
0
View file @
692d5891
...
@@ -268,6 +268,32 @@ def test_obis(tmpdir):
...
@@ -268,6 +268,32 @@ def test_obis(tmpdir):
assert
'
Matching content copy not fount in data set
'
in
result
assert
'
Matching content copy not fount in data set
'
in
result
cmd
(
'
obis addref data1
'
)
cmd
(
'
obis addref data1
'
)
output_buffer
=
'
=================== 18. Use git-annex hashes as checksums ===================
\n
'
cmd
(
'
obis init data10
'
)
with
cd
(
'
data10
'
):
cmd
(
'
touch file
'
)
cmd
(
'
obis config object_id /DEFAULT/DEFAULT
'
)
# use MD5 form git annex by default
result
=
cmd
(
'
obis commit -m
\'
commit-message
\'
'
)
config
=
get_config
()
search_result
=
o
.
search_files
(
config
[
'
data_set_id
'
])
files
=
list
(
filter
(
lambda
file
:
file
[
'
fileLength
'
]
>
0
,
search_result
[
'
objects
'
]))
assert
len
(
files
)
==
3
for
file
in
files
:
assert
file
[
'
checksumType
'
]
==
"
MD5
"
assert
len
(
file
[
'
checksum
'
])
==
32
# don't use git annex hash - use default CRC32
cmd
(
'
obis config git_annex_hash_as_checksum false
'
)
result
=
cmd
(
'
obis commit -m
\'
commit-message
\'
'
)
config
=
get_config
()
search_result
=
o
.
search_files
(
config
[
'
data_set_id
'
])
files
=
list
(
filter
(
lambda
file
:
file
[
'
fileLength
'
]
>
0
,
search_result
[
'
objects
'
]))
assert
len
(
files
)
==
3
for
file
in
files
:
assert
file
[
'
checksumType
'
]
is
None
assert
file
[
'
checksum
'
]
is
None
assert
file
[
'
checksumCRC32
'
]
!=
0
output_buffer
=
'
=================== 16. User switch ===================
\n
'
output_buffer
=
'
=================== 16. User switch ===================
\n
'
cmd
(
'
obis init data9
'
)
cmd
(
'
obis init data9
'
)
with
cd
(
'
data9
'
):
with
cd
(
'
data9
'
):
...
...
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