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

[Tests-only] Get webdav share-permissions for owned file #37477

Merged
merged 1 commit into from
Jun 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api @TestAlsoOnExternalUserBackend @files_sharing-app-required @skipOnOcis @issue-ocis-reva-47
@api @TestAlsoOnExternalUserBackend @files_sharing-app-required @issue-ocis-reva-47
Feature: sharing

Background:
Expand All @@ -8,7 +8,7 @@ Feature: sharing
| Alice |
| Brian |

@smokeTest
@smokeTest @skipOnOcis @issue-ocis-reva-47
Scenario Outline: Correct webdav share-permissions for owned file
Given using <dav-path> DAV path
And user "Alice" has uploaded file with content "foo" to "/tmp.txt"
Expand All @@ -21,6 +21,21 @@ Feature: sharing
| old |
| new |

@issue-ocis-reva-47 @skipOnOcV10
#after fixing the issues delete this Scenario and use the one above
Scenario Outline: Empty webdav share-permissions for owned file
Given using <dav-path> DAV path
And user "Alice" has uploaded file with content "foo" to "/tmp.txt"
When user "Alice" gets the following properties of file "/tmp.txt" using the WebDAV API
| propertyName |
| ocs:share-permissions |
Then the single response should contain a property "ocs:share-permissions" with value ""
Examples:
| dav-path |
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received file with edit and reshare permissions
Given using <dav-path> DAV path
And user "Alice" has uploaded file with content "foo" to "/tmp.txt"
Expand All @@ -34,6 +49,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received group shared file with edit and reshare permissions
Given using <dav-path> DAV path
And group "grp1" has been created
Expand All @@ -53,6 +69,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received file with edit permissions but no reshare permissions
Given using <dav-path> DAV path
And user "Alice" has uploaded file with content "foo" to "/tmp.txt"
Expand All @@ -65,6 +82,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received group shared file with edit permissions but no reshare permissions
Given using <dav-path> DAV path
And group "grp1" has been created
Expand All @@ -84,6 +102,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received file with reshare permissions but no edit permissions
Given using <dav-path> DAV path
And user "Alice" has uploaded file with content "foo" to "/tmp.txt"
Expand All @@ -96,6 +115,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received group shared file with reshare permissions but no edit permissions
Given using <dav-path> DAV path
And group "grp1" has been created
Expand All @@ -115,6 +135,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for owned folder
Given using <dav-path> DAV path
And user "Alice" has created folder "/tmp"
Expand All @@ -127,6 +148,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received folder with all permissions
Given using <dav-path> DAV path
And user "Alice" has created folder "/tmp"
Expand All @@ -140,6 +162,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received group shared folder with all permissions
Given using <dav-path> DAV path
And group "grp1" has been created
Expand All @@ -158,6 +181,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received folder with all permissions but edit
Given using <dav-path> DAV path
And user "Alice" has created folder "/tmp"
Expand All @@ -170,6 +194,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received group shared folder with all permissions but edit
Given using <dav-path> DAV path
And group "grp1" has been created
Expand All @@ -189,6 +214,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received folder with all permissions but create
Given using <dav-path> DAV path
And user "Alice" has created folder "/tmp"
Expand All @@ -201,6 +227,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received group shared folder with all permissions but create
Given using <dav-path> DAV path
And group "grp1" has been created
Expand All @@ -220,6 +247,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received folder with all permissions but delete
Given using <dav-path> DAV path
And user "Alice" has created folder "/tmp"
Expand All @@ -232,6 +260,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received group shared folder with all permissions but delete
Given using <dav-path> DAV path
And group "grp1" has been created
Expand All @@ -251,6 +280,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received folder with all permissions but share
Given using <dav-path> DAV path
And user "Alice" has created folder "/tmp"
Expand All @@ -263,6 +293,7 @@ Feature: sharing
| old |
| new |

@skipOnOcis
Scenario Outline: Correct webdav share-permissions for received group shared folder with all permissions but share
Given using <dav-path> DAV path
And group "grp1" has been created
Expand All @@ -280,4 +311,4 @@ Feature: sharing
Examples:
| dav-path |
| old |
| new |
| new |