Fix some disco tests
The targeted JID was a bare JID, which is wrong since the XEP specifies that such disco requests are handled by the server.
This commit is contained in:
parent
0305ce66b7
commit
b8d7b9520c
@ -75,7 +75,7 @@ class TestStreamDisco(SlixTest):
|
|||||||
self.xmpp['xep_0030'].static.add_node(node='testing')
|
self.xmpp['xep_0030'].static.add_node(node='testing')
|
||||||
|
|
||||||
self.recv("""
|
self.recv("""
|
||||||
<iq to="tester@localhost" type="get" id="test">
|
<iq to="tester@localhost/resource" type="get" id="test">
|
||||||
<query xmlns="http://jabber.org/protocol/disco#info"
|
<query xmlns="http://jabber.org/protocol/disco#info"
|
||||||
node="testing" />
|
node="testing" />
|
||||||
</iq>
|
</iq>
|
||||||
@ -101,7 +101,7 @@ class TestStreamDisco(SlixTest):
|
|||||||
self.xmpp['xep_0030'].static.add_node(node='testing')
|
self.xmpp['xep_0030'].static.add_node(node='testing')
|
||||||
|
|
||||||
self.recv("""
|
self.recv("""
|
||||||
<iq to="tester@localhost" type="get" id="test">
|
<iq to="tester@localhost/resource" type="get" id="test">
|
||||||
<query xmlns="http://jabber.org/protocol/disco#items"
|
<query xmlns="http://jabber.org/protocol/disco#items"
|
||||||
node="testing" />
|
node="testing" />
|
||||||
</iq>
|
</iq>
|
||||||
|
@ -582,7 +582,7 @@ class TestStreamSensorData(SlixTest):
|
|||||||
self.recv("""
|
self.recv("""
|
||||||
<iq type='get'
|
<iq type='get'
|
||||||
from='master@clayster.com/amr'
|
from='master@clayster.com/amr'
|
||||||
to='tester@localhost'
|
to='tester@localhost/resource'
|
||||||
id='disco1'>
|
id='disco1'>
|
||||||
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
||||||
</iq>
|
</iq>
|
||||||
@ -607,7 +607,7 @@ class TestStreamSensorData(SlixTest):
|
|||||||
self.recv("""
|
self.recv("""
|
||||||
<iq type='get'
|
<iq type='get'
|
||||||
from='master@clayster.com/amr'
|
from='master@clayster.com/amr'
|
||||||
to='tester@localhost'
|
to='tester@localhost/resource'
|
||||||
id='disco1'>
|
id='disco1'>
|
||||||
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
||||||
</iq>
|
</iq>
|
||||||
@ -615,7 +615,7 @@ class TestStreamSensorData(SlixTest):
|
|||||||
|
|
||||||
self.send("""
|
self.send("""
|
||||||
<iq type='result'
|
<iq type='result'
|
||||||
from='tester@localhost'
|
from='tester@localhost/resource'
|
||||||
to='master@clayster.com/amr'
|
to='master@clayster.com/amr'
|
||||||
id='disco1'>
|
id='disco1'>
|
||||||
<query xmlns='http://jabber.org/protocol/disco#info'>
|
<query xmlns='http://jabber.org/protocol/disco#info'>
|
||||||
|
@ -311,7 +311,7 @@ class TestStreamControl(SlixTest):
|
|||||||
self.recv("""
|
self.recv("""
|
||||||
<iq type='get'
|
<iq type='get'
|
||||||
from='master@clayster.com/amr'
|
from='master@clayster.com/amr'
|
||||||
to='tester@localhost'
|
to='tester@localhost/resource'
|
||||||
id='disco1'>
|
id='disco1'>
|
||||||
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
||||||
</iq>
|
</iq>
|
||||||
@ -336,7 +336,7 @@ class TestStreamControl(SlixTest):
|
|||||||
self.recv("""
|
self.recv("""
|
||||||
<iq type='get'
|
<iq type='get'
|
||||||
from='master@clayster.com/amr'
|
from='master@clayster.com/amr'
|
||||||
to='tester@localhost'
|
to='tester@localhost/resource'
|
||||||
id='disco1'>
|
id='disco1'>
|
||||||
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
||||||
</iq>
|
</iq>
|
||||||
@ -344,7 +344,7 @@ class TestStreamControl(SlixTest):
|
|||||||
|
|
||||||
self.send("""
|
self.send("""
|
||||||
<iq type='result'
|
<iq type='result'
|
||||||
from='tester@localhost'
|
from='tester@localhost/resource'
|
||||||
to='master@clayster.com/amr'
|
to='master@clayster.com/amr'
|
||||||
id='disco1'>
|
id='disco1'>
|
||||||
<query xmlns='http://jabber.org/protocol/disco#info'>
|
<query xmlns='http://jabber.org/protocol/disco#info'>
|
||||||
|
Loading…
Reference in New Issue
Block a user