rocketchat_API icon indicating copy to clipboard operation
rocketchat_API copied to clipboard

test_settings_oauth is broken in rocket.chat 5.0

Open jadolg opened this issue 3 years ago • 4 comments

https://github.com/jadolg/rocketchat_API/blob/858709e06979ec406cadad37bf5fa8c837676aa9/tests/test_settings.py#L22

jadolg avatar Aug 09 '22 13:08 jadolg

@sistason could you please check this up? I'm unable to find good documentation about this and it started failing on the latest releases. You might have issues with this in your own codebase if you updated to 5.0 already.

jadolg avatar Aug 09 '22 13:08 jadolg

I will check if I find something to fix this as soon as I can (next couple of days)

sistason avatar Aug 09 '22 16:08 sistason

I spend 2h looking at this mess, but did not find a solution.

I got the method.calls to work again, but the settings-endpoints for (oauth-)services (service.configurations + settings.oauth) do not return any services anymore, even complete, working oauth configs.

Will try to debug more later, I figure that we need to set some more fields in order for them to show up (https://github.com/RocketChat/Rocket.Chat/blob/develop/apps/meteor/app/api/server/v1/settings.ts#L68), but I'm a bit drained out from this right now -.-

sistason avatar Aug 12 '22 11:08 sistason

Maybe someone at https://open.rocket.chat/channel/python_rocketchat_api can help.

jadolg avatar Aug 14 '22 18:08 jadolg