From 1784577fe79ff3fcce4a735f5f1b2da6b1e02b41 Mon Sep 17 00:00:00 2001 From: Saw-jan Date: Mon, 12 Aug 2024 17:43:46 +0545 Subject: [PATCH] test: fix issue numbers --- .../expected-failures-API-on-OCIS-storage.md | 21 +++++-------------- .../features/bootstrap/FavoritesContext.php | 2 +- .../coreApiAuth/webDavLOCKAuth.feature | 4 ++-- .../coreApiAuth/webDavPUTAuth.feature | 8 +++---- .../coreApiFavorites/favorites.feature | 18 ++++++++-------- .../favoritesSharingToShares.feature | 2 +- .../features/coreApiMain/checksums.feature | 2 +- .../trashbinSharingToShares.feature | 4 ++-- .../refuseAccess.feature | 4 ++-- .../coreApiWebdavOperations/search.feature | 4 ++-- 10 files changed, 29 insertions(+), 40 deletions(-) diff --git a/tests/acceptance/expected-failures-API-on-OCIS-storage.md b/tests/acceptance/expected-failures-API-on-OCIS-storage.md index a4258733e9b..c8fde7a56d9 100644 --- a/tests/acceptance/expected-failures-API-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-API-on-OCIS-storage.md @@ -70,7 +70,7 @@ _ocdav: api compatibility, return correct status code_ - [coreApiAuth/webDavMKCOLAuth.feature:42](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/webDavMKCOLAuth.feature#L42) - [coreApiAuth/webDavMKCOLAuth.feature:53](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/webDavMKCOLAuth.feature#L53) -#### [trying to lock file of another user gives http 200](https://github.com/owncloud/ocis/issues/2176) +#### [trying to lock file of another user gives http 500](https://github.com/owncloud/ocis/issues/2176) - [coreApiAuth/webDavLOCKAuth.feature:46](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/webDavLOCKAuth.feature#L46) - [coreApiAuth/webDavLOCKAuth.feature:58](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/webDavLOCKAuth.feature#L58) @@ -82,12 +82,7 @@ _ocdav: api compatibility, return correct status code_ - [coreApiAuth/webDavPOSTAuth.feature:46](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/webDavPOSTAuth.feature#L46) - [coreApiAuth/webDavPOSTAuth.feature:55](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/webDavPOSTAuth.feature#L55) -#### Another users space literally does not exist because it is not listed as a space for him, 404 seems correct, expects 403 - -- [coreApiAuth/webDavPUTAuth.feature:46](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/webDavPUTAuth.feature#L46) -- [coreApiAuth/webDavPUTAuth.feature:58](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/webDavPUTAuth.feature#L58) - -#### [[old/new/spaces] In ocis and oc10, REPORT request response differently](https://github.com/owncloud/ocis/issues/4712) +#### [Missing properties in REPORT response](https://github.com/owncloud/ocis/issues/9780), [REPORT response has different date format for d:getlastmodified](https://github.com/owncloud/ocis/issues/9781), [d:getetag property has empty value in REPORT response](https://github.com/owncloud/ocis/issues/9783) - [coreApiWebdavOperations/search.feature:180](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavOperations/search.feature#L180) - [coreApiWebdavOperations/search.feature:181](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavOperations/search.feature#L181) @@ -100,13 +95,13 @@ _ocdav: api compatibility, return correct status code_ - [coreApiFavorites/favorites.feature:101](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L101) - [coreApiFavorites/favorites.feature:102](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L102) +- [coreApiFavorites/favorites.feature:103](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L103) - [coreApiFavorites/favorites.feature:124](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L124) - [coreApiFavorites/favorites.feature:125](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L125) +- [coreApiFavorites/favorites.feature:126](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L126) - [coreApiFavorites/favorites.feature:189](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L189) - [coreApiFavorites/favorites.feature:190](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L190) - -And other missing implementation of favorites - +- [coreApiFavorites/favorites.feature:191](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L191) - [coreApiFavorites/favorites.feature:145](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L145) - [coreApiFavorites/favorites.feature:146](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L146) - [coreApiFavorites/favorites.feature:147](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L147) @@ -191,12 +186,6 @@ Not everything needs to be implemented for ocis. While the oc10 testsuite covers - [coreApiWebdavMove1/moveFolder.feature:64](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove1/moveFolder.feature#L64) - [coreApiWebdavMove2/moveFile.feature:179](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveFile.feature#L179) -#### [REPORT method on spaces returns an incorrect d:href response](https://github.com/owncloud/ocis/issues/3111) - -- [coreApiFavorites/favorites.feature:103](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L103) -- [coreApiFavorites/favorites.feature:126](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L126) -- [coreApiFavorites/favorites.feature:191](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiFavorites/favorites.feature#L191) - #### [HTTP status code differ while deleting file of another user's trash bin](https://github.com/owncloud/ocis/issues/3544) - [coreApiTrashbin/trashbinDelete.feature:92](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L92) diff --git a/tests/acceptance/features/bootstrap/FavoritesContext.php b/tests/acceptance/features/bootstrap/FavoritesContext.php index 0cf927acb54..b9117033e09 100644 --- a/tests/acceptance/features/bootstrap/FavoritesContext.php +++ b/tests/acceptance/features/bootstrap/FavoritesContext.php @@ -100,7 +100,7 @@ class FavoritesContext implements Context { } /** - * @Then /^user "([^"]*)" should (not|)\s?have favorited the following elements$/ + * @Then /^user "([^"]*)" should (not|)\s?have the following favorited items$/ * * @param string $user * @param string $shouldOrNot (not|) diff --git a/tests/acceptance/features/coreApiAuth/webDavLOCKAuth.feature b/tests/acceptance/features/coreApiAuth/webDavLOCKAuth.feature index 4bccd7afbf8..d47099be9cd 100644 --- a/tests/acceptance/features/coreApiAuth/webDavLOCKAuth.feature +++ b/tests/acceptance/features/coreApiAuth/webDavLOCKAuth.feature @@ -42,7 +42,7 @@ Feature: LOCK file/folder | /remote.php/dav/spaces/%spaceid%/PARENT/parent.txt | Then the HTTP status code of responses on all endpoints should be "401" - @issue-1347 + @issue-1347 @issue-2176 Scenario: send LOCK requests to another user's webDav endpoints as normal user When user "Brian" requests these endpoints with "LOCK" to get property "d:shared" about user "Alice" | endpoint | @@ -54,7 +54,7 @@ Feature: LOCK file/folder | /remote.php/dav/files/%username%/PARENT/parent.txt | Then the HTTP status code of responses on all endpoints should be "409" - @issue-1347 + @issue-1347 @issue-2176 Scenario: send LOCK requests to another user's webDav endpoints as normal user using the spaces WebDAV API When user "Brian" requests these endpoints with "LOCK" to get property "d:shared" about user "Alice" | endpoint | diff --git a/tests/acceptance/features/coreApiAuth/webDavPUTAuth.feature b/tests/acceptance/features/coreApiAuth/webDavPUTAuth.feature index 5d73ae65853..5e2967abddc 100644 --- a/tests/acceptance/features/coreApiAuth/webDavPUTAuth.feature +++ b/tests/acceptance/features/coreApiAuth/webDavPUTAuth.feature @@ -48,11 +48,11 @@ Feature: PUT file/folder | endpoint | | /remote.php/dav/files/%username%/textfile1.txt | | /remote.php/dav/files/%username%/PARENT | - Then the HTTP status code of responses on all endpoints should be "403" + Then the HTTP status code of responses on all endpoints should be "404" When user "Brian" requests these endpoints with "PUT" including body "doesnotmatter" about user "Alice" | endpoint | | /remote.php/dav/files/%username%/PARENT/parent.txt | - Then the HTTP status code of responses on all endpoints should be "403" + Then the HTTP status code of responses on all endpoints should be "404" Scenario: send PUT requests to another user's webDav endpoints as normal user using the spaces WebDAV API @@ -60,11 +60,11 @@ Feature: PUT file/folder | endpoint | | /remote.php/dav/spaces/%spaceid%/textfile0.txt | | /remote.php/dav/spaces/%spaceid%/PARENT | - Then the HTTP status code of responses on all endpoints should be "403" + Then the HTTP status code of responses on all endpoints should be "404" When user "Brian" requests these endpoints with "PUT" including body "doesnotmatter" about user "Alice" | endpoint | | /remote.php/dav/spaces/%spaceid%/PARENT/parent.txt | - Then the HTTP status code of responses on all endpoints should be "403" + Then the HTTP status code of responses on all endpoints should be "404" Scenario: send PUT requests to webDav endpoints using invalid username but correct password diff --git a/tests/acceptance/features/coreApiFavorites/favorites.feature b/tests/acceptance/features/coreApiFavorites/favorites.feature index 4d02c48a0f7..342a74290e1 100644 --- a/tests/acceptance/features/coreApiFavorites/favorites.feature +++ b/tests/acceptance/features/coreApiFavorites/favorites.feature @@ -85,14 +85,14 @@ Feature: favorite | new | | spaces | - @smokeTest + @smokeTest @issue-1228 Scenario Outline: get favorited elements of a folder Given using DAV path When user "Alice" favorites element "/FOLDER" using the WebDAV API And user "Alice" favorites element "/textfile0.txt" using the WebDAV API And user "Alice" favorites element "/textfile1.txt" using the WebDAV API Then the HTTP status code should be "207" - And user "Alice" should have favorited the following elements + And user "Alice" should have the following favorited items | /FOLDER | | /textfile0.txt | | /textfile1.txt | @@ -102,7 +102,7 @@ Feature: favorite | new | | spaces | - + @issue-1228 Scenario Outline: get favorited elements of a subfolder Given using DAV path And user "Alice" has created folder "/subfolder" @@ -114,10 +114,10 @@ Feature: favorite And user "Alice" favorites element "/subfolder/textfile2.txt" using the WebDAV API And user "Alice" unfavorites element "/subfolder/textfile1.txt" using the WebDAV API Then the HTTP status code should be "207" - And user "Alice" should have favorited the following elements + And user "Alice" should have the following favorited items | /subfolder/textfile0.txt | | /subfolder/textfile2.txt | - And user "Alice" should not have favorited the following elements + And user "Alice" should not have the following favorited items | /subfolder/textfile1.txt | Examples: | dav-path-version | @@ -125,7 +125,7 @@ Feature: favorite | new | | spaces | - + @issue-1228 Scenario Outline: get favorited elements and limit count of entries Given using DAV path And user "Alice" has favorited element "/textfile0.txt" @@ -146,7 +146,7 @@ Feature: favorite | new | | spaces | - + @issue-1228 Scenario Outline: get favorited elements paginated in subfolder Given using DAV path And user "Alice" has created folder "/subfolder" @@ -175,13 +175,13 @@ Feature: favorite | new | | spaces | - + @issue-1228 Scenario Outline: favoriting a folder does not change the favorite state of elements inside the folder Given using DAV path When user "Alice" favorites element "/PARENT/parent.txt" using the WebDAV API And user "Alice" favorites element "/PARENT" using the WebDAV API Then the HTTP status code should be "207" - And user "Alice" should have favorited the following elements + And user "Alice" should have the following favorited items | /PARENT | | /PARENT/parent.txt | Examples: diff --git a/tests/acceptance/features/coreApiFavorites/favoritesSharingToShares.feature b/tests/acceptance/features/coreApiFavorites/favoritesSharingToShares.feature index 1fffc1572f7..8e64893be3b 100644 --- a/tests/acceptance/features/coreApiFavorites/favoritesSharingToShares.feature +++ b/tests/acceptance/features/coreApiFavorites/favoritesSharingToShares.feature @@ -67,7 +67,7 @@ Feature: favorite | old | | new | - + @issue-1228 Scenario Outline: moving a favorite file out of a share keeps favorite state Given using DAV path And user "Brian" has been created with default attributes and without skeleton files diff --git a/tests/acceptance/features/coreApiMain/checksums.feature b/tests/acceptance/features/coreApiMain/checksums.feature index 99b65dc55f3..7d07a5a6dba 100644 --- a/tests/acceptance/features/coreApiMain/checksums.feature +++ b/tests/acceptance/features/coreApiMain/checksums.feature @@ -207,7 +207,7 @@ Feature: checksums | spaces | ## Validation Plugin or Old Endpoint Specific - @issue-1343 + @issue-1343 @issue-2323 Scenario Outline: uploading an old method chunked file with checksum should fail using new DAV path Given using DAV path When user "Alice" uploads chunk file "1" of "3" with "AAAAA" to "/myChecksumFile.txt" with checksum "MD5:45a72715acdd5019c5be30bdbb75233e" using the WebDAV API diff --git a/tests/acceptance/features/coreApiTrashbin/trashbinSharingToShares.feature b/tests/acceptance/features/coreApiTrashbin/trashbinSharingToShares.feature index 916752959b8..a8c9b5d1f96 100644 --- a/tests/acceptance/features/coreApiTrashbin/trashbinSharingToShares.feature +++ b/tests/acceptance/features/coreApiTrashbin/trashbinSharingToShares.feature @@ -30,8 +30,8 @@ Feature: using trashbin together with sharing | new | | spaces | - @issue-1224 @issue-7555 - Scenario Outline: deleting a file in a received folder moves it to trashbin of both users + @issue-1124 @issue-7555 + Scenario Outline: sharee deleting a file in a received folder after renaming the shared folder moves it to trashbin of both users Given using DAV path And user "Brian" has been created with default attributes and without skeleton files And user "Alice" has created folder "/shared" diff --git a/tests/acceptance/features/coreApiWebdavOperations/refuseAccess.feature b/tests/acceptance/features/coreApiWebdavOperations/refuseAccess.feature index 2f33e90295b..c2240c46564 100644 --- a/tests/acceptance/features/coreApiWebdavOperations/refuseAccess.feature +++ b/tests/acceptance/features/coreApiWebdavOperations/refuseAccess.feature @@ -6,7 +6,7 @@ Feature: refuse access Background: Given using OCS API version "1" - @smokeTest + @smokeTest @issue-2285 Scenario Outline: unauthenticated call # cannot perform with spaces WebDAV due to the absence of user Given using DAV path @@ -21,7 +21,7 @@ Feature: refuse access | old | | new | - + @issue-2285 Scenario Outline: disabled user cannot use webdav Given using DAV path And user "Alice" has been created with default attributes and without skeleton files diff --git a/tests/acceptance/features/coreApiWebdavOperations/search.feature b/tests/acceptance/features/coreApiWebdavOperations/search.feature index ca1fd9c6b13..dbfad65a4e9 100644 --- a/tests/acceptance/features/coreApiWebdavOperations/search.feature +++ b/tests/acceptance/features/coreApiWebdavOperations/search.feature @@ -152,7 +152,7 @@ Feature: Search | new | | spaces | - @issue-4712 + @issue-4712 @issue-9780 @issue-9781 @issue-9783 Scenario Outline: report extra properties in search entries for a file Given using DAV path When user "Alice" searches for "*upload*" using the WebDAV API requesting these properties: @@ -181,7 +181,7 @@ Feature: Search | new | | spaces | - @issue-4712 + @issue-4712 @issue-9780 @issue-9781 @issue-9783 Scenario Outline: report extra properties in search entries for a folder Given using DAV path When user "Alice" searches for "*upload*" using the WebDAV API requesting these properties: