Skip to content
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

delete_users fails for in-band registration #28

Open
sinkovsky opened this issue Jul 10, 2014 · 2 comments
Open

delete_users fails for in-band registration #28

sinkovsky opened this issue Jul 10, 2014 · 2 comments

Comments

@sinkovsky
Copy link
Contributor

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.

@fenek
Copy link
Member

fenek commented Jul 11, 2014

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. :)

@sinkovsky
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants