summaryrefslogtreecommitdiff
path: root/tests/end_to_end
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-01-18 19:34:56 +0100
committerlouiz’ <louiz@louiz.org>2018-01-18 19:34:56 +0100
commitf371d9ca46578a722d2ce0d4a88ea35f64dd1d1c (patch)
treea75c3363cb182f0c18ad7638409440027bba07f9 /tests/end_to_end
parent6e1af8b082379a2cf0aafc8c7929bea465b9d8aa (diff)
downloadbiboumi-f371d9ca46578a722d2ce0d4a88ea35f64dd1d1c.tar.gz
biboumi-f371d9ca46578a722d2ce0d4a88ea35f64dd1d1c.tar.bz2
biboumi-f371d9ca46578a722d2ce0d4a88ea35f64dd1d1c.tar.xz
biboumi-f371d9ca46578a722d2ce0d4a88ea35f64dd1d1c.zip
xep-0106 escape the JIDs listed in a disco#items server query
fix #3325
Diffstat (limited to 'tests/end_to_end')
-rw-r--r--tests/end_to_end/__main__.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index 649e073..e223ead 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -2254,6 +2254,21 @@ if __name__ == '__main__':
"/iq/disco_items:query/disco_items:item[@jid='#bar%{irc_server_one}']"
))
]),
+ Scenario("channel_list_escaping",
+ [
+ handshake_sequence(),
+
+ partial(send_stanza,
+ "<presence from='{jid_one}/{resource_one}' to='#true\\2ffalse%{irc_server_one}/{nick_one}' />"),
+ connection_sequence("irc.localhost", '{jid_one}/{resource_one}'),
+ partial(expect_stanza,
+ "/message/body[text()='Mode #true/false [+nt] by {irc_host_one}']"),
+ partial(expect_stanza,
+ ("/presence[@to='{jid_one}/{resource_one}'][@from='#true\\2ffalse%{irc_server_one}/{nick_one}']/muc_user:x/muc_user:item[@affiliation='admin'][@role='moderator']",
+ "/presence/muc_user:x/muc_user:status[@code='110']")
+ ),
+ partial(expect_stanza, "/message[@from='#true\\2ffalse%{irc_server_one}'][@type='groupchat']/subject[not(text())]"),
+ ]),
Scenario("channel_list_with_rsm",
[
handshake_sequence(),