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
3 changed files with 8 additions and 8 deletions
|
@ -75,7 +75,7 @@ class TestStreamDisco(SlixTest):
|
|||
self.xmpp['xep_0030'].static.add_node(node='testing')
|
||||
|
||||
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"
|
||||
node="testing" />
|
||||
</iq>
|
||||
|
@ -101,7 +101,7 @@ class TestStreamDisco(SlixTest):
|
|||
self.xmpp['xep_0030'].static.add_node(node='testing')
|
||||
|
||||
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"
|
||||
node="testing" />
|
||||
</iq>
|
||||
|
|
|
@ -582,7 +582,7 @@ class TestStreamSensorData(SlixTest):
|
|||
self.recv("""
|
||||
<iq type='get'
|
||||
from='master@clayster.com/amr'
|
||||
to='tester@localhost'
|
||||
to='tester@localhost/resource'
|
||||
id='disco1'>
|
||||
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
||||
</iq>
|
||||
|
@ -607,7 +607,7 @@ class TestStreamSensorData(SlixTest):
|
|||
self.recv("""
|
||||
<iq type='get'
|
||||
from='master@clayster.com/amr'
|
||||
to='tester@localhost'
|
||||
to='tester@localhost/resource'
|
||||
id='disco1'>
|
||||
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
||||
</iq>
|
||||
|
@ -615,7 +615,7 @@ class TestStreamSensorData(SlixTest):
|
|||
|
||||
self.send("""
|
||||
<iq type='result'
|
||||
from='tester@localhost'
|
||||
from='tester@localhost/resource'
|
||||
to='master@clayster.com/amr'
|
||||
id='disco1'>
|
||||
<query xmlns='http://jabber.org/protocol/disco#info'>
|
||||
|
|
|
@ -311,7 +311,7 @@ class TestStreamControl(SlixTest):
|
|||
self.recv("""
|
||||
<iq type='get'
|
||||
from='master@clayster.com/amr'
|
||||
to='tester@localhost'
|
||||
to='tester@localhost/resource'
|
||||
id='disco1'>
|
||||
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
||||
</iq>
|
||||
|
@ -336,7 +336,7 @@ class TestStreamControl(SlixTest):
|
|||
self.recv("""
|
||||
<iq type='get'
|
||||
from='master@clayster.com/amr'
|
||||
to='tester@localhost'
|
||||
to='tester@localhost/resource'
|
||||
id='disco1'>
|
||||
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
||||
</iq>
|
||||
|
@ -344,7 +344,7 @@ class TestStreamControl(SlixTest):
|
|||
|
||||
self.send("""
|
||||
<iq type='result'
|
||||
from='tester@localhost'
|
||||
from='tester@localhost/resource'
|
||||
to='master@clayster.com/amr'
|
||||
id='disco1'>
|
||||
<query xmlns='http://jabber.org/protocol/disco#info'>
|
||||
|
|
Loading…
Reference in a new issue