diff options
author | louiz’ <louiz@louiz.org> | 2018-04-29 23:25:53 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-04-29 23:25:53 +0200 |
commit | 678f5d079b6ac040e5fb1877eb8707534806c4b5 (patch) | |
tree | 5f356044abaa088a19bc41353e320587e7106596 /tests | |
parent | b0168fd45b3683c2d6f61ccae67dcd5b918a363d (diff) | |
download | biboumi-678f5d079b6ac040e5fb1877eb8707534806c4b5.tar.gz biboumi-678f5d079b6ac040e5fb1877eb8707534806c4b5.tar.bz2 biboumi-678f5d079b6ac040e5fb1877eb8707534806c4b5.tar.xz biboumi-678f5d079b6ac040e5fb1877eb8707534806c4b5.zip |
Add a test for the <max>0</max> MAM query
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end_to_end/__main__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py index 1ec5a74..a7a6a91 100644 --- a/tests/end_to_end/__main__.py +++ b/tests/end_to_end/__main__.py @@ -2296,6 +2296,13 @@ if __name__ == '__main__': ("/iq[@type='result'][@id='id4'][@from='#foo%{irc_server_one}'][@to='{jid_one}/{resource_one}']", "/iq/mam:fin/rsm:set/rsm:last[text()='{last_uuid}']", "!/iq/mam:fin[@complete='true']",)), + + # Test if everything is fine even with weird max value: 0 + partial(send_stanza, "<iq to='#foo%{irc_server_one}' from='{jid_one}/{resource_one}' type='set' id='id5'><query xmlns='urn:xmpp:mam:2' queryid='qid5' ><set xmlns='http://jabber.org/protocol/rsm'><before></before><max>0</max></set></query></iq>"), + + partial(expect_stanza, + ("/iq[@type='result'][@id='id5'][@from='#foo%{irc_server_one}'][@to='{jid_one}/{resource_one}']", + "!/iq/mam:fin[@complete='true']",)), ]), Scenario("channel_history_on_fixed_server", [ |