From cc03420465f61e383f621d03d10cd530a7dc88a1 Mon Sep 17 00:00:00 2001 From: HariBhandari07 Date: Wed, 3 Jun 2020 09:50:50 +0545 Subject: [PATCH] [Tests-only] Get webdav share-permissions for owned file --- .../getWebDAVSharePermissions.feature | 37 +++++++++++++++++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/tests/acceptance/features/apiShareOperations/getWebDAVSharePermissions.feature b/tests/acceptance/features/apiShareOperations/getWebDAVSharePermissions.feature index 795e61b7bca5..40482ec136f5 100644 --- a/tests/acceptance/features/apiShareOperations/getWebDAVSharePermissions.feature +++ b/tests/acceptance/features/apiShareOperations/getWebDAVSharePermissions.feature @@ -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: @@ -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 And user "Alice" has uploaded file with content "foo" to "/tmp.txt" @@ -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 + 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 And user "Alice" has uploaded file with content "foo" to "/tmp.txt" @@ -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 And group "grp1" has been created @@ -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 And user "Alice" has uploaded file with content "foo" to "/tmp.txt" @@ -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 And group "grp1" has been created @@ -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 And user "Alice" has uploaded file with content "foo" to "/tmp.txt" @@ -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 And group "grp1" has been created @@ -115,6 +135,7 @@ Feature: sharing | old | | new | + @skipOnOcis Scenario Outline: Correct webdav share-permissions for owned folder Given using DAV path And user "Alice" has created folder "/tmp" @@ -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 And user "Alice" has created folder "/tmp" @@ -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 And group "grp1" has been created @@ -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 And user "Alice" has created folder "/tmp" @@ -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 And group "grp1" has been created @@ -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 And user "Alice" has created folder "/tmp" @@ -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 And group "grp1" has been created @@ -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 And user "Alice" has created folder "/tmp" @@ -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 And group "grp1" has been created @@ -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 And user "Alice" has created folder "/tmp" @@ -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 And group "grp1" has been created @@ -280,4 +311,4 @@ Feature: sharing Examples: | dav-path | | old | - | new | + | new | \ No newline at end of file