From ae8f618bb05b596ebb2b48cfa654f9bbd15cd651 Mon Sep 17 00:00:00 2001 From: Prajwol Amatya Date: Fri, 22 Nov 2024 09:53:59 +0545 Subject: [PATCH 1/3] add scenarios to expected failure file while running without remote.php --- tests/acceptance/expected-failures-without-remotephp.md | 3 +++ .../coreApiSharePublicLink1/createPublicLinkShare.feature | 2 +- .../features/coreApiWebdavUploadTUS/uploadFileMtime.feature | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/expected-failures-without-remotephp.md b/tests/acceptance/expected-failures-without-remotephp.md index fdd7e70748..095e2481dd 100644 --- a/tests/acceptance/expected-failures-without-remotephp.md +++ b/tests/acceptance/expected-failures-without-remotephp.md @@ -246,6 +246,8 @@ - [coreApiSharePublicLink1/changingPublicLinkShare.feature:120](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/changingPublicLinkShare.feature#L120) - [coreApiSharePublicLink1/changingPublicLinkShare.feature:132](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/changingPublicLinkShare.feature#L132) - [coreApiSharePublicLink1/changingPublicLinkShare.feature:145](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/changingPublicLinkShare.feature#L145) +- [coreApiSharePublicLink1/changingPublicLinkShare.feature:189](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/changingPublicLinkShare.feature#L189) +- [coreApiSharePublicLink1/changingPublicLinkShare.feature:190](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/changingPublicLinkShare.feature#L190) - [coreApiSharePublicLink1/createPublicLinkShare.feature:304](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature#L304) - [coreApiSharePublicLink1/createPublicLinkShare.feature:328](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature#L328) - [coreApiSharePublicLink1/createPublicLinkShare.feature:329](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature#L329) @@ -347,6 +349,7 @@ - [coreApiWebdavUploadTUS/uploadFileMtime.feature:27](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtime.feature#L27) - [coreApiWebdavUploadTUS/uploadFileMtime.feature:39](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtime.feature#L39) - [coreApiWebdavUploadTUS/uploadFileMtime.feature:51](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtime.feature#L51) +- [coreApiWebdavUploadTUS/uploadFileMtime.feature:65](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtime.feature#L65) - [coreApiWebdavUploadTUS/uploadFileMtimeShares.feature:29](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtimeShares.feature#L29) - [coreApiWebdavUploadTUS/uploadFileMtimeShares.feature:48](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtimeShares.feature#L48) - [coreApiWebdavUploadTUS/uploadFileMtimeShares.feature:69](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtimeShares.feature#L69) diff --git a/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature b/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature index a5a05aaad9..10db74417d 100644 --- a/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature +++ b/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature @@ -169,7 +169,7 @@ Feature: create a public link share | 1 | 100 | | 2 | 200 | - + @issue-10331 Scenario Outline: creating a link share with no specified permissions defaults to read permissions when public upload is disabled globally and accessing using the public WebDAV API Given using OCS API version "" And user "Alice" has created folder "/afolder" diff --git a/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtime.feature b/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtime.feature index 7f69e5dde8..bba27e80b7 100644 --- a/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtime.feature +++ b/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtime.feature @@ -66,7 +66,7 @@ Feature: upload file | new | | spaces | - @issue-10346 + @issue-10346 @issue-10496 Scenario Outline: upload a file with the same mtime and different content multiple times (atleast 3 times) Given using DAV path And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "file.txt" with mtime "Thu, 08 Aug 2019 04:18:13 GMT" using the TUS protocol From 0add18fc9a340ff636df464768ae9fa6ef0615a9 Mon Sep 17 00:00:00 2001 From: Prajwol Amatya Date: Fri, 22 Nov 2024 12:03:49 +0545 Subject: [PATCH 2/3] remove @provisioning_api-app-required tag --- .../features/apiAccountsHashDifficulty/addUser.feature | 2 +- .../features/coreApiTrashbin/trashbinFilesFolders.feature | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/features/apiAccountsHashDifficulty/addUser.feature b/tests/acceptance/features/apiAccountsHashDifficulty/addUser.feature index f7bee673a2..0280213978 100644 --- a/tests/acceptance/features/apiAccountsHashDifficulty/addUser.feature +++ b/tests/acceptance/features/apiAccountsHashDifficulty/addUser.feature @@ -1,4 +1,4 @@ -@provisioning_api-app-required @skipOnGraph @skipOnReva +@skipOnReva Feature: add user As an admin I want to be able to add users and store their password with the full hash difficulty diff --git a/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature b/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature index cb3ff87152..83d722f920 100644 --- a/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature +++ b/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature @@ -178,7 +178,7 @@ Feature: files and folders exist in the trashbin after being deleted | new | | spaces | - @issue-3561 @provisioning_api-app-required + @issue-3561 Scenario Outline: listing other user's trashbin is prohibited for newly recreated user with same name Given using DAV path And user "testtrashbin102" has been created with default attributes and without skeleton files From 23b3f9d7aafbc6dd543ac717d022f693443c45c1 Mon Sep 17 00:00:00 2001 From: Prajwol Amatya Date: Fri, 22 Nov 2024 13:07:49 +0545 Subject: [PATCH 3/3] update add user test for apiAccountsHashDifficulty test suite --- .../apiAccountsHashDifficulty/addUser.feature | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/tests/acceptance/features/apiAccountsHashDifficulty/addUser.feature b/tests/acceptance/features/apiAccountsHashDifficulty/addUser.feature index 0280213978..b172258278 100644 --- a/tests/acceptance/features/apiAccountsHashDifficulty/addUser.feature +++ b/tests/acceptance/features/apiAccountsHashDifficulty/addUser.feature @@ -8,15 +8,12 @@ Feature: add user See https://github.com/owncloud/ocis/issues/1542 and https://github.com/owncloud/ocis/pull/839 - Scenario Outline: admin creates a user - Given using OCS API version "" - And user "brand-new-user" has been deleted - When the administrator sends a user creation request for user "brand-new-user" password "%alt1%" using the provisioning API - Then the OCS status code should be "" - And the HTTP status code should be "200" + Scenario: admin creates a user + When the user "Admin" creates a new user with the following attributes using the Graph API: + | userName | brand-new-user | + | displayName | Brand New User | + | email | new@example.org | + | password | %alt1% | + Then the HTTP status code should be "201" And user "brand-new-user" should exist - And user "brand-new-user" should be able to access a skeleton file - Examples: - | ocs-api-version | ocs-status-code | - | 1 | 100 | - | 2 | 200 | + And user "brand-new-user" should be able to upload file "filesForUpload/lorem.txt" to "lorem.txt"