Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hpc
gekkofs
Commits
3101bd5e
Commit
3101bd5e
authored
May 13, 2022
by
Ramon Nou
Browse files
Test remove of data chunks
parent
84f3bcea
Pipeline
#2599
passed with stages
in 34 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/integration/operations/test_unlink_operations.py
View file @
3101bd5e
...
...
@@ -84,4 +84,16 @@ def test_unlink(gkfs_daemon, gkfs_client):
assert
ret
.
errno
==
errno
.
EISDIR
# create a file in gekkofs
ret
=
gkfs_client
.
open
(
file
,
os
.
O_CREAT
|
os
.
O_WRONLY
,
stat
.
S_IRWXU
|
stat
.
S_IRWXG
|
stat
.
S_IRWXO
)
assert
ret
.
retval
==
10000
# > 4 chunks
ret
=
gkfs_client
.
write_validate
(
file
,
2097153
)
assert
ret
.
retval
==
1
ret
=
gkfs_client
.
unlink
(
file
)
# Remove renamed file (extra chunks, success)
assert
ret
.
retval
==
0
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment