From 7056bc067488cbb01f8ac87f6556c76e16708fe5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 23 Dec 2021 15:17:18 +0100 Subject: mod_tombstones: Add a very basic test case --- spec/scansion/prosody.cfg.lua | 3 +++ spec/scansion/tombstones.scs | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 spec/scansion/tombstones.scs (limited to 'spec/scansion') 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: + + + + + + +# Scansion gets disconnected right after this with a stream error makes +# scansion itself abort, so we preemptively disconnect to avoid that +# Juliet receives: +# + +Juliet disconnects + +Romeo sends: + + +Romeo receives: + + +Romeo receives: + -- cgit v1.2.3