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:
parent
ceda073766
commit
53209b9ab1
19 changed files with 917 additions and 236 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue