-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Part 1 of LDAP Backend OCS Api #3162
Conversation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Hm, actually, unlike the CLI thing, we could set not only one but all any config keys with one request. Will improve this tomorrow. |
Current coverage is 53.76% (diff: 2.67%)@@ master #3162 diff @@
==========================================
Files 1299 1303 +4
Lines 80135 81003 +868
Methods 7909 7974 +65
Messages 0 0
Branches 1248 1303 +55
==========================================
+ Hits 43227 43555 +328
- Misses 36908 37447 +539
- Partials 0 1 +1
|
|
@@ -413,6 +413,15 @@ pipeline: | |||
when: | |||
matrix: | |||
TESTS: integration-transfer-ownership-features | |||
integration-ldap-features: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation is wrong. Let me fix that 😉
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Should be fixed now 😃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
Then the OCS status code should be "400" | ||
And the HTTP status code should be "400" | ||
|
||
Scenario: Modiying a non-existing configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo "Modifying"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty :)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Also move ensureConfigIDExists checks into try, it might throw DB related exceptions Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
covered by "Delete a non-existing configuration" Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
And done! 😹 Deleted my config and restored it using the API 🚀 🎸 |
Final reviews? 😸 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
Contributes to #2694
It brings OCS Api methods for creating, reading, modifying and deleting an LDAP configuration. Including integration tests (Configuration manipulation is against DB only, no LDAP server interaction).
General appconfig does not suffice here, because some values are not written to the DB as is, but need to be transformed first (i.e. multiline values, password). Also some sanity-checking is happening.
Please review @nextcloud/ldap