Commit Graph

14479 Commits

Author SHA1 Message Date
Sawjan Gurung
997eebbfa2 [full-ci] run linter and unit test from top-level (#7542)
* Try to run linter and unit test from top-level directory

Instead of starting a separate pipeline for each service we now just run
the linter and unit tests from the top-level directory. This allows us
to run the linter it with '--modules-download-mode vendor' and should also
reduce the resource usage.

* cleanup: remove no longer valid submodule release step

---------

Co-authored-by: Ralf Haferkamp <rhaferkamp@owncloud.com>
2023-10-20 15:42:48 +05:45
Michael Barz
c7a097cd85 Automated changelog update [skip ci] 2023-10-20 04:20:37 +00:00
Michael Barz
fb0253ccdc Automated changelog update [skip ci] 2023-10-17 10:58:57 +00:00
Michael Barz
f06df0453b Merge pull request #7512 from rhafer/backport/4.0/7469
[full-ci] bump reva to 2.16.2
2023-10-17 12:58:27 +02:00
Ralf Haferkamp
e220c3397a bump reva to 2.16.2 2023-10-17 12:19:48 +02:00
Karun Atreya
f63d9cf275 refactor given/when/then steps in spaces context (#7506)
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 14:27:50 +05:45
Michael Barz
97b36216c3 Automated changelog update [skip ci] 2023-10-17 07:23:06 +00:00
Michael Barz
0faa5e65e5 Merge pull request #7459 from owncloud/backport/access_token_issuer_stable4
Backport ADFS access token issuer to stable 4
2023-10-17 09:22:11 +02:00
Phil Davis
1597e248cc Merge pull request #7494 from owncloud/port/prs-7371-7493
[tests-only] Log requests and responses for the failing tests
2023-10-16 16:24:51 +05:45
Sabin Panta
4d48889a1a addressing the review (#7474) 2023-10-16 12:20:34 +05:45
Sawjan Gurung
8bb335bd85 add query params to the log (#7493) 2023-10-16 11:43:03 +05:45
Sawjan Gurung
baac56f358 [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-16 11:42:08 +05:45
Phil Davis
bd88959a6e Merge pull request #7492 from owncloud/backport_refactor_publicwebdav_context
[tests-only] [full-ci] backport refactor publicwebdav context removing setresponse in given/then steps
2023-10-16 11:10:38 +05:45
KarunAtreya
a6964c2d3d refactor publicwebdav context removing setresponse in given/then steps
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-16 09:30:25 +05:45
Karun Atreya
46fde6240a [tests-only][full-ci] Backport refactoring webdav context removing setresponse() in given/then step (#7480)
* refactoring webdav context (setting response in when step only)

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

* setting response
2023-10-13 16:50:56 +05:45
Karun Atreya
d26d6689b0 refactored removing setting response in given/then steps in spacetus context (#7481)
adressing reviews
2023-10-13 12:48:57 +05:45
Sawjan Gurung
c80a949415 [tests-only] Fix API test steps (#7457) (#7475)
* add missing step defs

* fix steps

* update expected failure line
2023-10-13 12:27:16 +05:45
Prajwol Amatya
71f0a25f8e added test coverage for previewing shared resources using spaces dav path (#7234) 2023-10-12 11:39:07 +05:45
Jörn Friedrich Dreyer
341b5b4186 drop unnecessary else
Co-authored-by: kobergj <jkoberg@owncloud.com>
(cherry picked from commit a4b634cb67a42dd64528b32b55ea5483c40b5c8b)
2023-10-11 11:00:54 +02:00
Jörn Friedrich Dreyer
f0ac696f25 support AD FS
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
(cherry picked from commit 92a5f3afe66fc84a7fe5326cddfb04698849947d)
2023-10-11 11:00:54 +02:00
Nalem7
1700024048 add test for move with fileID in project space (#7421) (#7443) 2023-10-11 12:53:59 +05:45
Nalem7
3da78b2919 [tests-only][full-ci] refactor profind response (#7327) (#7450)
* refactor profind response for path checking strictly

* refactor searchResponse also for xpath checking

---------

Co-authored-by: nabim777 <“nabinalemagar019@gmail.com”>
2023-10-10 17:27:39 +05:45
Sawjan Gurung
6aa19c8f6e [tests-only] Removed unused steps from AuthContext (#7407) (#7451)
* 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 13:27:46 +02:00
Nalem7
fa7def2284 add test for copy with fileID (#7398) (#7442) 2023-10-10 14:35:12 +05:45
Michael Barz
76986dcd20 Automated changelog update [skip ci] 2023-10-09 08:16:18 +00:00
Michael Barz
ef18a12a89 Merge pull request #7381 from owncloud/release-4.0.2
[full-ci] prepare changelog, bump version
2023-10-09 10:15:23 +02:00
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
Michael Barz
1fa8c264f8 prepare changelog, bump version 2023-09-28 13:37:47 +02:00
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