spec/scansion/pep_publish_subscribe.scs
author Jonas Schäfer <jonas@wielicki.name>
Mon, 10 Jan 2022 18:23:54 +0100
branch0.11
changeset 12185 783056b4e448
parent 9598 69e1838a01c6
child 11718 d783716103c1
permissions -rw-r--r--
util.xml: Do not allow doctypes, comments or processing instructions Yes. This is as bad as it sounds. CVE pending. In Prosody itself, this only affects mod_websocket, which uses util.xml to parse the <open/> frame, thus allowing unauthenticated remote DoS using Billion Laughs. However, third-party modules using util.xml may also be affected by this. This commit installs handlers which disallow the use of doctype declarations and processing instructions without any escape hatch. It, by default, also introduces such a handler for comments, however, there is a way to enable comments nontheless. This is because util.xml is used to parse human-facing data, where comments are generally a desirable feature, and also because comments are generally harmless.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9598
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     1
# PEP publish, subscribe and publish-options
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     2
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     3
[Client] Romeo
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     4
	jid: pep-test-wjebo4kg@localhost
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     5
	password: password
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     6
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     7
[Client] Juliet
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     8
	jid: pep-test-tqvqu_pv@localhost
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     9
	password: password
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    10
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    11
-----
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    12
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    13
Romeo connects
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    14
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    15
Romeo sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    16
	<presence>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    17
		<c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    18
	</presence>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    19
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    20
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    21
	<iq type='get' id='disco' from="${Romeo's JID}">
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    22
		<query node='http://code.matthewwild.co.uk/verse/#PDH7CGVPRERS2WUqBD18PHGEzaY=' xmlns='http://jabber.org/protocol/disco#info'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    23
	</iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    24
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    25
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    26
	<presence from="${Romeo's full JID}">
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    27
		<c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    28
	</presence>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    29
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    30
Romeo sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    31
	<iq type='get' id='6'>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    32
		<query ver='' xmlns='jabber:iq:roster'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    33
	</iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    34
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    35
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    36
	<iq type='result' id='6'>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    37
		<query ver='1' xmlns='jabber:iq:roster'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    38
	</iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    39
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    40
Juliet connects
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    41
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    42
Juliet sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    43
	<presence>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    44
		<c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    45
	</presence>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    46
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    47
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    48
	<iq type='get' id='disco' from="${Juliet's JID}">
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    49
		<query node='http://code.matthewwild.co.uk/verse/#PDH7CGVPRERS2WUqBD18PHGEzaY=' xmlns='http://jabber.org/protocol/disco#info'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    50
	</iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    51
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    52
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    53
	<presence from="${Juliet's full JID}">
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    54
		<c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    55
	</presence>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    56
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    57
Juliet sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    58
	<iq type='get' id='6'>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    59
		<query ver='' xmlns='jabber:iq:roster'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    60
	</iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    61
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    62
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    63
	<iq type='result' id='6'>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    64
		<query ver='1' xmlns='jabber:iq:roster'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    65
	</iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    66
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    67
Romeo sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    68
	<iq type='result' id='disco' to='pep-test-wjebo4kg@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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    69
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    70
Romeo sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    71
	<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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    72
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    73
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    74
	<iq type='set' id='{scansion:any}'><query ver='1' xmlns='jabber:iq:roster'><item ask='subscribe' jid='pep-test-tqvqu_pv@localhost' subscription='none'/></query></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    75
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    76
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    77
	<presence type='unavailable' to='pep-test-wjebo4kg@localhost' from='pep-test-tqvqu_pv@localhost'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    78
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    79
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    80
	<presence type='subscribe' from='pep-test-wjebo4kg@localhost' to='pep-test-tqvqu_pv@localhost'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/></presence>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    81
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    82
Juliet sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    83
	<iq type='result' id='disco' to='pep-test-tqvqu_pv@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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    84
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    85
Juliet sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    86
	<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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    87
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    88
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    89
	<iq type='set' id='{scansion:any}'><query ver='2' xmlns='jabber:iq:roster'><item ask='subscribe' jid='pep-test-wjebo4kg@localhost' subscription='none'/></query></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    90
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    91
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    92
	<presence type='unavailable' to='pep-test-tqvqu_pv@localhost' from='pep-test-wjebo4kg@localhost'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    93
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    94
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    95
	<presence type='subscribe' from='pep-test-tqvqu_pv@localhost' to='pep-test-wjebo4kg@localhost'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/></presence>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    96
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    97
Romeo sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    98
	<iq type='result' id='fixme'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    99
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   100
Romeo sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   101
	<presence type='subscribed' to='pep-test-tqvqu_pv@localhost'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/></presence>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   102
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   103
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   104
	<iq type='set' id='{scansion:any}'><query ver='3' xmlns='jabber:iq:roster'><item ask='subscribe' jid='pep-test-tqvqu_pv@localhost' subscription='from'/></query></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   105
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   106
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   107
	<presence type='subscribed' from='pep-test-wjebo4kg@localhost' to='pep-test-tqvqu_pv@localhost'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/></presence>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   108
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   109
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   110
	<iq type='set' id='{scansion:any}'><query ver='3' xmlns='jabber:iq:roster'><item jid='pep-test-wjebo4kg@localhost' subscription='to'/></query></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   111
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   112
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   113
	<presence to='pep-test-tqvqu_pv@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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   114
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   115
Juliet sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   116
	<presence type='subscribed' to='pep-test-wjebo4kg@localhost'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/></presence>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   117
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   118
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   119
	<iq type='set' id='{scansion:any}'><query ver='4' xmlns='jabber:iq:roster'><item jid='pep-test-wjebo4kg@localhost' subscription='both'/></query></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   120
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   121
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   122
	<presence to='pep-test-tqvqu_pv@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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   123
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   124
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   125
	<presence type='subscribed' from='pep-test-tqvqu_pv@localhost' to='pep-test-wjebo4kg@localhost'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='PDH7CGVPRERS2WUqBD18PHGEzaY=' node='http://code.matthewwild.co.uk/verse/'/></presence>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   126
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   127
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   128
	<iq type='set' id='{scansion:any}'><query ver='4' xmlns='jabber:iq:roster'><item jid='pep-test-tqvqu_pv@localhost' subscription='both'/></query></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   129
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   130
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   131
	<presence to='pep-test-wjebo4kg@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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   132
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   133
Juliet sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   134
	<iq type='result' id='fixme'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   135
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   136
Romeo sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   137
	<iq type='result' id='fixme'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   138
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   139
Romeo sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   140
	<iq type='result' id='fixme'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   141
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   142
Romeo sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   143
	<presence><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='m/sIsyfzKk8X1okZMtStR43nQQg=' node='http://code.matthewwild.co.uk/verse/'/></presence>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   144
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   145
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   146
	<iq type='get' id='disco' from='pep-test-wjebo4kg@localhost'><query node='http://code.matthewwild.co.uk/verse/#m/sIsyfzKk8X1okZMtStR43nQQg=' xmlns='http://jabber.org/protocol/disco#info'/></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   147
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   148
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   149
	<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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   150
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   151
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   152
	<iq type='get' id='disco' from='pep-test-tqvqu_pv@localhost'><query node='http://code.matthewwild.co.uk/verse/#m/sIsyfzKk8X1okZMtStR43nQQg=' xmlns='http://jabber.org/protocol/disco#info'/></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   153
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   154
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   155
	<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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   156
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   157
Romeo sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   158
	<presence><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' ver='IfQwbaaDB4LEP5tkGArEaB/3Y+s=' node='http://code.matthewwild.co.uk/verse/'/></presence>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   159
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   160
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   161
	<iq type='get' id='disco' from='pep-test-wjebo4kg@localhost'><query node='http://code.matthewwild.co.uk/verse/#IfQwbaaDB4LEP5tkGArEaB/3Y+s=' xmlns='http://jabber.org/protocol/disco#info'/></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   162
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   163
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   164
	<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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   165
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   166
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   167
	<iq type='get' id='disco' from='pep-test-tqvqu_pv@localhost'><query node='http://code.matthewwild.co.uk/verse/#IfQwbaaDB4LEP5tkGArEaB/3Y+s=' xmlns='http://jabber.org/protocol/disco#info'/></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   168
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   169
Romeo sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   170
	<iq type='result' id='disco' to='pep-test-wjebo4kg@localhost'><query xmlns='http://jabber.org/protocol/disco#info' node='http://code.matthewwild.co.uk/verse/#m/sIsyfzKk8X1okZMtStR43nQQg='/></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   171
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   172
Romeo sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   173
	<iq type='result' id='disco' to='pep-test-tqvqu_pv@localhost'><query xmlns='http://jabber.org/protocol/disco#info' node='http://code.matthewwild.co.uk/verse/#m/sIsyfzKk8X1okZMtStR43nQQg='/></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   174
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   175
Romeo sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   176
	<iq type='result' id='disco' to='pep-test-wjebo4kg@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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   177
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   178
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   179
	<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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   180
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   181
Juliet sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   182
	<iq type='result' id='fixme'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   183
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   184
Juliet sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   185
	<iq type='set' id='7'><pubsub xmlns='http://jabber.org/protocol/pubsub'><publish node='http://jabber.org/protocol/tune'><item id='current'><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></pubsub></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   186
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   187
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   188
	<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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   189
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   190
Juliet sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   191
	<iq type='set' id='8'><pubsub xmlns='http://jabber.org/protocol/pubsub'><publish node='http://jabber.org/protocol/mood'><item><mood xmlns='http://jabber.org/protocol/mood'><happy/></mood></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#access_model'><value>whitelist</value></field></x></publish-options></pubsub></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   192
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   193
Juliet receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   194
	<iq type='result' id='8'><pubsub xmlns='http://jabber.org/protocol/pubsub'><publish node='http://jabber.org/protocol/mood'><item id='{scansion:any}'/></publish></pubsub></iq>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   195
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   196
Juliet sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   197
	<iq type='result' id='{scansion:any}'/>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   198
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   199
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   200
	<message type='headline' from='pep-test-tqvqu_pv@localhost'><event xmlns='http://jabber.org/protocol/pubsub#event'><items node='http://jabber.org/protocol/tune'><item id='current'><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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   201
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   202
Romeo sends:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   203
	<iq type='result' id='disco' to='pep-test-tqvqu_pv@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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   204
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   205
Romeo receives:
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   206
	<message type='headline' from='pep-test-tqvqu_pv@localhost'><event xmlns='http://jabber.org/protocol/pubsub#event'><items node='http://jabber.org/protocol/tune'><item id='current'><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>
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   207
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   208
Juliet disconnects
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   209
69e1838a01c6 spec/scansion: Add pep_publish_subscribe (fixes #1222)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
   210
Romeo disconnects