diff --git a/tests/acceptance/features/apiShareOperationsToShares2/getWebDAVSharePermissions.feature b/tests/acceptance/features/apiShareOperationsToShares2/getWebDAVSharePermissions.feature index 2fcd49dadb78..576c92be749c 100644 --- a/tests/acceptance/features/apiShareOperationsToShares2/getWebDAVSharePermissions.feature +++ b/tests/acceptance/features/apiShareOperationsToShares2/getWebDAVSharePermissions.feature @@ -17,7 +17,8 @@ Feature: sharing 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 "19" + Then the HTTP status code should be "201" + And the single response should contain a property "ocs:share-permissions" with value "19" Examples: | dav-path | | old | @@ -37,7 +38,8 @@ Feature: sharing When user "Brian" gets the following properties of file "/Shares/tmp.txt" using the WebDAV API | propertyName | | ocs:share-permissions | - Then the single response should contain a property "ocs:share-permissions" with value "19" + Then the HTTP status code should be "200" + And the single response should contain a property "ocs:share-permissions" with value "19" Examples: | dav-path | | old | @@ -63,7 +65,8 @@ Feature: sharing When user "Brian" gets the following properties of file "/Shares/tmp.txt" using the WebDAV API | propertyName | | ocs:share-permissions | - Then the single response should contain a property "ocs:share-permissions" with value "19" + Then the HTTP status code should be "200" + And the single response should contain a property "ocs:share-permissions" with value "19" Examples: | dav-path | | old | @@ -82,7 +85,8 @@ Feature: sharing And user "Brian" has accepted share "/tmp.txt" offered by user "Alice" When user "Alice" updates the last share using the sharing API with | permissions | update,read | - Then as user "Brian" file "/Shares/tmp.txt" should contain a property "ocs:share-permissions" with value "3" + Then the HTTP status code should be "200" + And as user "Brian" file "/Shares/tmp.txt" should contain a property "ocs:share-permissions" with value "3" Examples: | dav-path | | old | @@ -108,7 +112,8 @@ Feature: sharing When user "Brian" gets the following properties of file "/Shares/tmp.txt" using the WebDAV API | propertyName | | ocs:share-permissions | - Then the single response should contain a property "ocs:share-permissions" with value "3" + Then the HTTP status code should be "200" + And the single response should contain a property "ocs:share-permissions" with value "3" Examples: | dav-path | | old | @@ -127,7 +132,8 @@ Feature: sharing And user "Brian" has accepted share "/tmp.txt" offered by user "Alice" When user "Alice" updates the last share using the sharing API with | permissions | share,read | - Then as user "Brian" file "/Shares/tmp.txt" should contain a property "ocs:share-permissions" with value "17" + Then the HTTP status code should be "200" + And as user "Brian" file "/Shares/tmp.txt" should contain a property "ocs:share-permissions" with value "17" Examples: | dav-path | | old | @@ -153,7 +159,8 @@ Feature: sharing When user "Brian" gets the following properties of file "/Shares/tmp.txt" using the WebDAV API | propertyName | | ocs:share-permissions | - Then the single response should contain a property "ocs:share-permissions" with value "17" + Then the HTTP status code should be "200" + And the single response should contain a property "ocs:share-permissions" with value "17" Examples: | dav-path | | old | @@ -171,7 +178,8 @@ Feature: sharing When user "Alice" gets the following properties of folder "/" using the WebDAV API | propertyName | | ocs:share-permissions | - Then the single response should contain a property "ocs:share-permissions" with value "31" + Then the HTTP status code should be "201" + And the single response should contain a property "ocs:share-permissions" with value "31" Examples: | dav-path | | old | @@ -191,7 +199,8 @@ Feature: sharing When user "Brian" gets the following properties of folder "/Shares/tmp" using the WebDAV API | propertyName | | ocs:share-permissions | - Then the single response should contain a property "ocs:share-permissions" with value "31" + Then the HTTP status code should be "200" + And the single response should contain a property "ocs:share-permissions" with value "31" Examples: | dav-path | | old | @@ -216,7 +225,8 @@ Feature: sharing When user "Brian" gets the following properties of folder "/Shares/tmp" using the WebDAV API | propertyName | | ocs:share-permissions | - Then the single response should contain a property "ocs:share-permissions" with value "31" + Then the HTTP status code should be "200" + And the single response should contain a property "ocs:share-permissions" with value "31" Examples: | dav-path | | old | @@ -235,6 +245,7 @@ Feature: sharing And user "Brian" has accepted share "/tmp" offered by user "Alice" When user "Alice" updates the last share using the sharing API with | permissions | share,delete,create,read | + Then the HTTP status code should be "200" Then as user "Brian" folder "/Shares/tmp" should contain a property "ocs:share-permissions" with value "29" Examples: | dav-path | @@ -261,7 +272,8 @@ Feature: sharing When user "Brian" gets the following properties of folder "/Shares/tmp" using the WebDAV API | propertyName | | ocs:share-permissions | - Then the single response should contain a property "ocs:share-permissions" with value "29" + Then the HTTP status code should be "200" + And the single response should contain a property "ocs:share-permissions" with value "29" Examples: | dav-path | | old | @@ -280,7 +292,8 @@ Feature: sharing And user "Brian" has accepted share "/tmp" offered by user "Alice" When user "Alice" updates the last share using the sharing API with | permissions | share,delete,update,read | - Then as user "Brian" folder "/Shares/tmp" should contain a property "ocs:share-permissions" with value "27" + Then the HTTP status code should be "200" + And as user "Brian" folder "/Shares/tmp" should contain a property "ocs:share-permissions" with value "27" Examples: | dav-path | | old | @@ -306,7 +319,8 @@ Feature: sharing When user "Brian" gets the following properties of folder "/Shares/tmp" using the WebDAV API | propertyName | | ocs:share-permissions | - Then the single response should contain a property "ocs:share-permissions" with value "27" + Then the HTTP status code should be "200" + And the single response should contain a property "ocs:share-permissions" with value "27" Examples: | dav-path | | old | @@ -325,7 +339,8 @@ Feature: sharing And user "Brian" has accepted share "/tmp" offered by user "Alice" When user "Alice" updates the last share using the sharing API with | permissions | share,create,update,read | - Then as user "Brian" folder "/Shares/tmp" should contain a property "ocs:share-permissions" with value "23" + Then the HTTP status code should be "200" + And as user "Brian" folder "/Shares/tmp" should contain a property "ocs:share-permissions" with value "23" Examples: | dav-path | | old | @@ -351,7 +366,8 @@ Feature: sharing When user "Brian" gets the following properties of folder "/Shares/tmp" using the WebDAV API | propertyName | | ocs:share-permissions | - Then the single response should contain a property "ocs:share-permissions" with value "23" + Then the HTTP status code should be "200" + And the single response should contain a property "ocs:share-permissions" with value "23" Examples: | dav-path | | old | @@ -370,7 +386,8 @@ Feature: sharing And user "Brian" has accepted share "/tmp" offered by user "Alice" When user "Alice" updates the last share using the sharing API with | permissions | change | - Then as user "Brian" folder "/Shares/tmp" should contain a property "ocs:share-permissions" with value "15" + Then the HTTP status code should be "200" + And as user "Brian" folder "/Shares/tmp" should contain a property "ocs:share-permissions" with value "15" Examples: | dav-path | | old | @@ -396,7 +413,8 @@ Feature: sharing When user "Brian" gets the following properties of folder "/Shares/tmp" using the WebDAV API | propertyName | | ocs:share-permissions | - Then the single response should contain a property "ocs:share-permissions" with value "15" + Then the HTTP status code should be "200" + And the single response should contain a property "ocs:share-permissions" with value "15" Examples: | dav-path | | old |