Skip to content

Commit

Permalink
Merge pull request #37477 from owncloud/ocis-share-permissions
Browse files Browse the repository at this point in the history
[Tests-only] Get webdav share-permissions for owned file
  • Loading branch information
phil-davis authored Jun 3, 2020
2 parents 217c454 + cc03420 commit 637b57e
Showing 1 changed file with 34 additions and 3 deletions.
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 |

0 comments on commit 637b57e

Please sign in to comment.