Commit Graph

14452 Commits

Author SHA1 Message Date
Sawjan Gurung
bfe04776fb [tests-only] Fix share creation methods (#7400) (#7425)
fix steps

add method to create folder

strict check for successful request

fix steps
2023-10-06 17:11:31 +05:45
Karun Atreya
9cee6bcbcd [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 17:07:33 +05:45
Karun Atreya
f2f3f546b4 refactor setting response in given/when/then steps in ocs and webdavlocking context (#7413)
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-05 16:56:31 +05:45
Saw-jan
b85396a3c0 [tests-only] Remove AppConfigurationContext file (#7396)
include capabilities context

fix return type
2023-10-05 09:56:01 +05:45
Sawjan Gurung
c573f8655c [tests-only] Added tests with depth:infinity enabled (#7395)
* add depth infinity tests

* fix step

* add passing tests only

* format rable
2023-10-05 09:56:01 +05:45
Sawjan Gurung
de42e3e109 [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-05 09:56:01 +05:45
Sawjan Gurung
b0ff78c370 [ci][full-ci] Use only necessary envs for different ocis setup (#7286)
* only use necessary envs for different setups

* remove default and unavailable configs
2023-10-05 09:56:01 +05:45
Sagar Gurung
dea726af84 [tests-only][full-ci]Backport move byfileid (#7402)
* Added test for move and rename by file-id

* Review Address
2023-10-04 16:30:13 +05:45
Michael Barz
5f2b2976b2 use HTTP proxy for bingo-get 2023-09-29 08:52:43 +02:00
Karun Atreya
b7e3f2a718 refactor given/when/then steps in noification context (#7358)
refactor given steps

refactor use of helper function in cross steps

return using inline variable
2023-09-29 12:07:45 +05:45
Jörn Friedrich Dreyer
c48b7e44ae Automated changelog update [skip ci] 2023-09-28 09:03:25 +00:00
Jörn Friedrich Dreyer
0fb8299e3d add reva bump changelog (#7379)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-09-28 11:02:51 +02:00
Michael Barz
fbd3c5e7e6 Automated changelog update [skip ci] 2023-09-27 16:57:42 +00:00
Michael Barz
bdc27766c8 Merge pull request #7374 from rhafer/backport/4.0/7351
[Backport/4.0] graph/education: Check school number for duplicates before adding a school
2023-09-27 18:54:42 +02:00
Jörn Friedrich Dreyer
5b62ed2882 bump reva to 2.16.1 (#7350)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-09-27 17:16:45 +02:00
Ralf Haferkamp
3141f4f659 graph/education: Fix issues reported by sonarcloud
(cherry picked from commit 4465c9385d)
2023-09-27 15:49:15 +02:00
Ralf Haferkamp
9a9dba7ca7 graph/education: slightly improve error handling and logging
- Use var for common errors
- Add the addition error message to the Error() output of errorcode.Error
- in PatchEducationSchool() use errorcode.RenderError() to turn the errorcode
  in to the right HTTP Status (instead of return 500 always)

(cherry picked from commit a34d467285)
2023-09-27 15:45:36 +02:00
Ralf Haferkamp
cc5b0ee002 graph/education: Check school number for duplicates before adding a school
(cherry picked from commit 4f59de9c52)
2023-09-27 15:45:36 +02:00
Ralf Haferkamp
8f91c67603 graph/education: Add getSchoolByNumber helper
Sometimes we explicit need to lookup by number and not numberOrID

(cherry picked from commit e2849bf19d)
2023-09-27 15:45:36 +02:00
Ralf Haferkamp
852b8e07ec graph/education: Remove unreachable code
An LDAP Modify operation never returns LDAPResultEntryAlreadyExists errors.
That error can only happen for LDAPAdd or LDAPModifyDN.

(cherry picked from commit ce808eaa17)
2023-09-27 15:45:36 +02:00
Ralf Haferkamp
4d9d40e1ba graph/education: Use helper for creating attribute list
(cherry picked from commit 16debe6fa5)
2023-09-27 15:45:36 +02:00
Ralf Haferkamp
b6ddfcccfb graph/education: Don't leak LDAP errors into the graph error message
(cherry picked from commit 164edd16c0)
2023-09-27 15:45:36 +02:00
Sagar Gurung
03926e6182 [tests-only][full-ci]Backport propfind by fileid (#7365)
* Added test for the propfind with file id

* Refactor the scenario title description

* Review address- refactor scenarios
2023-09-27 14:42:57 +05:45
Sagar Gurung
93521e5f55 Added test for the copy with file-id in url (#7364) 2023-09-27 12:30:04 +05:45
Karun Atreya
cc794abb38 refactor given when then steps in settings and tus contexts (#7357)
set resource location from response

addressed the reviews

reset  spaceidfromocis

reset after scenario using after hook
2023-09-27 12:29:56 +05:45
Michael Barz
5ca6a98087 Automated changelog update [skip ci] 2023-09-25 12:32:03 +00:00
Michael Barz
02c31e2dab Merge pull request #7336 from aduffeck/backport-jsoncs3-rebuild-fix
Do not reset received share state to pending if there is a state already
2023-09-25 14:24:59 +02:00
Sagar Gurung
6a7f56d056 [tests-only][full-ci]Added documentation for running tika related tests (#7342)
* Added documentation to run tika service related tests

* Added documentation for docker compose as well

* Make tika service run only for tika
2023-09-25 15:36:12 +05:45
André Duffeck
14b1d62351 Add changelog 2023-09-25 09:28:44 +02:00
André Duffeck
5f1043d40b Do not reset received share state to pending if there is a state already 2023-09-22 10:53:55 +02:00
Ralf Haferkamp
920d39918b Automated changelog update [skip ci] 2023-09-21 14:55:59 +00:00
Ralf Haferkamp
c8c1cc76d8 users: fixup LDAP_BIND_PASSWORD
LDAP_BIND_PASSWORD was accidently removed in previous commit

Partial: #7176
(cherry picked from commit 8f262c1dff)
2023-09-21 16:55:13 +02:00
Ralf Haferkamp
6bf4dc5e0e users: revive USERS_LDAP_USER_SCHEMA_ID variable
The config variable was accidently removed when cleaning up deprecated variables
for the 4.0.0 release

Fixes: #7312
(cherry picked from commit 7b9200ff5d)
2023-09-21 16:55:13 +02:00
Ralf Haferkamp
3f41dd7601 Add OCIS_LDAP_BIND_PASSWORD envvar and deprecate LDAP_BIND_PASSWORD
For some reason LDAP_BIND_PASSWORD was forgotten when all the other global LDAP_
variables got renamed.

Also marks LDAP_BIND_PASSWORD and LDAP_USER_SCHEMA_ID_IS_OCTETSTRING for removal with 5.0.0

Partial: #7176
(cherry picked from commit 8f284e7c2b)
2023-09-21 16:55:13 +02:00
Prarup Gurung
f7fde6ee87 Merge pull request #7280 from owncloud/backport-refactor-step-search-result-should-contain-only-these-files
[tests-only][full-ci] Backport refactor step search result should contain only these files
2023-09-21 11:43:57 +05:45
Karun Atreya
fe8c0c7de8 refactor given and when steps in trashbin context (#7302)
applied same type of change in tagContext

addressed the reviews

added a space in step regex
2023-09-21 11:27:45 +05:45
nabim777
2ca502e32d adding the path check 2023-09-21 09:38:58 +05:45
Willy Kloucek
48dc83f4cb don't run CD on stable-4.0 branch cronjob 2023-09-14 09:32:49 +02:00
Karun Atreya
fa36fd4ec2 refacor given when and then steps in checksum and favorite context (#7268)
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-13 16:25:00 +05:45
Karun Atreya
71daf3f6ba refactor given when then steps in fileversions context (#7269)
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-13 16:24:42 +05:45
Karun Atreya
9c533c54ac make httpresponse check function to accept response object to get status from (#7270) 2023-09-13 15:11:36 +05:45
Sabin Panta
47eb710523 [tests-only][full-ci] refactoring user creation Given steps from provisioning into GraphContext (#7019) (#7259)
* 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-11 15:02:06 +05:45
Amrita
9b40810b21 [tests-only][full-ci] Add test coverage for file preview using space dav version (#7218)
* Add tests for preview using space dav~

* use makeDavRequest to get preview of resource

---------

Co-authored-by: prajwol <prajwolamatya11@gmail.com>
2023-09-11 12:27:18 +05:45
Jörn Friedrich Dreyer
7b76086116 Automated changelog update [skip ci] 2023-09-08 11:05:09 +00:00
Jörn Friedrich Dreyer
7867841f7f actually use skip user info config option (#7220)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-09-08 13:04:24 +02:00
Sagar Gurung
6d2d79ba1d Automated changelog update [skip ci] 2023-09-08 07:22:08 +00:00
Sagar Gurung
b45b35014a Backport/server panic password set (#7251)
* Added test for server getting panic when adding password to a link

* Change test case
2023-09-08 13:06:37 +05:45
Karun Atreya
986e470075 Automated changelog update [skip ci] 2023-09-08 00:40:58 +00:00
Karun Atreya
5c1e7e69a4 refactor given/then step to remove setting response (#7244)
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-07 12:47:24 +05:45
Prajwol Amatya
620b44c90a send X-Request-Id in header of every request (#7238) 2023-09-07 10:33:44 +05:45