diff options
author | louiz’ <louiz@louiz.org> | 2017-04-12 17:07:39 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-04-12 17:07:39 +0200 |
commit | 3a8203c366d46ec2937a601868f5e2ed591c923e (patch) | |
tree | 7ce839420c7ddd737dca356c05c5b365a9dcdb3b /tests | |
parent | 4fde4d7369ff2f54f4216704a4fd51a974f53885 (diff) | |
download | biboumi-3a8203c366d46ec2937a601868f5e2ed591c923e.tar.gz biboumi-3a8203c366d46ec2937a601868f5e2ed591c923e.tar.bz2 biboumi-3a8203c366d46ec2937a601868f5e2ed591c923e.tar.xz biboumi-3a8203c366d46ec2937a601868f5e2ed591c923e.zip |
Handle the RSM "max" value in the MAM requests
fix #3255
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end_to_end/__main__.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py index e9c9429..8acfe14 100644 --- a/tests/end_to_end/__main__.py +++ b/tests/end_to_end/__main__.py @@ -1626,6 +1626,18 @@ if __name__ == '__main__': partial(expect_stanza, "/iq[@type='result'][@id='id3'][@from='#foo%{irc_server_one}'][@to='{jid_one}/{resource_one}']"), + + # Retrieve a limited archive + partial(send_stanza, "<iq to='#foo%{irc_server_one}' from='{jid_one}/{resource_one}' type='set' id='id4'><query xmlns='urn:xmpp:mam:2' queryid='qid4'><set xmlns='http://jabber.org/protocol/rsm'><max>1</max></set></query></iq>"), + + partial(expect_stanza, + ("/message/mam:result[@queryid='qid4']/forward:forwarded/delay:delay", + "/message/mam:result[@queryid='qid4']/forward:forwarded/client:message[@from='#foo%{irc_server_one}/{nick_one}'][@type='groupchat']/client:body[text()='coucou 2']") + ), + + partial(expect_stanza, + "/iq[@type='result'][@id='id4'][@from='#foo%{irc_server_one}'][@to='{jid_one}/{resource_one}']"), + ]), Scenario("mam_on_fixed_server", [ |