Commit Graph

12135 Commits

Author SHA1 Message Date
Daniel Swärd c79d4ec241 graph: Allow creating users without email (#5253) 2023-01-23 15:20:32 +01:00
Daniël Franke b30b0b4a6c Fix test. 2023-01-23 14:38:12 +01:00
Daniël Franke 17bd1704fa Stop expecting class var. 2023-01-23 14:38:12 +01:00
Daniël Franke e6273140a2 Revert status change. 2023-01-23 14:38:12 +01:00
Daniël Franke a9fff65209 Remove tests for non-supported properties. 2023-01-23 14:38:12 +01:00
Daniël Franke bfecff7747 Remove OnPremises code. 2023-01-23 14:38:12 +01:00
Daniël Franke 4389bcdd25 Add documentation comment. 2023-01-23 14:38:12 +01:00
Daniël Franke d2076941f4 Add tests.
Also update mocks with mockery.
2023-01-23 14:38:12 +01:00
Daniël Franke 3772e8190e Change DN on externalID change. 2023-01-23 14:38:12 +01:00
Daniël Franke 2ca35f0a2b Allow patching of EducationClass properties.
As described in #5410: add support for updating educationClass properties.
This adds the `UpdateEducationClass` to the `EducationBackend` interface,
and implements it on the `ErrEducationBackend` and `LDAP` backends.

It also alters `PatchEducationClass` to call the `UpdateEducationClass` method.

Closes #5410
2023-01-23 14:38:12 +01:00
Jörn Friedrich Dreyer 32cc9beb0b walk and log chi routes, ocs cleanup (#5428)
* walk and log chi routes, ocs cleanup

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* make linter happy

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-01-23 12:30:34 +01:00
Ralf Haferkamp 473c64fe03 graph: fix adding users to educationSchool by schoolNumber (#5422)
GET /education/schools/{school-id}/users
POST /education/schools/{school-id}/users/$ref
and
DELETE /education/schools/{school-id}/users/$ref

are supposed to also work when using the schoolNumber as the
'{school-id}' parameter. This fix that functionality. This also makes the
the mocks for the LDAP Modify operations more specific to avoid using
the generic mock.Anything
2023-01-23 10:37:24 +01:00
Ralf Haferkamp c2ed4ab526 Bump libregraph-api-go (#5432) 2023-01-23 10:28:10 +01:00
Viktor Scharf 8aff14751b [test-only] ApiTest. deleteTag test. increase coverage (#5417) 2023-01-23 09:26:59 +05:45
Sawjan Gurung 6af8988403 Add version author tests (#5425) (#5438) 2023-01-21 11:14:35 +05:45
Viktor Scharf eb0ad41187 [docs-only] Change Testing section in the doc (#5430)
* change docs

* fix after review
2023-01-20 11:54:25 +01:00
Sagar Gurung d0b96f0721 Merge pull request #5415 from roshanlc/tests-for-change-role-to-internal-4979
[tests-only][full-ci] Add tests scenarios for updating role of public link to internal
2023-01-19 16:15:39 +05:45
Roshan Lamichhane 4dc1aaebf2 Added test scenario for upadting role of a public link to internal 2023-01-19 15:17:27 +05:45
Jörn Friedrich Dreyer a0fee6e04d Automated changelog update [skip ci] 2023-01-18 14:52:23 +00:00
Jörn Friedrich Dreyer 52b7f41624 Populate expanded properties (#5421)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-01-18 15:51:53 +01:00
Daniel Swärd 96239af982 graph: Allow provisioning users with legacy names (#5255)
Via configuration you can now configure to skip the validation of username and
instead decide to trust the upstream system that is adding users.
2023-01-18 12:25:53 +01:00
Viktor Scharf 7c9452768e [test-only] ApiTest. create tag (#5391)
* create tag

* split method

* fix after review
2023-01-17 12:41:56 +01:00
Michael Barz a2e26534ae add missing env var to vscode launch config 2023-01-17 09:12:02 +01:00
Swikriti Tripathi eb33e91520 check herf of the public link file (#5409) 2023-01-16 09:54:45 +01:00
Florian Schade ddb2cb5d11 Automated changelog update [skip ci] 2023-01-13 16:32:00 +00:00
Florian Schade 1afd7c2a4b use event executant to index tags (#5405) 2023-01-13 17:31:34 +01:00
Florian Schade 38a43df924 [full-ci] bump reva (#5404)
* bump reva
2023-01-13 16:44:16 +01:00
Jörn Friedrich Dreyer 3aa864aecc Remove Staticcheck warnings (#5394)
* remove deprecated ioutil imports

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* remove duplicate imports

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* remove unused values

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* remove some unused types

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* remove deprecated ioutil import

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-01-13 15:29:14 +01:00
Jörn Friedrich Dreyer 544189b039 drop superflous /me in test urls (#5396)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-01-13 15:29:00 +01:00
Dominik Schmidt 675140a7f1 Merge pull request #5397 from owncloud/update-web-v7.0.0-rc.7
[full-ci] chore: update web assets to v7.0.0-rc.7
2023-01-12 23:27:10 +01:00
Dominik Schmidt 0bdd2aa970 Remove expected failures 2023-01-12 20:32:17 +01:00
Dominik Schmidt 5a5e1bfeab chore: update web assets to v7.0.0-rc.7 2023-01-12 19:34:17 +01:00
Ralf Haferkamp 60ac8fcfbe graph education/classes: Add LDAP backend support for Create,Get,Delete 2023-01-12 17:37:10 +01:00
Ralf Haferkamp 6d5637ad79 graph: Move LDAP groups related code to a separate file 2023-01-12 17:37:10 +01:00
David Christofas 2a88301507 Automated changelog update [skip ci] 2023-01-12 16:28:01 +00:00
David Christofas 958ba28db3 add expiration to user and group shares (#5389) 2023-01-12 17:26:06 +01:00
Daniël Franke b0cd8779a7 Consistently add user attributes to AddRequest (#5392)
To make the `CreateUser` flow easier to test, the attributes of the
LDAP add request need to be added consistently. This way we can
expect that argument with the mock.

This PR does the following:

* Add a method `getUserAttrTypes` that returns a static list of attr names.
* Alter `userToAddRequest` to iterate over the static list, and add the attr
  if it exists in the `attrMap`.

Closes #5390
2023-01-12 17:25:43 +01:00
Edith Parzefall bac30c7ed0 Merge pull request #5393 from owncloud/describe_admin_doc_processes
[docs-only] Properly describe docs/helpers and processes
2023-01-12 17:24:41 +01:00
Edith Parzefall c6e6554b77 Apply suggestions from code review
language review
2023-01-12 17:20:17 +01:00
Benedikt Kulmann 9e07908781 Merge pull request #5387 from owncloud/update-web-v7.0.0-rc.6
[full-ci] update web assets to v7.0.0-rc.6
2023-01-12 16:47:12 +01:00
mmattel d4b0a2bc00 Properly describe docs/helpers and processes 2023-01-12 16:30:33 +01:00
Jörn Friedrich Dreyer 078698fdf4 graph: add appRoleAssignments and minimal application resource (#5318)
* bump libregraph-go lib

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* add appRoleAssignment stubs

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* add get application stub

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fetch appRoles for application from settings service

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* initial list appRoleAssignments implementation

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* initial create appRoleAssignment implementation, extract assignmentToAppRoleAssignment, configurable app id and displayname

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* initial delete appRoleAssignment implementation, changed error handling and logging

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* initial expand appRoleAssignment on users

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* test user expand appRoleAssignment

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* test appRoleAssignment

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix education test by actually using the mocked roleManager

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* test getapplication

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* list assignments

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* use common not exists error handling

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* default to just 'ownCloud Infinite Scale' as application name

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix store_test

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* roll application uuid on init

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix tests

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* extract method

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* Apply suggestions from code review

Co-authored-by: Michael Barz <mbarz@owncloud.com>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Michael Barz <mbarz@owncloud.com>
2023-01-12 16:09:34 +01:00
kobergj 1b6c269de5 Automated changelog update [skip ci] 2023-01-12 15:02:55 +00:00
kobergj dcaecd214f Merge pull request #5330 from kobergj/ExpirationNotifications
Expiration Notifications
2023-01-12 16:02:29 +01:00
Jannik Stehle d987957568 Add admin-settings to drone config 2023-01-12 15:56:30 +01:00
Daniël Franke 7d51245bd6 Automated changelog update [skip ci] 2023-01-12 14:34:59 +00:00
kobergj d120880a0f update expiration email templates
Co-authored-by: Michael Barz <michael.barz@zeitgestalten.eu>
2023-01-12 15:31:49 +01:00
Daniël Franke 0b644303d1 Merge pull request #5388 from owncloud/ainmosni/issue/5386
Display surname and givenName attributes.
2023-01-12 15:30:42 +01:00
Daniël Franke ddb0933033 Display surname and givenName attributes.
This PR makes it so that givenName and surname attributes are returned for users.

Fixes #5386
2023-01-12 15:01:14 +01:00
Dominik Schmidt ed5764635f settings: Fix oc-select usage 2023-01-12 14:30:17 +01:00