mod_mix: Add stubbed test
This commit is contained in:
parent
e9c31280a6
commit
02748a5ec4
99
mod_mix/tests/mix.scs
Normal file
99
mod_mix/tests/mix.scs
Normal file
@ -0,0 +1,99 @@
|
||||
# MIX test suite for creating, joining and deleting a channel
|
||||
[Client] Romeo
|
||||
jid: testuser1@test.polynom.me
|
||||
password: abc123
|
||||
connect_host: 244.1.0.2
|
||||
connect_port: 5222
|
||||
|
||||
---------
|
||||
|
||||
Romeo connects
|
||||
|
||||
# Create a channel
|
||||
Romeo sends:
|
||||
<iq to='mix.polynom.me' type='set' id='step-create'>
|
||||
<create channel='coven' xmlns='urn:xmpp:mix:core:1'/>
|
||||
</iq>
|
||||
|
||||
Romeo receives:
|
||||
<iq from='mix.polynom.me' type='result' id='step-create'>
|
||||
<create channel='coven' xmlns='urn:xmpp:mix:core:1'/>
|
||||
</iq>
|
||||
|
||||
# Join the channel without assist of MIX-PAM
|
||||
Romeo sends:
|
||||
<iq type='set' to='coven@mix.polynom.me' id='step-join'>
|
||||
<join xmlns='urn:xmpp:mix:core:1'>
|
||||
<subscribe node='urn:xmpp:mix:nodes:messages'/>
|
||||
<subscribe node='urn:xmpp:mix:nodes:presence'/>
|
||||
<subscribe node='urn:xmpp:mix:nodes:participants'/>
|
||||
<subscribe node='urn:xmpp:mix:nodes:info'/>
|
||||
<nick>third witch</nick>
|
||||
</join>
|
||||
</iq>
|
||||
|
||||
# Since we only implement MIX-CORE, only :messages, :participants and
|
||||
# :info should be returned
|
||||
Romeo receives:
|
||||
<iq type='result' from='coven@mix.polynom.me' id='step-join'>
|
||||
<join xmlns='urn:xmpp:mix:core:1' id='{scansion:any}'>
|
||||
<subscribe node='urn:xmpp:mix:nodes:messages'/>
|
||||
<subscribe node='urn:xmpp:mix:nodes:participants'/>
|
||||
<subscribe node='urn:xmpp:mix:nodes:info'/>
|
||||
<nick>third witch</nick>
|
||||
</join>
|
||||
</iq>
|
||||
|
||||
# Change the nickname
|
||||
Romeo sends:
|
||||
<iq type='set' to='coven@mix.polynom.me' id='step-nick'>
|
||||
<setnick xmlns='urn:xmpp:mix:core:1'>
|
||||
<nick>THE third witch</nick>
|
||||
</setnick>
|
||||
</iq>
|
||||
|
||||
Romeo receives:
|
||||
<iq type='result' from='coven@mix.polynom.me' id='step-nick'>
|
||||
<setnick xmlns='urn:xmpp:mix:core:1'>
|
||||
<nick>THE third witch</nick>
|
||||
</setnick>
|
||||
</iq>
|
||||
|
||||
# Attempt to join a second time
|
||||
Romeo sends:
|
||||
<iq type='set' to='coven@mix.polynom.me' id='step-erroneous-join'>
|
||||
<join xmlns='urn:xmpp:mix:core:1'>
|
||||
<subscribe node='urn:xmpp:mix:nodes:messages'/>
|
||||
<subscribe node='urn:xmpp:mix:nodes:presence'/>
|
||||
<subscribe node='urn:xmpp:mix:nodes:participants'/>
|
||||
<subscribe node='urn:xmpp:mix:nodes:info'/>
|
||||
<nick>THE third witch</nick>
|
||||
</join>
|
||||
</iq>
|
||||
|
||||
Romeo receives:
|
||||
<iq type='error' from='coven@mix.polynom.me' id='step-erroneous-join'>
|
||||
<error type='cancel'>
|
||||
<conflict xmlns='urn:ietf:params:xml:ns:xmpp-stanzas' />
|
||||
</error>
|
||||
</iq>
|
||||
|
||||
# Leave the channel without assist of MIX-PAM
|
||||
Romeo sends:
|
||||
<iq type='set' to='coven@mix.polynom.me' id='step-leave'>
|
||||
<leave xmlns='urn:xmpp:mix:core:1'/>
|
||||
</iq>
|
||||
|
||||
Romeo receives:
|
||||
<iq type='result' from='coven@mix.polynom.me' id='step-leave'>
|
||||
<leave xmlns='urn:xmpp:mix:core:1'/>
|
||||
</iq>
|
||||
|
||||
# Destroy the newly created channel
|
||||
Romeo sends:
|
||||
<iq to='mix.polynom.me' type='set' id='step-destroy'>
|
||||
<destroy channel='coven' xmlns='urn:xmpp:mix:core:1'/>
|
||||
</iq>
|
||||
|
||||
Romeo receives:
|
||||
<iq from='mix.polynom.me' type='result' id='step-destroy' />
|
Loading…
Reference in New Issue
Block a user