diff options
author | louiz’ <louiz@louiz.org> | 2017-12-26 20:21:18 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-12-26 20:21:18 +0100 |
commit | 131ef9946fff0f5cfd794203e819df931b72600f (patch) | |
tree | c81ac414bc7bf87fbc5785074a7c35e6300bd3e4 /tests | |
parent | 37340e593ffb61eaccc444a1efdb3aa6f784a14a (diff) | |
download | biboumi-131ef9946fff0f5cfd794203e819df931b72600f.tar.gz biboumi-131ef9946fff0f5cfd794203e819df931b72600f.tar.bz2 biboumi-131ef9946fff0f5cfd794203e819df931b72600f.tar.xz biboumi-131ef9946fff0f5cfd794203e819df931b72600f.zip |
Include the <fin><set><first/><last/></></> nodes in the MAM iq result
fix #3322
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end_to_end/__main__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py index 2becdef..271f87b 100644 --- a/tests/end_to_end/__main__.py +++ b/tests/end_to_end/__main__.py @@ -130,6 +130,7 @@ def match(stanza, xpath): 'dataform': 'jabber:x:data', 'version': 'jabber:iq:version', 'mam': 'urn:xmpp:mam:2', + 'rms': 'http://jabber.org/protocol/rsm', 'delay': 'urn:xmpp:delay', 'forward': 'urn:xmpp:forward:0', 'client': 'jabber:client', @@ -1852,7 +1853,9 @@ if __name__ == '__main__': ), partial(expect_stanza, - "/iq[@type='result'][@id='id1'][@from='#foo%{irc_server_one}'][@to='{jid_one}/{resource_one}']"), + ("/iq[@type='result'][@id='id1'][@from='#foo%{irc_server_one}'][@to='{jid_one}/{resource_one}']", + "/iq/mam:fin/rms:set/rsm:last", + "/iq/mam:fin/rsm:set/rsm:first")), # Retrieve an empty archive by specifying an early “end” date partial(send_stanza, """<iq to='#foo%{irc_server_one}' from='{jid_one}/{resource_one}' type='set' id='id2'> |