util.x509: Nameprep commonName once
[prosody.git] / spec / scansion / pubsub_basic.scs
blobd983ff6630c179cd589575eb2714582740aa7bf8
1 # Pubsub: Basic support
3 [Client] Romeo
4         jid: admin@localhost
5         password: password
7 // admin@localhost is assumed to have node creation privileges
9 [Client] Juliet
10         jid: juliet@localhost
11         password: password
13 ---------
15 Romeo connects
17 Romeo sends:
18         <iq type="set" to="pubsub.localhost" id='create1'>
19                 <pubsub xmlns="http://jabber.org/protocol/pubsub">
20                         <create node="princely_musings"/>
21                 </pubsub>
22         </iq>
24 Romeo receives:
25         <iq type="result" id='create1'/>
27 Juliet connects
29 -- Juliet sends:
30 --      <iq type="set" to="pubsub.localhost">
31 --              <pubsub xmlns="http://jabber.org/protocol/pubsub">
32 --                      <subscribe node="princely_musings" jid="${Romeo's full JID}"/>
33 --              </pubsub>
34 --      </iq>
35 -- 
36 -- Juliet receives:
37 --      <iq type="error"/>
39 Juliet sends:
40         <iq type="set" to="pubsub.localhost" id='sub1'>
41                 <pubsub xmlns="http://jabber.org/protocol/pubsub">
42                         <subscribe node="princely_musings" jid="${Juliet's full JID}"/>
43                 </pubsub>
44         </iq>
46 Juliet receives:
47         <iq type="result" id='sub1'/>
49 Romeo sends:
50         <iq type="set" to="pubsub.localhost" id='pub1'>
51                 <pubsub xmlns="http://jabber.org/protocol/pubsub">
52                         <publish node="princely_musings">
53                                 <item id="current">
54                                         <entry xmlns="http://www.w3.org/2005/Atom">
55                                                 <title>Soliloquy</title>
56                                                 <summary>Lorem ipsum dolor sit amet</summary>
57                                         </entry>
58                                 </item>
59                         </publish>
60                 </pubsub>
61         </iq>
63 Romeo receives:
64         <iq type="result" id='pub1'/>
66 Juliet receives:
67         <message type="headline" from="pubsub.localhost">
68                 <event xmlns="http://jabber.org/protocol/pubsub#event">
69                         <items node="princely_musings">
70                                 <item id="current">
71                                         <entry xmlns="http://www.w3.org/2005/Atom">
72                                                 <title>Soliloquy</title>
73                                                 <summary>Lorem ipsum dolor sit amet</summary>
74                                         </entry>
75                                 </item>
76                         </items>
77                 </event>
78         </message>
80 Juliet sends:
81         <iq type="set" to="pubsub.localhost" id='unsub1'>
82                 <pubsub xmlns="http://jabber.org/protocol/pubsub">
83                         <unsubscribe node="princely_musings" jid="${Juliet's full JID}"/>
84                 </pubsub>
85         </iq>
87 Juliet receives:
88         <iq type="result" id='unsub1'/>
90 Juliet disconnects
92 Romeo sends:
93         <iq type="set" to="pubsub.localhost" id='del1'>
94                 <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
95                         <delete node="princely_musings"/>
96                 </pubsub>
97         </iq>
99 Romeo receives:
100         <iq type="result" id='del1'/>
102 Romeo disconnects
104 // vim: syntax=xml: