mattermost / mattermost-plugin-msteams

MS Teams plugin for Mattermost
Other
13 stars 11 forks source link

[MM-57209] Set EmailVerified to true when promoting synthetic users #548

Closed JulienTant closed 7 months ago

JulienTant commented 7 months ago

Summary

Set EmailVerified to true when promoting a synthetic user.

Ticket Link

https://mattermost.atlassian.net/browse/MM-57209

JulienTant commented 7 months ago

Thanks, @lieut-data! I applied the changes to the sync users method.

Applying those changes, and adding tests, made me realize that the tests for this method were not working because the MSUser was created with a Mail field, which would cause the main loop to continue without doing anything (first if of the loop). I added the Mail field and fixed the mock calls as needed + added 2 tests for user creation and update.

JulienTant commented 7 months ago

/update-branch