-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add litmus test on mounted storage and shared folder #32311
Conversation
b132567
to
1628c6d
Compare
Codecov Report
@@ Coverage Diff @@
## master #32311 +/- ##
=========================================
Coverage 64.01% 64.01%
Complexity 18561 18561
=========================================
Files 1171 1171
Lines 69843 69843
Branches 1267 1267
=========================================
Hits 44713 44713
Misses 24760 24760
Partials 370 370
Continue to review full report at Codecov.
|
There was the idea to have nightly litmus tests here: Question: |
I know - we can adapt the scenarios over there as well.
Both. |
9b01b17
to
30cf2ff
Compare
.drone.yml
Outdated
pull: true | ||
commands: | ||
- echo "Create local mount ...." | ||
- mkdir -p /drone/work/local_storage || { echo "Unable to create work folder" >&2; exit 1; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|| ...
not required - any fail in the pipe will stop the execution of the next line
.drone.yml
Outdated
- echo 'Sharing a folder ..' | ||
- OC_PASS=123456 php occ user:add --password-from-env user1 | ||
- chown www-data /drone/src -R | ||
- chown www-data /drone/work -R |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicate - seems like you are trying to fix it for local runs as well as remote runs.
If you want to chown the workspace - please use the drone environment variable DRONE_WORKSPACE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drone/work/local_storage is created above and needs to be accessible by apache.
there fore the chown
no idea if there are better places ...
.drone.yml
Outdated
- chown www-data /drone/src -R | ||
- chown www-data /drone/work -R | ||
- curl -u user1:123456 -X MKCOL 'http://server/remote.php/webdav/new_folder' | ||
- curl -u user1:123456 "http://server/ocs/v2.php/apps/files_sharing/api/v1/shares" --data 'path=/new_folder&shareType=0&permissions=15&name=new_folder&shareWith=admin' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
silence the output
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
only show // exit errors
30cf2ff
to
6b8f3b6
Compare
@patrickjahns comments addressed ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
Backport |
Description
We shall run litmus tests on
Related Issue
refs #31651
Motivation and Context
the webdav behavior has to be the same on mounted and shared folders
Types of changes
Open tasks: