From 1e2c3cdc46cc817532b3ffcce1e460695e9361d7 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 20 Jun 2019 21:08:12 +0200 Subject: mod_blocklist: Add test case capturing current behavior --- spec/scansion/blocking.scs | 162 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) create mode 100644 spec/scansion/blocking.scs (limited to 'spec') diff --git a/spec/scansion/blocking.scs b/spec/scansion/blocking.scs new file mode 100644 index 00000000..5f4c8cba --- /dev/null +++ b/spec/scansion/blocking.scs @@ -0,0 +1,162 @@ +# XEP-0191: Blocking Command + +[Client] Romeo + jid: blocker@localhost + password: password + +[Client] Juliet + jid: blockee@localhost + password: password + +----- + +# The parties connect +Romeo connects + +Romeo sends: + + +Romeo receives: + + + + +Juliet connects + +Juliet sends: + + +Juliet receives: + + + + +# They add each other +Romeo sends: + + +Romeo receives: + + +Juliet receives: + + +Juliet sends: + + +Romeo receives: + + + + + +Juliet sends: + + +Juliet receives: + + +Romeo receives: + + +Romeo sends: + + +Juliet receives: + + + + + +Romeo receives: + + + + + +# They can now talk +Juliet sends: + + ohai + + +Romeo receives: + + ohai + + +# And now to the blockining + +Romeo sends: + + + + + + +Romeo receives: + + +Juliet receives: + + +# Can"t talk anymore +Romeo sends: + + hello? + + +Romeo receives: + + + + You have blocked this JID + + + + +Juliet sends: + + +Juliet receives: + + + + + + +Romeo sends: + + + + + + +Romeo receives: + + +# Can talk again +Romeo sends: + + hello! + + +Juliet receives: + + hello! + + +# Bye +Juliet disconnects + +Juliet sends: + + +Romeo receives: + + +Romeo disconnects + +Romeo sends: + + -- cgit v1.2.3 From 2ab9c22c2658d38345fc69705c2e2b60cb6fc348 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 20 Jun 2019 21:18:46 +0200 Subject: mod_blocklist: Update test case with correct behavior (see #1380) Expect failure --- spec/scansion/blocking.scs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec') diff --git a/spec/scansion/blocking.scs b/spec/scansion/blocking.scs index 5f4c8cba..809bbcb5 100644 --- a/spec/scansion/blocking.scs +++ b/spec/scansion/blocking.scs @@ -132,6 +132,12 @@ Romeo sends: +Juliet receives: + + + + + Romeo receives: -- cgit v1.2.3