aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion/pubsub_createdelete.scs
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-09-06 16:44:48 +0100
committerMatthew Wild <mwild1@gmail.com>2018-09-06 16:44:48 +0100
commitd78bd730e5654ba99f1fbdda5ef07b8b271efe4b (patch)
tree12dd5fa0c79626ad740d37941b15a62428ced0ee /spec/scansion/pubsub_createdelete.scs
parent5d5fbb462cde24b672ffbef5318102892bc2776e (diff)
downloadprosody-d78bd730e5654ba99f1fbdda5ef07b8b271efe4b.tar.gz
prosody-d78bd730e5654ba99f1fbdda5ef07b8b271efe4b.zip
spec/scansion: Add scansion scripts used for testing
All past, except issue978-multi which fails randomly based on ordering of elements - this is a scansion issue to be resolved.
Diffstat (limited to 'spec/scansion/pubsub_createdelete.scs')
-rw-r--r--spec/scansion/pubsub_createdelete.scs61
1 files changed, 61 insertions, 0 deletions
diff --git a/spec/scansion/pubsub_createdelete.scs b/spec/scansion/pubsub_createdelete.scs
new file mode 100644
index 00000000..f6fd1831
--- /dev/null
+++ b/spec/scansion/pubsub_createdelete.scs
@@ -0,0 +1,61 @@
+[Client] Romeo
+ jid: admin@localhost
+ password: password
+
+// admin@localhost is assumed to have node creation privileges
+
+---------
+
+Romeo connects
+
+Romeo sends:
+ <iq type="set" to="pubsub.localhost" id='create1'>
+ <pubsub xmlns="http://jabber.org/protocol/pubsub">
+ <create node="princely_musings"/>
+ </pubsub>
+ </iq>
+
+Romeo receives:
+ <iq type="result" id='create1'/>
+
+Romeo sends:
+ <iq type="set" to="pubsub.localhost" id='create2'>
+ <pubsub xmlns="http://jabber.org/protocol/pubsub">
+ <create node="princely_musings"/>
+ </pubsub>
+ </iq>
+
+Romeo receives:
+ <iq type="error" id='create2'>
+ <error type="cancel">
+ <conflict xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
+ </error>
+ </iq>
+
+Romeo sends:
+ <iq type="set" to="pubsub.localhost" id='delete1'>
+ <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
+ <delete node="princely_musings"/>
+ </pubsub>
+ </iq>
+
+Romeo receives:
+ <iq type="result" id='delete1'/>
+
+Romeo sends:
+ <iq type="set" to="pubsub.localhost" id='delete2'>
+ <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
+ <delete node="princely_musings"/>
+ </pubsub>
+ </iq>
+
+Romeo receives:
+ <iq type="error" id='delete2'>
+ <error type="cancel">
+ <item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
+ </error>
+ </iq>
+
+Romeo disconnects
+
+// vim: syntax=xml: