escalus icon indicating copy to clipboard operation
escalus copied to clipboard

delete_users fails for in-band registration

Open sinkovsky opened this issue 11 years ago • 2 comments

When there few users with same username in config file, escalus_users:delete_users() tries to login for second user with same username to unregister and fails.

Temporary workaround could be to pass second argument {by_name, List} with list of users omitting duplicates.

Possible fix would be filtering list of users in delete_users/2.

Please let me know if you like me to prepare a PR for that.

sinkovsky avatar Jul 10 '14 16:07 sinkovsky

Like you can see in current test.config in ejabberd_tests, we avoid this problem with different usernames for every configuration. Can you describe your case, that requires the same username for various configs? Anyway, nice pull requests are always welcome. :)

fen-pl avatar Jul 11 '14 07:07 fen-pl

I was looking into config file from updated-interaction branch: https://github.com/esl/ejabberd_tests/blob/updated-interaction/test.config which takes seems to take into account changes from this PR https://github.com/esl/escalus/tree/external-auth-automatic-sm-pull-request

sinkovsky avatar Jul 11 '14 09:07 sinkovsky