Commit Graph

340 Commits

Author SHA1 Message Date
Karun Atreya 49d9d3bd24 [tests-only][full-ci] removing the setresponse in given/then step in SettingContext and TUSContext (#7298)
* refactor given when then steps in settings and tus contexts

* set resource location from response

* addressed the reviews

* reset  spaceidfromocis

* reset after scenario using after hook
2023-09-25 13:32:42 +05:45
Karun Atreya bea303fd87 [tests-only][full-ci] removing the setresponse in given/when/then step in Notification Context (#7324)
* refactor given steps

* refactor use of helper function in cross steps

* return using inline variable
2023-09-25 12:50:40 +05:45
Viktor Scharf c62d19cf32 [test-only] ApiTest. search by date (#7310)
* add search test

* comment out failed test

* deleted cases

* Delete tests/ban.txt
2023-09-21 17:17:28 +02:00
kobergj 7c9ce2305b Merge pull request #7291 from kobergj/NextDocsFix
[tests-only] Use OCIS_ASYNC_UPLOADS in docs
2023-09-19 11:28:07 +02:00
Viktor Scharf eb537987ad [test-only] ApiTest. test for password policy (#7276)
* test for password policy

* test flaky

* renamed envs
2023-09-18 10:21:35 +02:00
jkoberg a8eb523b5b remove old STORAGE_USERS_ASYNC_UPLOADS envvar from docs
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-09-15 14:43:12 +02:00
Swikriti Tripathi 8bad22ce6d Add test for searching content across files with different format with search text highlight (#7236) 2023-09-15 15:31:46 +05:45
Karun Atreya 4d4b9128ea [tests-only][full-ci] removing the setresponse in given/then step in TrashbinContext and TagsContext (#7261)
* refactor given and when steps in trashbin context

* applied same type of change in tagContext

* addressed the reviews

* added a space in step regex
2023-09-15 15:31:25 +05:45
Nalem7 78f08eb092 adding the path check (#7007) 2023-09-13 18:16:28 +05:45
Prajwol Amatya fa749529a9 [tests-only][full-ci ]Forwardport add test coverage for file preview using space dav version (#7266)
* Add tests for preview using space dav~

* use makeDavRequest to get preview of resource

---------

Co-authored-by: amrita <bunnycrestha34@gmail.com>
2023-09-12 12:05:55 +05:45
Karun Atreya 8d1b2e3343 [tests-only][full-ci] removing the setresponse in given/then step in CheckSumContext and FavoritesContext (#7202)
* making helper function, checking and setting response in given step and when steo respectively

* returning response and using in given/then steps as required in favoritesContext

* set the returned response on SpaceContext

* changed to inline variable in some lines as required

* to check for the specific https response code
2023-09-11 17:42:27 +05:45
Karun Atreya dbb666babf [tests-only][full-ci] removing the setresponse in given/then step in FileVersionsContext (#7111)
* migrating set response from helper function to when step in preview feature

* separate single when/then steps by converting to helper function

* use of httpstatuscode check function in given step and rebased

* change function name

* remove use of setresponse in then step

* set the returned response
2023-09-11 17:29:28 +05:45
Viktor Scharf 3ec2502ea1 kql search tests (#7248)
Co-authored-by: Florian Schade <f.schade@icloud.com>
2023-09-08 13:18:26 +02:00
Florian Schade 844783b6f9 [full-ci] - use KQL as default search query language (#7212)
* enhancement: use kql as default search query language

* enhancement: add support for unicode search queries

* fix: escape bleve field query whitespace

* fix: search related acceptance tests

* enhancement: remove legacy search query language

* enhancement: add support for kql dateTime restriction node types

* chore: bump web to v8.0.0-alpha.2

* fix: failing search api test

* enhancement: search bleve query compiler use DateRangeQuery as DateTimeNode counterpart

* enhancement: support for colon operators in dateTime kql queries
2023-09-07 11:13:33 +02:00
Prajwol Amatya 0aa41d90c1 send X-Request-Id in header of every request (#7085) 2023-09-06 16:07:53 +05:45
Karun Atreya eed0de141f [tests-only][full-ci] removing the setresponse in given/then step in AppConfigurationContext and AuthContext (#7186)
* removing setting response in the given steps

* use response interface

* use the returned response

* check success response

* changed to inline variable

* changed variable response_xml to responseXml
2023-09-06 13:36:27 +05:45
Sabin Panta 5efc3c51a1 [tests-only][full-ci] refactoring user creation Given steps from provisioning into GraphContext (#7019)
* refactored the user creation given statement from provisioning to graph api

added getUser steps that covers the steps for user with user light role

* added userlight step tests to check drive information and updated expected failure files

* added usercreation initiation code

* deleted seperate tests for user light role

* remove unnecesary changes

* add user not initialize step

* corrected the testcode

* moved the steps from graph to provisioning file

* fix creating single ldap user

* fix: user check method

* initialize user via graph

* addressing reviews

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
2023-09-06 09:22:38 +05:45
Sagar Gurung 76d6f12657 Make test code better for CI (#7190) 2023-09-01 16:42:35 +05:45
Karun Atreya 9c3511d2b0 make httpresponse check function to accept response object to get status from (#7169) 2023-09-01 09:50:48 +05:45
Prajwol Amatya 3566b965c6 [tests-only][full-ci] added test to update file using file id (#6990)
* added test to update file using file id

* changed the datatype of body from Tablenode to string
2023-08-25 12:01:27 +05:45
nirajacharya2 3e6b8da6a1 added skip on stable 3.0 tag (#7073) 2023-08-22 13:16:08 +05:45
Nalem7 63bb316303 refactoring the tag creating step using data table (#7051) 2023-08-18 16:44:22 +05:45
nirajacharya2 3156360d66 adding test for deprovisioning notification using date format (#7065) 2023-08-18 16:41:23 +05:45
Prajwol Amatya 84bc7d88e2 added tests for reading content of a file by fileId using WebDav API (#6958) 2023-08-18 09:58:25 +05:45
Viktor Scharf 0258b2bfff [test-only]ApiTest. Deprovisioning notification tests (#6994)
* add create/delete notification tests

* fix grammar

---------

Co-authored-by: Swikriti Tripathi <swikriti808@gmail.com>
2023-08-14 13:01:04 +05:45
KarunAtreya 2238806060 added test scenario for searching inside folder in space 2023-08-08 09:43:53 +05:45
KarunAtreya 60bfd5f6cf added test scenario for searching inside particular folder only 2023-08-07 09:31:50 +05:45
Nalem7 048d67c712 add api test for search files using tag in project spaces (#6853) 2023-08-04 17:29:02 +05:45
Prajwol Amatya db098fa4f5 refactored acceptance test code to store response data related to public shares on single store (#6930) 2023-08-03 13:51:22 +05:45
nirajacharya2 614fcca440 added extra 4 second to wait until getting tags request is send (#6848) 2023-07-26 14:12:58 +05:45
Prajwol Amatya 21af4b3d6d refactor acceptance code to store response data of user or group shares on single store (#6775) 2023-07-26 12:01:09 +05:45
Karun Atreya 078c7e036c added step to check notification with subject and resource (#6675) 2023-07-26 10:07:45 +05:45
Amrita 6900a80511 Add more tests coverage (#6854) 2023-07-25 12:27:42 +05:45
Salipa-Gurung 926e547f99 add test for downloading space 2023-07-25 12:24:26 +05:45
Swikriti Tripathi fb7ba62726 [tests-only][full-ci]Retry listing notifications (#6839)
* Retry listing notifications

* use loop instaed

* use loop instaed

* throw exception

* use do while loop
2023-07-24 11:31:38 +05:45
Sabin Panta bed8c77892 [tests-only][full-ci] make user enable disable feature use graphapi (#6790)
* make user enable disable feature use graphapi

* change the step definition code for user disable action

* updated step definition code for user disable feature

* updated user disable implementation

* corrected the error of step implementation code
2023-07-20 14:27:40 +05:45
Phil Davis bd634cbcf3 Retry if 409 is received when uploading in a Given step 2023-07-18 16:10:21 +05:45
Amrita 70411e613e Add tests for deleting specific notification (#6735) 2023-07-18 14:12:45 +05:45
Niraj Acharya abb111c3a1 if a requests response is 409 retry upto 10 times 2023-07-18 09:26:36 +05:45
Viktor Scharf f6e8d3ee84 [test-only] apiTest. check parentId in the Propfind response (#6759)
* check parentId in the Propfind response

* split test
2023-07-12 09:12:34 +02:00
Viktor Scharf 3009ea192f [test-only] Api test. Checking X-Request-Id in response header (#6765)
* check X-Request-Id in response header

* style
2023-07-12 09:11:55 +02:00
Karun Atreya 56c48df0bd [tests-only][full-ci]refactor for Intermittent test failures on coreApiTrashbin/trashbinDelete.feature (#6718)
* assert the response code after listing from trashbin

* set endpoint according to dav path and assert while listing

* php style fix

* changed comment

* changed as reviews
2023-07-12 12:26:51 +05:45
Nalem7 469341c027 add test for search by deleted tag (#6660) 2023-07-12 10:34:21 +05:45
nirajacharya2 db70ab27ac added test for mail notification if space admin delete access to space (#6719) 2023-07-10 13:07:53 +05:45
Viktor Scharf 873732fbb1 [test-only][full-ci]ApiTests. purge trash bin tests (#6699)
* purge trash bin tests

* fix
2023-07-04 14:43:00 +02:00
Prarup Gurung 4455480e9e Do not register space context for reva 2023-06-30 14:52:56 +05:45
Sabin Panta 9b4244b086 [tests-only] [full-ci] Refactoring unshare step definition code (#6608)
* added unshare scenerio

* remove unshare keyword from step definition

* refactoring of step definition codes

* refactor
2023-06-30 12:22:42 +05:45
Viktor Scharf f0d99683f0 expand createUser.feature (#6662) 2023-06-29 18:10:49 +02:00
Prajwol Amatya 0b67887e29 implement DRY principle (#6553) 2023-06-28 10:56:08 +05:45
Prajwol Amatya 73d48b1132 added response check after file download (#6643) 2023-06-28 10:12:04 +05:45