tests/test_core_stanza_router.lua

changeset 786
f2dc6118b3f4
parent 760
90ce865eebd8
child 788
b85b1dee4f4b
equal deleted inserted replaced
785:31d5be1371cf 786:f2dc6118b3f4
8 8
9 9
10 10
11 function core_process_stanza(core_process_stanza) 11 function core_process_stanza(core_process_stanza)
12 local s2sout_session = { to_host = "remotehost", from_host = "localhost", type = "s2sout" } 12 local s2sout_session = { to_host = "remotehost", from_host = "localhost", type = "s2sout" }
13 local s2sin_session = { from_host = "remotehost", to_host = "localhost", type = "s2sin" } 13 local s2sin_session = { from_host = "remotehost", to_host = "localhost", type = "s2sin", hosts = { ["remotehost"] = { authed = true } } }
14 local local_host_session = { host = "localhost", type = "local" } 14 local local_host_session = { host = "localhost", type = "local", s2sout = { ["remotehost"] = s2sout_session } }
15 local local_user_session = { username = "user", host = "localhost", resource = "resource", full_jid = "user@localhost/resource", type = "c2s" } 15 local local_user_session = { username = "user", host = "localhost", resource = "resource", full_jid = "user@localhost/resource", type = "c2s" }
16 local hosts = { 16 local hosts = {
17 ["localhost"] = local_host_session; 17 ["localhost"] = local_host_session;
18 } 18 }
19 19

mercurial