Commit Graph

367 Commits

Author SHA1 Message Date
Sawjan Gurung a441932a30 retry space listing if required space is not found (#7521) 2023-10-19 09:47:47 +02:00
Viktor Scharf c179485db6 [full-ci] ApiTests. enable auto accepting in api tests (#7477)
* enable auto accepting in test

* go format
2023-10-17 16:29:05 +02:00
Karun Atreya 83971fa19a [tests-only] [full-ci] removing the setresponse in given/then step in spaces context (#7496)
* refactor given/when/then steps in spaces context

* pass the returned response without setting in then step

* added the missing when step whose response is checked by the then step

* addressed the reviews

* changed from decoded body to docoded response
2023-10-17 11:41:47 +05:45
Sabin Panta dc3ed28696 [tests-only][full-ci] refactoring user addition to group to graphapi (#7360)
* changed user addition to group to graphapi

* addressing the review

* addressing review regarding nonexistent user

* addressing the review

* updated expected failures file

* changing code to make it pass in reva edge

* addressing review

* addressing review
2023-10-17 11:34:53 +05:45
Karun Atreya afcdb7617d [tests-only] [full-ci] removing the setresponse in given/then step in publicwebdav context (#7439)
* refactored given steps

* refactored some when stepa

* refactored remaining when and then steps

* use of when step for the action

* changed line no in expected failure

* remove and add same kind of steps in the scenario and refactored function names

* adressing reviews
2023-10-13 16:59:43 +05:45
Sawjan Gurung bd955f75ed [tests-only] Log requests and responses for the failing tests (#7371)
* log request-response to a file

show logs in ci

move hooks to one place

* preserve logs between suites

* ignore logs

* Refactor and beautify logs

* fix php style

* add log step in ci pipeline

* get expected-failure file from env if available
2023-10-13 13:22:27 +05:45
Prajwol Amatya 25b5b6bee1 added test coverage for previewing shared resources using spaces dav path (#7472) 2023-10-13 11:51:08 +05:45
Karun Atreya 79a4e3d500 [tests-only] [full-ci] removing the setresponse in given/then step in spacestus context (#7447)
* refactored removing setting response in given/then steps in spacetus context

* adressing reviews
2023-10-12 16:30:51 +05:45
Karun Atreya 903ab8e1f8 [tests-only] [full-ci] removing the setresponse in given/then step in webdav context (#7403)
* refactoring the given steps in the webdav context

* refactored remaining given/when/then steps

* return file id

* trim trailing from the folder path

* add missing when step and make other minor corrections

* set responseXml and correct status code check

* correct the naming of steps and helper functions
2023-10-11 16:15:31 +05:45
Sabin Panta 37208139f4 addressing the review (#7372) 2023-10-11 15:55:26 +05:45
Sawjan Gurung 383ad91815 [tests-only] Fix API test steps (#7457)
* add missing step defs

* fix steps

* update expected failure line
2023-10-11 15:10:02 +05:45
Sawjan Gurung 3f99d182bf [tests-only] Removed unused steps from AuthContext (#7407)
* removed unsed steps from Archiver and Auth contexts

fix methods

fix sendRequest method

fix steps

add missing step

* move steps from OCS to Auth context

add missing step

fix null

fix variable name

fix variable name

* fix password
2023-10-10 16:29:09 +05:45
Nalem7 efafb64cab [tests-only][full-ci] refactor profind response (#7327)
* refactor profind response for path checking strictly

* refactor searchResponse also for xpath checking

---------

Co-authored-by: nabim777 <“nabinalemagar019@gmail.com”>
2023-10-10 12:57:41 +05:45
Saw-jan c138bc68fd fix steps 2023-10-06 14:55:38 +05:45
Saw-jan e439deaba9 strict check for successful request 2023-10-06 14:55:38 +05:45
Saw-jan 18ac0425cb add method to create folder 2023-10-06 14:55:38 +05:45
Saw-jan a63ba607f9 fix share creation methods 2023-10-06 14:55:38 +05:45
Karun Atreya b0455f03e6 [tests-only] removing the setresponse in given/when/then step in webdavproperties context (#7368)
* refactor given and when steps in webdavproperties context

* change the status code in tests as the when step sets the response now

* correct the status code check

* only save response

* use getResponseXml to get xml response object

* fix isEtagValid method

* rename step def methods

* make stricter checks

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
2023-10-05 09:55:11 +05:45
Prarup Gurung f72ffd014b Merge pull request #7396 from owncloud/tests/remove-unsed-steps
[tests-only] Remove AppConfigurationContext file
2023-10-04 14:52:21 +05:45
Sagar Gurung 315b318589 [tests-only]Added test for the move with file-id in web-dav-url (#7318)
* Added test for move and rename by file-id

* Review Address
2023-10-03 16:40:58 +05:45
Saw-jan 6c3f68f8f9 fix return type 2023-10-03 16:28:35 +05:45
Saw-jan 6e43e1f0ba include capabilities context 2023-10-03 15:16:08 +05:45
Saw-jan dd95d73e0d remove AppConfigurationContext file 2023-10-03 14:10:20 +05:45
Sawjan Gurung c59b597984 [tests-only] Run tests with default propfind depth infinity config (#7334)
* use default config for OCDAV_ALLOW_PROPFIND_DEPTH_INFINITY

* remove unnecessary steps

* use default propfind depth infinity value

* use correct step to check the resources

* use correct step to check the resources

* cover depth:infinity enabled test cases

* fix steps

* fix scenario steps

* update expected failure list

* add depth infinity test suite to ci

* update existing tests only

* remove test with depth:infinity
2023-10-03 09:26:31 +05:45
Karun Atreya 87f1235562 [tests-only] removing the setresponse in given/when/then step in ocs and webdavlocking context (#7347)
* refactor given and when steps in ocs and webdav locking context

* use the returned response

* use of returned response from helper function

* made changes to the affected test steps

* deleted vardump line
2023-10-02 17:00:04 +05:45
Sagar Gurung ddaa825617 Added test for the copy with file-id in url (#7308) 2023-09-26 18:04:48 +05:45
Viktor Scharf be9ac740c9 [test-only] apiTest. banned password list (#7339)
* apiTest. banned password list

* fix after review
2023-09-25 11:50:34 +02:00
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