Annotate

spec/scansion/pep_itemreply.scs @ 13009:a70ff0c524c9

mod_tokenauth: Move grant validation to a reusable function
author Matthew Wild <mwild1@gmail.com>
date Wed, 29 Mar 2023 17:14:45 +0100
parent 12964:4b75c8291ef7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12964
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
1 # PEP itemreply (publisher) configuration
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
2 # This tests that itemreply == "publisher" will add the 'publisher' attribute
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
3 # to notifications. Since this is not the default behaviour, the normal
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
4 # publish and subscribe test cases cover testing that it is not included
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
5 # otherwise.
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
6
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
7 [Client] Romeo
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
8 jid: pep-test-df6zdvkv@localhost
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
9 password: password
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
10
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
11 [Client] Juliet
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
12 jid: pep-test-5k90xvps@localhost
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
13 password: password
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
14
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
15 -----
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
16
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
17 Romeo connects
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
18
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
19 Romeo sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
20 <presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
21 <c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
22 </presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
23
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
24 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
25 <iq type='get' id='disco' from="${Romeo's JID}">
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
26 <query node='http://code.matthewwild.co.uk/verse/#PDH7CGVPRERS2WUqBD18PHGEzaY=' xmlns='http://jabber.org/protocol/disco#info'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
27 </iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
28
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
29 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
30 <presence from="${Romeo's full JID}">
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
31 <c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
32 </presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
33
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
34 Romeo sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
35 <iq type='get' id='6'>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
36 <query ver='' xmlns='jabber:iq:roster'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
37 </iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
38
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
39 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
40 <iq type='result' id='6'>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
41 <query ver='1' xmlns='jabber:iq:roster'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
42 </iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
43
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
44 Juliet connects
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
45
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
46 Juliet sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
47 <presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
48 <c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
49 </presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
50
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
51 Juliet receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
52 <iq type='get' id='disco' from="${Juliet's JID}">
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
53 <query node='http://code.matthewwild.co.uk/verse/#PDH7CGVPRERS2WUqBD18PHGEzaY=' xmlns='http://jabber.org/protocol/disco#info'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
54 </iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
55
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
56 Juliet receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
57 <presence from="${Juliet's full JID}">
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
58 <c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
59 </presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
60
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
61 Juliet sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
62 <iq type='get' id='6'>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
63 <query ver='' xmlns='jabber:iq:roster'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
64 </iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
65
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
66 Juliet receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
67 <iq type='result' id='6'>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
68 <query ver='1' xmlns='jabber:iq:roster'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
69 </iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
70
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
71 Romeo sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
72 <iq type='result' id='disco' to='pep-test-df6zdvkv@localhost'><query xmlns='http://jabber.org/protocol/disco#info' node='http://code.matthewwild.co.uk/verse/#PDH7CGVPRERS2WUqBD18PHGEzaY='><identity type='pc' name='Verse' category='client'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/caps'/></query></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
73
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
74 Romeo sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
75 <presence type='subscribe' to="${Juliet's JID}"><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
76
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
77 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
78 <iq type='set' id='{scansion:any}'><query ver='1' xmlns='jabber:iq:roster'><item ask='subscribe' jid='pep-test-5k90xvps@localhost' subscription='none'/></query></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
79
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
80 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
81 <presence type='unavailable' to='pep-test-df6zdvkv@localhost' from='pep-test-5k90xvps@localhost'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
82
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
83 Juliet receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
84 <presence type='subscribe' from='pep-test-df6zdvkv@localhost' to='pep-test-5k90xvps@localhost'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
85
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
86 Juliet sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
87 <iq type='result' id='disco' to='pep-test-5k90xvps@localhost'><query xmlns='http://jabber.org/protocol/disco#info' node='http://code.matthewwild.co.uk/verse/#PDH7CGVPRERS2WUqBD18PHGEzaY='><identity type='pc' name='Verse' category='client'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/caps'/></query></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
88
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
89 Juliet sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
90 <presence type='subscribe' to="${Romeo's JID}"><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
91
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
92 Juliet receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
93 <iq type='set' id='{scansion:any}'><query ver='2' xmlns='jabber:iq:roster'><item ask='subscribe' jid='pep-test-df6zdvkv@localhost' subscription='none'/></query></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
94
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
95 Juliet receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
96 <presence type='unavailable' to='pep-test-5k90xvps@localhost' from='pep-test-df6zdvkv@localhost'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
97
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
98 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
99 <presence type='subscribe' from='pep-test-5k90xvps@localhost' to='pep-test-df6zdvkv@localhost'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
100
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
101 Romeo sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
102 <iq type='result' id='fixme'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
103
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
104 Romeo sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
105 <presence type='subscribed' to='pep-test-5k90xvps@localhost'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
106
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
107 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
108 <iq type='set' id='{scansion:any}'><query ver='3' xmlns='jabber:iq:roster'><item ask='subscribe' jid='pep-test-5k90xvps@localhost' subscription='from'/></query></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
109
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
110 Juliet receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
111 <presence type='subscribed' from='pep-test-df6zdvkv@localhost' to='pep-test-5k90xvps@localhost'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
112
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
113 Juliet receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
114 <iq type='set' id='{scansion:any}'><query ver='3' xmlns='jabber:iq:roster'><item jid='pep-test-df6zdvkv@localhost' subscription='to'/></query></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
115
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
116 Juliet receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
117 <presence to='pep-test-5k90xvps@localhost' from="${Romeo's full JID}"><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/><delay xmlns='urn:xmpp:delay' stamp='{scansion:any}' from='localhost'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
118
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
119 Juliet sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
120 <presence type='subscribed' to='pep-test-df6zdvkv@localhost'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
121
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
122 Juliet receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
123 <iq type='set' id='{scansion:any}'><query ver='4' xmlns='jabber:iq:roster'><item jid='pep-test-df6zdvkv@localhost' subscription='both'/></query></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
124
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
125 Juliet receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
126 <presence to='pep-test-5k90xvps@localhost' from="${Romeo's full JID}"><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/><delay xmlns='urn:xmpp:delay' stamp='{scansion:any}' from='localhost'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
127
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
128 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
129 <presence type='subscribed' from='pep-test-5k90xvps@localhost' to='pep-test-df6zdvkv@localhost'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
130
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
131 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
132 <iq type='set' id='{scansion:any}'><query ver='4' xmlns='jabber:iq:roster'><item jid='pep-test-5k90xvps@localhost' subscription='both'/></query></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
133
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
134 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
135 <presence to='pep-test-df6zdvkv@localhost' from="${Juliet's full JID}"><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/><delay xmlns='urn:xmpp:delay' stamp='{scansion:any}' from='localhost'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
136
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
137 Juliet sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
138 <iq type='result' id='fixme'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
139
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
140 Romeo sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
141 <iq type='result' id='fixme'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
142
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
143 Romeo sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
144 <iq type='result' id='fixme'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
145
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
146 Romeo sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
147 <presence><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='m/sIsyfzKk8X1okZMtStR43nQQg=' node='http://code.matthewwild.co.uk/verse/'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
148
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
149 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
150 <iq type='get' id='disco' from='pep-test-df6zdvkv@localhost'><query node='http://code.matthewwild.co.uk/verse/#m/sIsyfzKk8X1okZMtStR43nQQg=' xmlns='http://jabber.org/protocol/disco#info'/></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
151
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
152 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
153 <presence from="${Romeo's full JID}"><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='m/sIsyfzKk8X1okZMtStR43nQQg=' node='http://code.matthewwild.co.uk/verse/'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
154
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
155 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
156 <iq type='get' id='disco' from='pep-test-5k90xvps@localhost'><query node='http://code.matthewwild.co.uk/verse/#m/sIsyfzKk8X1okZMtStR43nQQg=' xmlns='http://jabber.org/protocol/disco#info'/></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
157
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
158 Juliet receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
159 <presence from="${Romeo's full JID}"><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='m/sIsyfzKk8X1okZMtStR43nQQg=' node='http://code.matthewwild.co.uk/verse/'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
160
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
161 Romeo sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
162 <presence><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='IfQwbaaDB4LEP5tkGArEaB/3Y+s=' node='http://code.matthewwild.co.uk/verse/'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
163
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
164 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
165 <iq type='get' id='disco' from='pep-test-df6zdvkv@localhost'><query node='http://code.matthewwild.co.uk/verse/#IfQwbaaDB4LEP5tkGArEaB/3Y+s=' xmlns='http://jabber.org/protocol/disco#info'/></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
166
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
167 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
168 <presence from="${Romeo's full JID}"><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='IfQwbaaDB4LEP5tkGArEaB/3Y+s=' node='http://code.matthewwild.co.uk/verse/'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
169
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
170 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
171 <iq type='get' id='disco' from='pep-test-5k90xvps@localhost'><query node='http://code.matthewwild.co.uk/verse/#IfQwbaaDB4LEP5tkGArEaB/3Y+s=' xmlns='http://jabber.org/protocol/disco#info'/></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
172
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
173 Romeo sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
174 <iq type='result' id='disco' to='pep-test-df6zdvkv@localhost'><query xmlns='http://jabber.org/protocol/disco#info' node='http://code.matthewwild.co.uk/verse/#m/sIsyfzKk8X1okZMtStR43nQQg='/></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
175
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
176 Romeo sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
177 <iq type='result' id='disco' to='pep-test-5k90xvps@localhost'><query xmlns='http://jabber.org/protocol/disco#info' node='http://code.matthewwild.co.uk/verse/#m/sIsyfzKk8X1okZMtStR43nQQg='/></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
178
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
179 Romeo sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
180 <iq type='result' id='disco' to='pep-test-df6zdvkv@localhost'><query xmlns='http://jabber.org/protocol/disco#info' node='http://code.matthewwild.co.uk/verse/#IfQwbaaDB4LEP5tkGArEaB/3Y+s='><identity type='pc' name='Verse' category='client'/><feature var='http://jabber.org/protocol/tune+notify'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/caps'/><feature var='http://jabber.org/protocol/mood+notify'/></query></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
181
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
182 Juliet receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
183 <presence from="${Romeo's full JID}"><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='IfQwbaaDB4LEP5tkGArEaB/3Y+s=' node='http://code.matthewwild.co.uk/verse/'/></presence>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
184
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
185 Juliet sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
186 <iq type='result' id='fixme'/>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
187
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
188 Juliet sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
189 <iq type='set' id='7'><pubsub xmlns='http://jabber.org/protocol/pubsub'><publish node='http://jabber.org/protocol/tune'><item id='current' publisher="${Juliet's JID}"><tune xmlns='http://jabber.org/protocol/tune'><title>Beautiful Cedars</title><artist>The Spinners</artist><source>Not Quite Folk</source><track>4</track></tune></item></publish><publish-options><x type='submit' xmlns='jabber:x:data'><field type='hidden' var='FORM_TYPE'><value>http://jabber.org/protocol/pubsub#publish-options</value></field><field var='pubsub#persist_items'><value>true</value></field><field var='pubsub#itemreply'><value>publisher</value></field></x></publish-options></pubsub></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
190
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
191 Juliet receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
192 <iq type='result' id='7' ><pubsub xmlns='http://jabber.org/protocol/pubsub'><publish node='http://jabber.org/protocol/tune'><item id='current'/></publish></pubsub></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
193
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
194 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
195 <message type='headline' from='pep-test-5k90xvps@localhost'><event xmlns='http://jabber.org/protocol/pubsub#event'><items node='http://jabber.org/protocol/tune'><item id='current' publisher="${Juliet's JID}"><tune xmlns='http://jabber.org/protocol/tune'><title>Beautiful Cedars</title><artist>The Spinners</artist><source>Not Quite Folk</source><track>4</track></tune></item></items></event></message>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
196
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
197 Romeo sends:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
198 <iq type='result' id='disco' to='pep-test-5k90xvps@localhost'><query xmlns='http://jabber.org/protocol/disco#info' node='http://code.matthewwild.co.uk/verse/#IfQwbaaDB4LEP5tkGArEaB/3Y+s='><identity type='pc' name='Verse' category='client'/><feature var='http://jabber.org/protocol/tune+notify'/><feature var='http://jabber.org/protocol/disco#info'/><feature var='http://jabber.org/protocol/disco#items'/><feature var='http://jabber.org/protocol/caps'/><feature var='http://jabber.org/protocol/mood+notify'/></query></iq>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
199
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
200 Romeo receives:
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
201 <message type='headline' from='pep-test-5k90xvps@localhost'><event xmlns='http://jabber.org/protocol/pubsub#event'><items node='http://jabber.org/protocol/tune'><item id='current' publisher="${Juliet's JID}"><tune xmlns='http://jabber.org/protocol/tune'><title>Beautiful Cedars</title><artist>The Spinners</artist><source>Not Quite Folk</source><track>4</track></tune></item></items></event></message>
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
202
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
203 Juliet disconnects
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
204
4b75c8291ef7 scansion: Add tests for pubsub#itemreply in PEP
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
205 Romeo disconnects