[next] telepathy-mission-control: dispatch-before-connected test: simulate ServerTLSConnection
Simon McVittie
smcv at kemper.freedesktop.org
Fri Oct 4 06:00:39 PDT 2013
Module: telepathy-mission-control
Branch: next
Commit: 91ddc725a21e3e5c56d0010cc91fdd9cc3c92ddf
URL: http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=91ddc725a21e3e5c56d0010cc91fdd9cc3c92ddf
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Fri Sep 27 17:38:33 2013 +0100
dispatch-before-connected test: simulate ServerTLSConnection
We might have had some sort of draft in mind when we wrote this,
or these names might just be random strings. Let's be a bit closer
to what this test was designed for.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54879
Reviewed-by: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
---
.../dispatcher/dispatch-before-connected.py | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/tests/twisted/dispatcher/dispatch-before-connected.py b/tests/twisted/dispatcher/dispatch-before-connected.py
index 26cfa99..4d8d0db 100644
--- a/tests/twisted/dispatcher/dispatch-before-connected.py
+++ b/tests/twisted/dispatcher/dispatch-before-connected.py
@@ -29,13 +29,6 @@ from mctest import exec_test, SimulatedConnection, SimulatedClient, \
expect_client_setup
import constants as cs
-CHANNEL_TYPE_SERVER_VERIFICATION = \
- 'org.freedesktop.Telepathy.Channel.Type.ServerVerification.DRAFT'
-CHANNEL_IFACE_VERIFICATION = \
- 'org.freedesktop.Telepathy.Channel.Interface.Verification.DRAFT '
-CHANNEL_IFACE_IDENT_EXCHANGE = \
- 'org.freedesktop.Telepathy.Channel.Interface.IdentityExchange.DRAFT'
-
def test(q, bus, mc):
params = dbus.Dictionary({"account": "someone at example.com",
"password": "secrecy"}, signature='sv')
@@ -49,7 +42,7 @@ def test(q, bus, mc):
verification_filter = dbus.Dictionary({
cs.CHANNEL + '.TargetHandleType': 0,
- cs.CHANNEL + '.ChannelType': CHANNEL_TYPE_SERVER_VERIFICATION,
+ cs.CHANNEL + '.ChannelType': cs.CHANNEL_TYPE_SERVER_TLS_CONNECTION,
}, signature='sv')
verifier_bus = dbus.bus.BusConnection()
@@ -87,10 +80,7 @@ def test(q, bus, mc):
channel_properties[cs.CHANNEL + '.InitiatorID'] = ''
channel_properties[cs.CHANNEL + '.InitiatorHandle'] = 0
channel_properties[cs.CHANNEL + '.Requested'] = False
- channel_properties[cs.CHANNEL + '.Interfaces'] = dbus.Array([
- CHANNEL_IFACE_IDENT_EXCHANGE,
- CHANNEL_IFACE_VERIFICATION,
- cs.CHANNEL], signature='s')
+ channel_properties[cs.CHANNEL + '.Interfaces'] = dbus.Array([], signature='s')
chan = SimulatedChannel(conn, channel_properties)
chan.announce()
More information about the telepathy-commits
mailing list