Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
biboumi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
99
Issues
99
List
Boards
Labels
Service Desk
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
louiz’
biboumi
Commits
44f35a25
Commit
44f35a25
authored
Oct 12, 2016
by
louiz’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e2e: test the private and no-copy thingy
parent
c3a7cd36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
tests/end_to_end/__main__.py
tests/end_to_end/__main__.py
+6
-2
No files found.
tests/end_to_end/__main__.py
View file @
44f35a25
...
...
@@ -121,7 +121,9 @@ def match(stanza, xpath):
'delay'
:
'urn:xmpp:delay'
,
'forward'
:
'urn:xmpp:forward:0'
,
'client'
:
'jabber:client'
,
'rsm'
:
'http://jabber.org/protocol/rsm'
})
'rsm'
:
'http://jabber.org/protocol/rsm'
,
'carbon'
:
'urn:xmpp:carbons:2'
,
'hints'
:
'urn:xmpp:hints'
})
return
matched
...
...
@@ -691,7 +693,9 @@ if __name__ == '__main__':
# That second user sends a private message to the first one
partial
(
send_stanza
,
"<message from='{jid_two}/{resource_one}' to='#foo%{irc_server_one}/{nick_one}' type='chat'><body>RELLO</body></message>"
),
# Message is received with a server-wide JID, by the two resources behind nick_one
partial
(
expect_stanza
,
"/message[@from='{lower_nick_two}%{irc_server_one}'][@to='{jid_one}/{resource_one}'][@type='chat']/body[text()='RELLO']"
),
partial
(
expect_stanza
,
(
"/message[@from='{lower_nick_two}%{irc_server_one}'][@to='{jid_one}/{resource_one}'][@type='chat']/body[text()='RELLO']"
,
"/message/hints:no-copy"
,
"/message/carbon:private"
)),
partial
(
expect_stanza
,
"/message[@from='{lower_nick_two}%{irc_server_one}'][@to='{jid_one}/{resource_two}'][@type='chat']/body[text()='RELLO']"
),
# One resource leaves the server entirely.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment