util.x509: Nameprep commonName once
[prosody.git] / spec / scansion / pubsub_createdelete.scs
bloba44695e7d87bc50218e7a47ecdb00cd8c9132cc6
1 # Pubsub: Create and delete
3 [Client] Romeo
4         jid: admin@localhost
5         password: password
7 // admin@localhost is assumed to have node creation privileges
9 ---------
11 Romeo connects
13 Romeo sends:
14         <iq type="set" to="pubsub.localhost" id='create1'>
15                 <pubsub xmlns="http://jabber.org/protocol/pubsub">
16                         <create node="princely_musings"/>
17                 </pubsub>
18         </iq>
20 Romeo receives:
21         <iq type="result" id='create1'/>
23 Romeo sends:
24         <iq type="set" to="pubsub.localhost" id='create2'>
25                 <pubsub xmlns="http://jabber.org/protocol/pubsub">
26                         <create node="princely_musings"/>
27                 </pubsub>
28         </iq>
30 Romeo receives:
31         <iq type="error" id='create2'>
32                 <error type="cancel">
33                         <conflict xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
34                 </error>
35         </iq>
37 Romeo sends:
38         <iq type="set" to="pubsub.localhost" id='delete1'>
39                 <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
40                         <delete node="princely_musings"/>
41                 </pubsub>
42         </iq>
44 Romeo receives:
45         <iq type="result" id='delete1'/>
47 Romeo sends:
48         <iq type="set" to="pubsub.localhost" id='delete2'>
49                 <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
50                         <delete node="princely_musings"/>
51                 </pubsub>
52         </iq>
54 Romeo receives:
55         <iq type="error" id='delete2'>
56                 <error type="cancel">
57                         <item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
58                 </error>
59         </iq>
61 Romeo disconnects
63 // vim: syntax=xml: