From 7ca1b33ae39360ae7982bf862ace1f1088e11067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Sun, 3 Nov 2019 22:21:30 +0100 Subject: =?UTF-8?q?Add=20a=20test=20for=20MAM=20without=20an=20=E2=80=9Cen?= =?UTF-8?q?d=E2=80=9D=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/end_to_end/scenarios/mam_with_timestamps.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tests/end_to_end') diff --git a/tests/end_to_end/scenarios/mam_with_timestamps.py b/tests/end_to_end/scenarios/mam_with_timestamps.py index f8d1a06..0ed0333 100644 --- a/tests/end_to_end/scenarios/mam_with_timestamps.py +++ b/tests/end_to_end/scenarios/mam_with_timestamps.py @@ -40,4 +40,24 @@ scenario = ( expect_stanza("/iq[@type='result'][@id='id8'][@from='#foo%{irc_server_one}'][@to='{jid_one}/{resource_one}']", "/iq/mam:fin[@complete='true']/rsm:set"), + + # Try the same thing, but only with the 'start' value, omitting the end + send_stanza(""" + + + urn:xmpp:mam:2 + {first_timestamp} + + + """), + + expect_stanza("/message/mam:result[@queryid='qid17']/forward:forwarded/delay:delay", + "/message/mam:result/forward:forwarded/client:message[@from='#foo%{irc_server_one}/{nick_one}'][@type='groupchat']/client:body[text()='coucou 3']"), + + expect_stanza("/message/mam:result[@queryid='qid17']/forward:forwarded/delay:delay", + "/message/mam:result/forward:forwarded/client:message[@from='#foo%{irc_server_one}/{nick_one}'][@type='groupchat']/client:body[text()='coucou 4']"), + + expect_stanza("/iq[@type='result'][@id='id888'][@from='#foo%{irc_server_one}'][@to='{jid_one}/{resource_one}']", + "/iq/mam:fin[@complete='true']/rsm:set"), + ) -- cgit v1.2.3