summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-10-31 01:39:04 +0100
committerlouiz’ <louiz@louiz.org>2016-10-31 01:39:35 +0100
commitdb7ac6f13d4cb1f280afcfed7c17533244a1d010 (patch)
tree2c3614e0d92f1df2c4f9600cc8bb23b2689527cc /tests
parent1d2f20600a937cd00181a2fad055cd9bb56f058e (diff)
downloadbiboumi-db7ac6f13d4cb1f280afcfed7c17533244a1d010.tar.gz
biboumi-db7ac6f13d4cb1f280afcfed7c17533244a1d010.tar.bz2
biboumi-db7ac6f13d4cb1f280afcfed7c17533244a1d010.tar.xz
biboumi-db7ac6f13d4cb1f280afcfed7c17533244a1d010.zip
Test successful invite of an other user
Diffstat (limited to 'tests')
-rw-r--r--tests/end_to_end/__main__.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index c98c3a6..d618fda 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -1638,6 +1638,24 @@ if __name__ == '__main__':
"/iq/disco_info:query/disco_info:feature[@var='jabber:iq:version']",
)),
]),
+ Scenario("invite_other",
+ [
+ handshake_sequence(),
+ partial(send_stanza, "<presence from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}/{nick_one}' />"),
+ connection_sequence("irc.localhost", '{jid_one}/{resource_one}'),
+ partial(expect_stanza, "/message"),
+ partial(expect_stanza, "/presence"),
+ partial(expect_stanza, "/message"),
+
+ partial(send_stanza, "<presence from='{jid_two}/{resource_two}' to='#bar%{irc_server_one}@{biboumi_host}/{nick_two}' />"),
+ connection_sequence("irc.localhost", '{jid_two}/{resource_two}'),
+ partial(expect_stanza, "/message"),
+ partial(expect_stanza, "/presence"),
+ partial(expect_stanza, "/message"),
+ partial(send_stanza, "<message from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}'><x xmlns='http://jabber.org/protocol/muc#user'><invite to='{nick_two}'/></x></message>"),
+ partial(expect_stanza, "/message/body[text()='{nick_two} has been invited to #foo']"),
+ partial(expect_stanza, "/message[@to='{jid_two}/{resource_two}'][@from='#foo%{irc_server_one}']/muc_user:x/muc_user:invite[@from='#foo%{irc_server_one}/{nick_one}']"),
+ ]),
)
failures = 0