Skip to content

Enhance re share tests#35521

Merged
phil-davis merged 2 commits into
masterfrom
enhance-reShare-tests
Jun 15, 2019
Merged

Enhance re share tests#35521
phil-davis merged 2 commits into
masterfrom
enhance-reShare-tests

Conversation

@phil-davis

@phil-davis phil-davis commented Jun 13, 2019

Copy link
Copy Markdown
Contributor

Description

  1. Adjust test scenarios so that user0 has skeleton files, and other users (who receive shares) do not have skeleton files. This makes the test sequences a bit easier, because the received share names do not have (2) on them.

  2. Add some extra Then steps to existing scenarios to check that the correct share and reshare recipients can or cannot see the shared file/folder. This helps verify that the sharing and resharing combinations really are working, and not just that some OCS/HTTP status codes were as expected.

  3. Add more combinations of resharing with less, the same and more permissions of the received share, and of a sub-folder in a received share.

  4. Add scenarios for resharing and then (attempting to) update the re-share to have more/same/less permissions.

  5. Add scenarios for creating a public link share of a received share. Make sure that you can't give more permissions in the public link share then what you received from the original sharer.

  6. Added 2 scenarios for issue Permission of reshare cannot be increased #35528 related to trying to increase the permissions on a reshare, where you are just increasing the permissions to a level that should be allowed.

  7. Added various combinations of steps for "the public downloads file" with a without password, and "the public should be able to download file" etc that were missing. There were already steps that did this in some combinations, and checking ranges of bytes in the file etc.

Related Issue

https://github.com/owncloud/enterprise/issues/3364

Motivation and Context

How Has This Been Tested?

Local acceptance test runs

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

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

@codecov

codecov Bot commented Jun 13, 2019

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #35521   +/-   ##
=========================================
  Coverage     65.68%   65.68%           
  Complexity    18735    18735           
=========================================
  Files          1221     1221           
  Lines         70793    70793           
  Branches       1288     1288           
=========================================
  Hits          46503    46503           
  Misses        23913    23913           
  Partials        377      377
Flag Coverage Δ Complexity Δ
#javascript 53.69% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 67.06% <ø> (ø) 18735 <ø> (ø) ⬇️

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 5d59587...a99a646. Read the comment docs.

@codecov

codecov Bot commented Jun 13, 2019

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #35521   +/-   ##
=========================================
  Coverage     65.66%   65.66%           
  Complexity    18756    18756           
=========================================
  Files          1222     1222           
  Lines         70872    70872           
  Branches       1289     1289           
=========================================
  Hits          46540    46540           
  Misses        23954    23954           
  Partials        378      378
Flag Coverage Δ Complexity Δ
#javascript 53.7% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 67.03% <ø> (ø) 18756 <ø> (ø) ⬇️

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 bd7089c...43dcdd1. Read the comment docs.

@phil-davis
phil-davis force-pushed the enhance-reShare-tests branch 3 times, most recently from 78bb2b0 to 11709a8 Compare June 14, 2019 07:34
@phil-davis
phil-davis marked this pull request as ready for review June 14, 2019 09:46

@individual-it individual-it left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

some minor requests

Comment thread tests/acceptance/features/apiShareManagement/reShare.feature Outdated
Comment thread tests/acceptance/features/apiShareManagement/reShare.feature Outdated
Comment thread tests/acceptance/features/apiShareManagement/reShare.feature Outdated
@phil-davis
phil-davis force-pushed the enhance-reShare-tests branch from 11709a8 to 6267333 Compare June 14, 2019 13:07
@phil-davis

Copy link
Copy Markdown
Contributor Author

@individual-it random commented-out lines have been removed.
Ready for review again.

@individual-it

Copy link
Copy Markdown
Member

CI failure unrelated, restarting

@phil-davis

Copy link
Copy Markdown
Contributor Author

Backport stable10 #35547

@phil-davis
phil-davis merged commit 574d9b9 into master Jun 15, 2019
@delete-merged-branch
delete-merged-branch Bot deleted the enhance-reShare-tests branch June 15, 2019 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants