diff options
author | mathieui <mathieui@mathieui.net> | 2015-04-21 20:10:47 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-04-21 20:10:47 +0200 |
commit | b8d7b9520cec828d7b4113e95bbb6e97727a4243 (patch) | |
tree | bf814e6f6e58a905d4a829f7932e68524b3bf57c | |
parent | 0305ce66b7123c57e72c23492b2e31695117d9a2 (diff) | |
download | slixmpp-b8d7b9520cec828d7b4113e95bbb6e97727a4243.tar.gz slixmpp-b8d7b9520cec828d7b4113e95bbb6e97727a4243.tar.bz2 slixmpp-b8d7b9520cec828d7b4113e95bbb6e97727a4243.tar.xz slixmpp-b8d7b9520cec828d7b4113e95bbb6e97727a4243.zip |
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.
-rw-r--r-- | tests/test_stream_xep_0030.py | 4 | ||||
-rw-r--r-- | tests/test_stream_xep_0323.py | 6 | ||||
-rw-r--r-- | tests/test_stream_xep_0325.py | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_stream_xep_0030.py b/tests/test_stream_xep_0030.py index f85dfaea..de0bd414 100644 --- a/tests/test_stream_xep_0030.py +++ b/tests/test_stream_xep_0030.py @@ -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> diff --git a/tests/test_stream_xep_0323.py b/tests/test_stream_xep_0323.py index 1a25ec2a..f92c4553 100644 --- a/tests/test_stream_xep_0323.py +++ b/tests/test_stream_xep_0323.py @@ -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'> diff --git a/tests/test_stream_xep_0325.py b/tests/test_stream_xep_0325.py index 62c49e6b..d27ee5a7 100644 --- a/tests/test_stream_xep_0325.py +++ b/tests/test_stream_xep_0325.py @@ -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'> |