Add basic edit ldap auth test & actually fix #16252 #16465

Merged
lunny merged 6 commits from add-ldap-configuration-edit-tests into main 2021-07-20 11:30:22 +00:00
Contributor

One of the reasons why #16447 was needed and why #16268 was needed in the first place was because it appears that editing ldap configuration doesn't get tested.

This PR therefore adds a basic test that will run the edit pipeline.

In doing so it's now clear that #16447 and #16268 aren't actually solving #16252. It turns out that what actually happens is that is that the bytes are actually double encoded.

This PR now changes the json unmarshal wrapper to handle this double encode.

Fix #16252
Fix #16447
Fix #16268

Signed-off-by: Andrew Thornton art27@cantab.net

One of the reasons why #16447 was needed and why #16268 was needed in the first place was because it appears that editing ldap configuration doesn't get tested. This PR therefore adds a basic test that will run the edit pipeline. In doing so it's now clear that #16447 and #16268 aren't actually solving #16252. It turns out that what actually happens is that is that the bytes are actually double encoded. This PR now changes the json unmarshal wrapper to handle this double encode. Fix #16252 Fix #16447 Fix #16268 Signed-off-by: Andrew Thornton <art27@cantab.net>
6543 (Migrated from github.com) approved these changes 2021-07-17 15:47:12 +00:00
lafriks (Migrated from github.com) approved these changes 2021-07-20 11:30:12 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#16465
No description provided.