summaryrefslogtreecommitdiff
path: root/tests/end_to_end
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-12-26 19:52:41 +0100
committerlouiz’ <louiz@louiz.org>2017-12-26 19:52:41 +0100
commit37340e593ffb61eaccc444a1efdb3aa6f784a14a (patch)
tree8ac71f9564d7c72a945d759d842697ce22873bfa /tests/end_to_end
parent286aa58c7b42f78eb72d4f05170a8c25edeba504 (diff)
downloadbiboumi-37340e593ffb61eaccc444a1efdb3aa6f784a14a.tar.gz
biboumi-37340e593ffb61eaccc444a1efdb3aa6f784a14a.tar.bz2
biboumi-37340e593ffb61eaccc444a1efdb3aa6f784a14a.tar.xz
biboumi-37340e593ffb61eaccc444a1efdb3aa6f784a14a.zip
Add a <x muc#user> node on outgoing private MUC messages
See https://xmpp.org/extensions/xep-0045.html#privatemessage fix #3321
Diffstat (limited to 'tests/end_to_end')
-rw-r--r--tests/end_to_end/__main__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index e024fc5..2becdef 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -1088,7 +1088,8 @@ if __name__ == '__main__':
# Message is received with a server-wide JID, by the two resources behind nick_one
partial(expect_stanza, ("/message[@from='{lower_nick_two}%{irc_server_one}'][@to='{jid_one}/{resource_one}'][@type='chat']/body[text()='RELLO']",
"/message/hints:no-copy",
- "/message/carbon:private")),
+ "/message/carbon:private",
+ "!/message/muc_user:x")),
partial(expect_stanza, "/message[@from='{lower_nick_two}%{irc_server_one}'][@to='{jid_one}/{resource_two}'][@type='chat']/body[text()='RELLO']"),
@@ -1280,7 +1281,8 @@ if __name__ == '__main__':
# Respond to the message, to the server-wide JID
partial(send_stanza, "<message from='{jid_two}/{resource_one}' to='{lower_nick_one}%{irc_server_one}' type='chat'><body>yes</body></message>"),
# The response is received from the in-room JID
- partial(expect_stanza, "/message[@from='#foo%{irc_server_one}/{nick_two}'][@to='{jid_one}/{resource_one}'][@type='chat']/body[text()='yes']"),
+ partial(expect_stanza, ("/message[@from='#foo%{irc_server_one}/{nick_two}'][@to='{jid_one}/{resource_one}'][@type='chat']/body[text()='yes']",
+ "/message/muc_user:x")),
## Do the exact same thing, from a different chan,
# to check if the response comes from the right JID