Software /
code /
prosody
Comparison
spec/scansion/muc_nickname_robotface.scs @ 11411:f1fe37916501
MUC: Add robot face test
See 6e051bfca12d
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 02 Mar 2021 13:52:19 +0100 |
comparison
equal
deleted
inserted
replaced
11410:2ea70d291429 | 11411:f1fe37916501 |
---|---|
1 # MUC: Prevent nicknames failing strict resourceprep | |
2 | |
3 [Client] Romeo | |
4 jid: user@localhost | |
5 password: password | |
6 | |
7 [Client] Roboteo | |
8 jid: bot@localhost | |
9 password: password | |
10 | |
11 ----- | |
12 | |
13 Romeo connects | |
14 | |
15 Romeo sends: | |
16 <presence to="nobots@conference.localhost/Romeo"> | |
17 <x xmlns="http://jabber.org/protocol/muc"/> | |
18 </presence> | |
19 | |
20 Romeo receives: | |
21 <presence from='nobots@conference.localhost/Romeo'> | |
22 <x xmlns='http://jabber.org/protocol/muc#user'> | |
23 <status code='201'/> | |
24 <item jid="${Romeo's full JID}" affiliation='owner' role='moderator'/> | |
25 <status code='110'/> | |
26 </x> | |
27 </presence> | |
28 | |
29 Romeo receives: | |
30 <message type='groupchat' from='nobots@conference.localhost'><subject/></message> | |
31 | |
32 Roboteo connects | |
33 | |
34 Roboteo sends: | |
35 <presence to="nobots@conference.localhost/🤖️"> | |
36 <x xmlns="http://jabber.org/protocol/muc"/> | |
37 </presence> | |
38 | |
39 Roboteo receives: | |
40 <presence type='error' from='nobots@conference.localhost/🤖'> | |
41 <error by='nobots@conference.localhost' type='modify'> | |
42 <jid-malformed xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> | |
43 <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Nickname must pass strict validation</text> | |
44 </error> | |
45 </presence> | |
46 |