diff options
author | Kim Alvefur <zash@zash.se> | 2021-12-23 15:17:18 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-12-23 15:17:18 +0100 |
commit | 7056bc067488cbb01f8ac87f6556c76e16708fe5 (patch) | |
tree | c8cbe3c265f93beeb2384228a2acb63b7a8e318f /spec | |
parent | 146709a2dddb78fd46f11ef8591b1cb59672440b (diff) | |
download | prosody-7056bc067488cbb01f8ac87f6556c76e16708fe5.tar.gz prosody-7056bc067488cbb01f8ac87f6556c76e16708fe5.zip |
mod_tombstones: Add a very basic test case
Diffstat (limited to 'spec')
-rw-r--r-- | spec/scansion/prosody.cfg.lua | 3 | ||||
-rw-r--r-- | spec/scansion/tombstones.scs | 38 |
2 files changed, 41 insertions, 0 deletions
diff --git a/spec/scansion/prosody.cfg.lua b/spec/scansion/prosody.cfg.lua index d4389cbe..6901cc11 100644 --- a/spec/scansion/prosody.cfg.lua +++ b/spec/scansion/prosody.cfg.lua @@ -63,6 +63,9 @@ modules_enabled = { "lastactivity"; "external_services"; + "tombstones"; + "user_account_management"; + -- Useful for testing --"scansion_record"; -- Records things that happen in scansion test case format } diff --git a/spec/scansion/tombstones.scs b/spec/scansion/tombstones.scs new file mode 100644 index 00000000..dd07110e --- /dev/null +++ b/spec/scansion/tombstones.scs @@ -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}"/> |