Merge: 62e347b788e34405d0
Author: Phil Davis <phil@jankaritech.com>
Date: Tue Jan 24 10:19:27 2023 +0545
Merge pull request #5448 from owncloud/fix-docs-formatting
[docs-only] Fix formatting in the docs related to testing
Author: Jörn Friedrich Dreyer <jfd@owncloud.com>
Date: Mon Jan 23 12:30:34 2023 +0100
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>
Author: Ralf Haferkamp <rhaferkamp@owncloud.com>
Date: Mon Jan 23 10:37:24 2023 +0100
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
Merge: a0fee6e044dc1aaebf
Author: Sagar Gurung <46086950+SagarGi@users.noreply.github.com>
Date: Thu Jan 19 16:15:39 2023 +0545
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
Merge: a0fee6e044dc1aaebf
Author: Sagar Gurung <46086950+SagarGi@users.noreply.github.com>
Date: Thu Jan 19 16:15:39 2023 +0545
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
Merge: a0fee6e044dc1aaebf
Author: Sagar Gurung <46086950+SagarGi@users.noreply.github.com>
Date: Thu Jan 19 16:15:39 2023 +0545
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
Author: Daniel Swärd <excds@kth.se>
Date: Fri Jan 13 15:23:40 2023 +0700
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.
Author: Jörn Friedrich Dreyer <jfd@owncloud.com>
Date: Fri Jan 13 15:29:00 2023 +0100
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>
Author: Daniël Franke <df@ponc.tech>
Date: Thu Jan 12 17:25:43 2023 +0100
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
Author: Jörn Friedrich Dreyer <jfd@owncloud.com>
Date: Thu Jan 12 16:09:34 2023 +0100
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>
Merge: 80559968785d213a0e
Author: Artur Neumann <artur@jankaritech.com>
Date: Thu Jan 12 17:10:34 2023 +0545
Merge pull request #5383 from owncloud/tests/version-with-same-mtime-port
[tests-only][full-ci] Added tests for checking version of file uploaded with same mtime twice
Author: Ralf Haferkamp <rhaferkamp@owncloud.com>
Date: Wed Jan 11 20:38:18 2023 +0100
graph:Add stubs for education/classes endpoints (#5360)
* Renamed files for consistency reasons
err_school.go implements the full education interface not just schools.
ldap_school.go renamed to ldap_education_school.go for making it
consistent with ldap_education_user.go
* graph: Add stubs for education/classes endpoints
The acutal backend implementations are still empty.