Skip to content
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

Merged
merged 1 commit into from
Aug 16, 2018

Conversation

DeepDiver1975
Copy link
Member

@DeepDiver1975 DeepDiver1975 commented Aug 13, 2018

Description

We shall run litmus tests on

  • shared folder
  • mounted folder

Related Issue

refs #31651

Motivation and Context

the webdav behavior has to be the same on mounted and shared folders

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Open tasks:

  • Backport (if applicable set "backport-request" label and remove when the backport was done)

@DeepDiver1975 DeepDiver1975 added this to the development milestone Aug 13, 2018
@DeepDiver1975 DeepDiver1975 self-assigned this Aug 13, 2018
@DeepDiver1975 DeepDiver1975 force-pushed the feature/run-litmus-in-shared-folder branch 2 times, most recently from b132567 to 1628c6d Compare August 13, 2018 10:03
@codecov
Copy link

codecov bot commented Aug 13, 2018

Codecov Report

Merging #32311 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            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
Flag Coverage Δ Complexity Δ
#javascript 52.84% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.29% <ø> (ø) 18561 <ø> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9bffdbb...6b8f3b6. Read the comment docs.

@patrickjahns
Copy link
Contributor

There was the idea to have nightly litmus tests here:
https://github.com/owncloud/litmus-testing

Question:
Do we need to run litmus on every PR - or do we move it also to a nightly approach?

@DeepDiver1975
Copy link
Member Author

There was the idea to have nightly litmus tests here:
https://github.com/owncloud/litmus-testing

I know - we can adapt the scenarios over there as well.

Question:
Do we need to run litmus on every PR - or do we move it also to a nightly approach?

Both.

@DeepDiver1975 DeepDiver1975 force-pushed the feature/run-litmus-in-shared-folder branch 7 times, most recently from 9b01b17 to 30cf2ff Compare August 13, 2018 14:17
@DeepDiver1975 DeepDiver1975 changed the title Add litmus test on mounted storage Add litmus test on mounted storage and shared folder Aug 13, 2018
.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; }
Copy link
Contributor

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
Copy link
Contributor

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

Copy link
Member Author

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'
Copy link
Contributor

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

@DeepDiver1975 DeepDiver1975 force-pushed the feature/run-litmus-in-shared-folder branch from 30cf2ff to 6b8f3b6 Compare August 14, 2018 13:21
@DeepDiver1975
Copy link
Member Author

@patrickjahns comments addressed ...

Copy link
Contributor

@patrickjahns patrickjahns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@patrickjahns patrickjahns merged commit a92877b into master Aug 16, 2018
@patrickjahns patrickjahns deleted the feature/run-litmus-in-shared-folder branch August 16, 2018 13:28
@phil-davis
Copy link
Contributor

Backport stable10 #32362

@lock lock bot locked as resolved and limited conversation to collaborators Aug 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants