-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tests for subscription authorisation requests. Fixes #2.
- Loading branch information
1 parent
e4df8de
commit 9b6f0ef
Showing
3 changed files
with
143 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<message to='juliet@example.net' from='pubsub.shakespeare.lit' id='1'> | ||
<x xmlns='jabber:x:data' type='form'> | ||
<title>Subscription request</title> | ||
<instructions>Ok or cancel</instructions> | ||
<field var='FORM_TYPE' type='hidden'> | ||
<value>http://jabber.org/protocol/pubsub#subscribe_authorization</value> | ||
</field> | ||
<field var='pubsub#node' type='text-single' label='Node'> | ||
<value>twelfth night</value> | ||
</field> | ||
<field var='pubsub#subscriber_jid' | ||
type='jid-single' | ||
label='Subscriber Address'> | ||
<value>romeo@example.com</value> | ||
</field> | ||
<field var='pubsub#allow' type='boolean' | ||
label='Allow?'> | ||
<value>false</value> | ||
</field> | ||
</x> | ||
</message> |