1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-04 10:19:31 +02:00

Add tests for s2s code

This commit is contained in:
Evgeniy Khramtsov 2016-09-23 12:30:33 +03:00
parent ceda073766
commit 53209b9ab1
19 changed files with 917 additions and 236 deletions

View file

@ -7,7 +7,10 @@ def read():
cmd = pkt[0]
args_num = len(pkt) - 1
if cmd == 'auth' and args_num >= 3:
write(True)
if pkt[1] == "wrong":
write(False)
else:
write(True)
elif cmd == 'isuser' and args_num == 2:
write(True)
elif cmd == 'setpass' and args_num >= 3: