mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
bench: moved packets to separate files, put results in the main document
This commit is contained in:
parent
a9e8d94bdd
commit
e9f1368fc0
19 changed files with 166 additions and 459 deletions
3
bench/packets/activity.json
Normal file
3
bench/packets/activity.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
["activity",{"from":"hamlet@denmark.lit/snsclient"},{"verb":"post",
|
||||
"title":"to be or not to be ?","object":{"type":"status",
|
||||
"content":"to be or not to be ?","contentType":"text/plain"}}]
|
7
bench/packets/activity.psyc
Normal file
7
bench/packets/activity.psyc
Normal file
|
@ -0,0 +1,7 @@
|
|||
:_context psyc://denmark.lit/~hamlet#_follow
|
||||
|
||||
:_subject to be or not to be ?
|
||||
:_type_content text/plain
|
||||
_message
|
||||
to be or not to be ?
|
||||
|
|
27
bench/packets/activity.xml
Normal file
27
bench/packets/activity.xml
Normal file
|
@ -0,0 +1,27 @@
|
|||
<iq type='set'
|
||||
from='hamlet@denmark.lit/snsclient'
|
||||
to='hamlet@denmark.lit'
|
||||
id='osw1'>
|
||||
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
|
||||
<publish node='urn:xmpp:microblog:0'>
|
||||
<item>
|
||||
<entry xmlns="http://www.w3.org/2005/Atom"
|
||||
xmlns:activity="http://activitystrea.ms/spec/1.0/"
|
||||
xmlns:osw="http://onesocialweb.org/spec/1.0/">
|
||||
<title>to be or not to be ?</title>
|
||||
<activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
|
||||
<activity:object>
|
||||
<activity:object-type>http://onesocialweb.org/spec/1.0/object/status</activity:object-type>
|
||||
<content type="text/plain">to be or not to be ?</content>
|
||||
</activity:object>
|
||||
<osw:acl-rule>
|
||||
<osw:acl-action permission="http://onesocialweb.org/spec/1.0/acl/permission/grant">
|
||||
http://onesocialweb.org/spec/1.0/acl/action/view
|
||||
</osw:acl-action>
|
||||
<osw:acl-subject type="http://onesocialweb.org/spec/1.0/acl/subject/everyone"/>
|
||||
</osw:acl-rule>
|
||||
</entry>
|
||||
</item>
|
||||
</publish>
|
||||
</pubsub>
|
||||
</iq>
|
6
bench/packets/chat_msg.psyc
Normal file
6
bench/packets/chat_msg.psyc
Normal file
|
@ -0,0 +1,6 @@
|
|||
:_source psyc://example.com/~juliet
|
||||
:_target psyc://example.net/~romeo
|
||||
|
||||
_message_private
|
||||
Art thou not Romeo, and a Montague?
|
||||
|
|
8
bench/packets/chat_msg.xml
Normal file
8
bench/packets/chat_msg.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<message
|
||||
from='juliet@example.com/balcony'
|
||||
id='ktx72v49'
|
||||
to='romeo@example.net'
|
||||
type='chat'
|
||||
xml:lang='en'>
|
||||
<body>Art thou not Romeo, and a Montague?</body>
|
||||
</message>
|
13
bench/packets/json-unfriendly.xml
Normal file
13
bench/packets/json-unfriendly.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<message
|
||||
from='romeo@example.net/orchard'
|
||||
id='sl3nx51f'
|
||||
to='juliet@example.com/balcony'
|
||||
type='chat'
|
||||
xml:lang='en'>
|
||||
<body>"Neither, fair saint, if either thee dislike.", he said.
|
||||
And
|
||||
the
|
||||
rest
|
||||
is
|
||||
history.</body>
|
||||
</message>
|
1
bench/packets/presence.json
Normal file
1
bench/packets/presence.json
Normal file
|
@ -0,0 +1 @@
|
|||
["presence",{"from":"juliet@example.com/balcony","to":"benvolio@example.net"},{"show":"away"}]
|
5
bench/packets/presence.psyc
Normal file
5
bench/packets/presence.psyc
Normal file
|
@ -0,0 +1,5 @@
|
|||
:_context psyc://example.com/~juliet
|
||||
|
||||
=_degree_availability 4
|
||||
_notice_presence
|
||||
|
|
4
bench/packets/presence.xml
Normal file
4
bench/packets/presence.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<presence from='juliet@example.com/balcony'
|
||||
to='benvolio@example.net'>
|
||||
<show>away</show>
|
||||
</presence>
|
12
bench/packets/psyc-unfriendly.xml
Normal file
12
bench/packets/psyc-unfriendly.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<message
|
||||
from='juliet@example.com/balcony'
|
||||
id='c8xg3nf8'
|
||||
to='romeo@example.net'
|
||||
type='chat'
|
||||
xml:lang='en'>
|
||||
<subject>I implore you with a pointless
|
||||
newline in a header variable</subject>
|
||||
<body>Wherefore art thou, Romeo?
|
||||
|
|
||||
And for practicing purposes we added a PSYC packet delimiter.</body>
|
||||
</message>
|
2
bench/packets/user_profile.json
Normal file
2
bench/packets/user_profile.json
Normal file
|
@ -0,0 +1,2 @@
|
|||
["UserProfile",{"Name":"Silvio Berlusconi","JobTitle":"Premier","Country":"I","Address":
|
||||
{"Street":"Via del Colosseo, 1","PostalCode":"00100","City":"Roma"},"Page":"http://example.org"}]
|
10
bench/packets/user_profile.psyc
Normal file
10
bench/packets/user_profile.psyc
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
:_name Silvio Berlusconi
|
||||
:_title_job Premier
|
||||
:_country I
|
||||
:_address_street Via del Colosseo, 1
|
||||
:_address_code_postal 00100
|
||||
:_address_city Roma
|
||||
:_page http://example.org
|
||||
_profile_user
|
||||
|
|
11
bench/packets/user_profile.xml
Normal file
11
bench/packets/user_profile.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<UserProfile>
|
||||
<Name>Silvio Berlusconi</Name>
|
||||
<JobTitle>Premier</JobTitle>
|
||||
<Country>I</Country>
|
||||
<Address>
|
||||
<Street>Via del Colosseo, 1</Street>
|
||||
<PostalCode>00100</PostalCode>
|
||||
<City>Roma</City>
|
||||
</Address>
|
||||
<Page>http://example.org</Page>
|
||||
</UserProfile>
|
11
bench/packets/xml-unfriendly.xml
Normal file
11
bench/packets/xml-unfriendly.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<message
|
||||
from='juliet@example.com/balcony'
|
||||
id='z94nb37h'
|
||||
to='romeo@example.net'
|
||||
type='chat'
|
||||
xml:lang='en'>
|
||||
<body>Wherefore art thou, Romeo?</body>
|
||||
<body xml:lang='cs'>
|
||||
PročeŽ jsi ty, Romeo?
|
||||
</body>
|
||||
</message>
|
Loading…
Add table
Add a link
Reference in a new issue