# HG changeset patch # User Kim Alvefur <zash@zash.se> # Date 1640269038 -3600 # Node ID efcf25ad5406ba403b6fde0866a7951a59b82a1f # Parent 94de6b7596cce261032a2738662bddb7368e17da mod_tombstones: Add a very basic test case diff -r 94de6b7596cc -r efcf25ad5406 spec/scansion/prosody.cfg.lua --- a/spec/scansion/prosody.cfg.lua Thu Dec 23 14:08:20 2021 +0100 +++ b/spec/scansion/prosody.cfg.lua Thu Dec 23 15:17:18 2021 +0100 @@ -63,6 +63,9 @@ "lastactivity"; "external_services"; + "tombstones"; + "user_account_management"; + -- Useful for testing --"scansion_record"; -- Records things that happen in scansion test case format } diff -r 94de6b7596cc -r efcf25ad5406 spec/scansion/tombstones.scs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spec/scansion/tombstones.scs Thu Dec 23 15:17:18 2021 +0100 @@ -0,0 +1,38 @@ +# Tombstones + +[Client] Romeo + jid: romeo@localhost + password: password + +[Client] Juliet + jid: juliet-tombstones@localhost + password: password + +--------- + +Romeo connects + +Juliet connects + +Juliet sends: + <iq type="set" id="bye"> + <query xmlns="jabber:iq:register"> + <remove/> + </query> + </iq> + +# Scansion gets disconnected right after this with a stream error makes +# scansion itself abort, so we preemptively disconnect to avoid that +# Juliet receives: +# <iq type="result" id="bye"/> + +Juliet disconnects + +Romeo sends: + <presence type="probe" to="${Juliet's JID}"/> + +Romeo receives: + <presence type="error" from="${Juliet's JID}"/> + +Romeo receives: + <presence type="unsubscribed" from="${Juliet's JID}"/>