[Pkg-telepathy-commits] [telepathy-mission-control-6] 40/280: dispatch-before-connected test: simulate ServerTLSConnection

Simon McVittie smcv at debian.org
Thu Mar 27 20:07:03 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository telepathy-mission-control-6.

commit 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>
---
 tests/twisted/dispatcher/dispatch-before-connected.py | 14 ++------------
 1 file 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()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/telepathy-mission-control-6.git



More information about the Pkg-telepathy-commits mailing list