Skip to content

[tests-only] Added acceptance tests for allow certain groups to create link share#39011

Merged
kiranparajuli589 merged 1 commit intoenterprise/issues/3632from
acceptance-tests
Jul 16, 2021
Merged

[tests-only] Added acceptance tests for allow certain groups to create link share#39011
kiranparajuli589 merged 1 commit intoenterprise/issues/3632from
acceptance-tests

Conversation

@kiranparajuli589
Copy link
Copy Markdown
Contributor

@kiranparajuli589 kiranparajuli589 commented Jul 15, 2021

Description

Acceptance tests have been added to the new feature at #38980

Related Issue

Motivation and Context

How Has This Been Tested?

  • 🤖

Screenshots (if appropriate):

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:
  • Changelog item, see TEMPLATE

@kiranparajuli589
Copy link
Copy Markdown
Contributor Author

failed on php-style

@AlexAndBear
Copy link
Copy Markdown

AlexAndBear commented Jul 15, 2021

Beautiful! 🚀

I would require one more scenario:
Edge-Case if allow sharing only for certain groups is enabled but no group is set, creating shares should be possible

Multiple groups combinations could also be possible whether in user or sharing only for certain groups setting but this should be already covered by unit tests

@kiranparajuli589
Copy link
Copy Markdown
Contributor Author

Beautiful!

I would require one more scenario:
Edge-Case if allow sharing only for certain groups is enabled but no group is set, creating shares should be possible

Multiple groups combinations could also be possible whether in user or sharing only for certain groups setting but this should be already covered by unit tests

I'll add them right away

@ownclouders
Copy link
Copy Markdown
Contributor

💥 Acceptance tests pipeline apiProxySmoke-8-2-mariadb10.2-php7.4 failed. The build has been cancelled.

https://drone.owncloud.com/owncloud/core/31259/172/1

@kiranparajuli589
Copy link
Copy Markdown
Contributor Author

Acceptance tests pipeline apiProxySmoke-8-2-mariadb10.2-php7.4 failed. The build has been cancelled.

https://drone.owncloud.com/owncloud/core/31259/172/1

random failure

curl: (6) Could not resolve host: proxy
--
34 | Server on http://proxy is down or not working correctly.
35 | make: *** [test-acceptance-api] Error 98

@kiranparajuli589 kiranparajuli589 force-pushed the acceptance-tests branch 2 times, most recently from c4021b8 to d427c77 Compare July 15, 2021 15:08
@ownclouders
Copy link
Copy Markdown
Contributor

💥 Acceptance tests pipeline webUISharingPublic2-chrome-mariadb10.2-php7.4 failed. The build has been cancelled.

https://drone.owncloud.com/owncloud/core/31260/151/1

@ownclouders
Copy link
Copy Markdown
Contributor

💥 Acceptance tests pipeline webUISharingPublic2-chrome-mariadb10.2-php7.4 failed. The build has been cancelled.

https://drone.owncloud.com/owncloud/core/31261/151/1

@AlexAndBear AlexAndBear force-pushed the enterprise/issues/3632 branch from bc98b6a to e9b5017 Compare July 15, 2021 17:07
@AlexAndBear
Copy link
Copy Markdown

Random crash again :/ restarted.

@AlexAndBear
Copy link
Copy Markdown

Something mixed up, can you rebase ?

@kiranparajuli589 kiranparajuli589 force-pushed the acceptance-tests branch 4 times, most recently from d2f7841 to 0cc97e4 Compare July 16, 2021 03:45
@ownclouders
Copy link
Copy Markdown
Contributor

💥 Acceptance tests pipeline webUISharingPublic2-chrome-mariadb10.2-php7.4 failed. The build has been cancelled.

https://drone.owncloud.com/owncloud/core/31269/151/1

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@kiranparajuli589 kiranparajuli589 merged commit d6baa7e into enterprise/issues/3632 Jul 16, 2021
@delete-merged-branch delete-merged-branch bot deleted the acceptance-tests branch July 16, 2021 10:09
And as user "Alice" the file "fileToShare.txt" should not have any shares


Scenario: creating a new link share is not restricted if no groups are inside the allowed public share sharers groups even if allowlist is enabled
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is an interesting scenario. If the admin enables this feature and specifies no groups in the "allow list" then what should happen? Should that mean that there are no users allowed to create public links? (Effectively public links are disabled) Or do we keep the behavior written in this scenario - setting public_share_sharers_groups_allowlist_enabled has no effect in this case.

@janackermann

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@phil-davis I decided myself if public_share_sharers_groups_allowlist_enabled but no groups are set, that there will be no public share restriction, to keep support cases as low as possible.
("Hey we don't see the sharing tab anymore").

But for sure this needs to be addressed in PB2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants