Bug 49389 - Contact list tests are disabled
Summary: Contact list tests are disabled
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: haze (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Simon McVittie
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords: patch
: 69433 (view as bug list)
Depends on:
Blocks: 69431
  Show dependency treegraph
 
Reported: 2012-05-02 08:36 UTC by Jonny Lamb
Modified: 2013-09-24 11:14 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
01/16] sync constants.py from Gabble (5.90 KB, patch)
2013-09-23 15:13 UTC, Simon McVittie
Details | Splinter Review
02/16] sync servicetest.py from Gabble (2.44 KB, patch)
2013-09-23 15:13 UTC, Simon McVittie
Details | Splinter Review
03/16] sync gabbletest.py from Gabble (877 bytes, patch)
2013-09-23 15:13 UTC, Simon McVittie
Details | Splinter Review
04/16] Use get_contact_handle_sync, get_contact_handles_sync (7.66 KB, patch)
2013-09-23 15:13 UTC, Simon McVittie
Details | Splinter Review
05/16] Don't test NewChannel (22.92 KB, patch)
2013-09-23 15:14 UTC, Simon McVittie
Details | Splinter Review
06/16] tests: use more constants, reduce hard-coding of o.fd.T (19.15 KB, patch)
2013-09-23 15:14 UTC, Simon McVittie
Details | Splinter Review
07/16] Fix more uses of RequestHandles (1.36 KB, patch)
2013-09-23 15:14 UTC, Simon McVittie
Details | Splinter Review
08/16] Use inspect_contacts_sync instead of InspectHandles (5.26 KB, patch)
2013-09-23 15:14 UTC, Simon McVittie
Details | Splinter Review
09/16] initial-roster test: convert to ContactList, ContactGroups (7.84 KB, patch)
2013-09-23 15:14 UTC, Simon McVittie
Details | Splinter Review
10/16] haze_contact_list_set_contact_groups_async: fix sense of test (860 bytes, patch)
2013-09-23 15:15 UTC, Simon McVittie
Details | Splinter Review
11/16] roster/groups.py: convert to ContactGroups (13.56 KB, patch)
2013-09-23 15:15 UTC, Simon McVittie
Details | Splinter Review
12/16] roster/publish.py: convert to ContactList (10.26 KB, patch)
2013-09-23 15:15 UTC, Simon McVittie
Details | Splinter Review
13/16] roster/subscribe.py: convert to ContactList, ContactGroups (5.98 KB, patch)
2013-09-23 15:16 UTC, Simon McVittie
Details | Splinter Review
14/16] roster/remove-from-rp-subscribe.py: convert to Conn.I.ContactList (4.14 KB, patch)
2013-09-23 15:16 UTC, Simon McVittie
Details | Splinter Review
15/16] Remove unused function close_all_groups() (3.07 KB, patch)
2013-09-23 15:16 UTC, Simon McVittie
Details | Splinter Review
16/16] tests: stop calling RequestChannel (3.01 KB, patch)
2013-09-23 15:16 UTC, Simon McVittie
Details | Splinter Review

Description Jonny Lamb 2012-05-02 08:36:21 UTC
I disabled contact list tests when porting to 1.0 because they all still used contact list channels and I couldn't be bothered updating them at the time.

haze stole its tests from gabble. They might already be updated in gabble. Either way, we should reinstate the tests at some point.
Comment 1 Simon McVittie 2013-09-17 18:01:22 UTC
*** Bug 69433 has been marked as a duplicate of this bug. ***
Comment 2 Simon McVittie 2013-09-23 15:13:05 UTC
Created attachment 86380 [details] [review]
01/16] sync constants.py from Gabble
Comment 3 Simon McVittie 2013-09-23 15:13:15 UTC
Created attachment 86381 [details] [review]
02/16] sync servicetest.py from Gabble
Comment 4 Simon McVittie 2013-09-23 15:13:25 UTC
Created attachment 86382 [details] [review]
03/16] sync gabbletest.py from Gabble
Comment 5 Simon McVittie 2013-09-23 15:13:44 UTC
Created attachment 86383 [details] [review]
04/16] Use get_contact_handle_sync, get_contact_handles_sync

Telepathy 1.0 won't have RequestHandles.
Comment 6 Simon McVittie 2013-09-23 15:14:00 UTC
Created attachment 86384 [details] [review]
05/16] Don't test NewChannel

lso use assertEquals(), etc., on the lines I'm touching anyway.

Just remove initiate.py: the whole point of that test is to exercise
an obsolete API. The modern form of the initiation part is tested by
initiate-requestotron.py and the text bits are tested by test-text.py.
Comment 7 Simon McVittie 2013-09-23 15:14:12 UTC
Created attachment 86385 [details] [review]
06/16] tests: use more constants, reduce hard-coding of o.fd.T
Comment 8 Simon McVittie 2013-09-23 15:14:25 UTC
Created attachment 86386 [details] [review]
07/16] Fix more uses of RequestHandles
Comment 9 Simon McVittie 2013-09-23 15:14:38 UTC
Created attachment 86387 [details] [review]
08/16] Use inspect_contacts_sync instead of InspectHandles
Comment 10 Simon McVittie 2013-09-23 15:14:50 UTC
Created attachment 86388 [details] [review]
09/16] initial-roster test: convert to ContactList,  ContactGroups
Comment 11 Simon McVittie 2013-09-23 15:15:07 UTC
Created attachment 86389 [details] [review]
10/16] haze_contact_list_set_contact_groups_async: fix sense  of test

We want to remove the buddy from every group *not* listed in the
argument.
Comment 12 Simon McVittie 2013-09-23 15:15:23 UTC
Created attachment 86390 [details] [review]
11/16] roster/groups.py: convert to ContactGroups

As a side-effect, this adds proper test coverage for SetGroupMembers
and SetContactGroups.
Comment 13 Simon McVittie 2013-09-23 15:15:36 UTC
Created attachment 86391 [details] [review]
12/16] roster/publish.py: convert to ContactList
Comment 14 Simon McVittie 2013-09-23 15:16:11 UTC
Created attachment 86392 [details] [review]
13/16] roster/subscribe.py: convert to ContactList,  ContactGroups
Comment 15 Simon McVittie 2013-09-23 15:16:25 UTC
Created attachment 86393 [details] [review]
14/16] roster/remove-from-rp-subscribe.py: convert to  Conn.I.ContactList
Comment 16 Simon McVittie 2013-09-23 15:16:36 UTC
Created attachment 86394 [details] [review]
15/16] Remove unused function close_all_groups()
Comment 17 Simon McVittie 2013-09-23 15:16:54 UTC
Created attachment 86395 [details] [review]
16/16] tests: stop calling RequestChannel
Comment 18 Guillaume Desmottes 2013-09-24 08:45:22 UTC
Comment on attachment 86380 [details] [review]
01/16] sync constants.py from Gabble

Review of attachment 86380 [details] [review]:
-----------------------------------------------------------------

++
Comment 19 Guillaume Desmottes 2013-09-24 08:45:42 UTC
Comment on attachment 86381 [details] [review]
02/16] sync servicetest.py from Gabble

Review of attachment 86381 [details] [review]:
-----------------------------------------------------------------

++
Comment 20 Guillaume Desmottes 2013-09-24 08:46:03 UTC
Comment on attachment 86382 [details] [review]
03/16] sync gabbletest.py from Gabble

Review of attachment 86382 [details] [review]:
-----------------------------------------------------------------

++
Comment 21 Guillaume Desmottes 2013-09-24 08:46:46 UTC
Comment on attachment 86383 [details] [review]
04/16] Use get_contact_handle_sync, get_contact_handles_sync

Review of attachment 86383 [details] [review]:
-----------------------------------------------------------------

++
Comment 22 Guillaume Desmottes 2013-09-24 08:47:37 UTC
Comment on attachment 86384 [details] [review]
05/16] Don't test NewChannel

Review of attachment 86384 [details] [review]:
-----------------------------------------------------------------

++
Comment 23 Guillaume Desmottes 2013-09-24 08:48:11 UTC
Comment on attachment 86385 [details] [review]
06/16] tests: use more constants, reduce hard-coding of o.fd.T

Review of attachment 86385 [details] [review]:
-----------------------------------------------------------------

++
Comment 24 Guillaume Desmottes 2013-09-24 08:48:28 UTC
Comment on attachment 86386 [details] [review]
07/16] Fix more uses of RequestHandles

Review of attachment 86386 [details] [review]:
-----------------------------------------------------------------

++
Comment 25 Guillaume Desmottes 2013-09-24 08:48:45 UTC
Comment on attachment 86387 [details] [review]
08/16] Use inspect_contacts_sync instead of InspectHandles

Review of attachment 86387 [details] [review]:
-----------------------------------------------------------------

++
Comment 26 Guillaume Desmottes 2013-09-24 08:49:41 UTC
Comment on attachment 86388 [details] [review]
09/16] initial-roster test: convert to ContactList,  ContactGroups

Review of attachment 86388 [details] [review]:
-----------------------------------------------------------------

++

::: tests/twisted/constants.py
@@ +188,5 @@
>  ATTR_CONTACT_CAPABILITIES = CONN_IFACE_CONTACT_CAPS + '/capabilities'
>  ATTR_PRESENCE = CONN_IFACE_SIMPLE_PRESENCE + '/presence'
> +ATTR_SUBSCRIBE = CONN_IFACE_CONTACT_LIST + '/subscribe'
> +ATTR_PUBLISH = CONN_IFACE_CONTACT_LIST + '/publish'
> +ATTR_GROUPS = CONN_IFACE_CONTACT_GROUPS + '/groups'

Did you add those to Gabble?
Comment 27 Guillaume Desmottes 2013-09-24 08:50:10 UTC
Comment on attachment 86389 [details] [review]
10/16] haze_contact_list_set_contact_groups_async: fix sense  of test

Review of attachment 86389 [details] [review]:
-----------------------------------------------------------------

++
Comment 28 Guillaume Desmottes 2013-09-24 08:50:50 UTC
Comment on attachment 86390 [details] [review]
11/16] roster/groups.py: convert to ContactGroups

Review of attachment 86390 [details] [review]:
-----------------------------------------------------------------

++
Comment 29 Guillaume Desmottes 2013-09-24 08:52:17 UTC
Comment on attachment 86391 [details] [review]
12/16] roster/publish.py: convert to ContactList

Review of attachment 86391 [details] [review]:
-----------------------------------------------------------------

++
Comment 30 Guillaume Desmottes 2013-09-24 08:53:09 UTC
Comment on attachment 86392 [details] [review]
13/16] roster/subscribe.py: convert to ContactList,  ContactGroups

Review of attachment 86392 [details] [review]:
-----------------------------------------------------------------

++
Comment 31 Guillaume Desmottes 2013-09-24 08:53:40 UTC
Comment on attachment 86393 [details] [review]
14/16] roster/remove-from-rp-subscribe.py: convert to  Conn.I.ContactList

Review of attachment 86393 [details] [review]:
-----------------------------------------------------------------

++
Comment 32 Guillaume Desmottes 2013-09-24 08:54:00 UTC
Comment on attachment 86394 [details] [review]
15/16] Remove unused function close_all_groups()

Review of attachment 86394 [details] [review]:
-----------------------------------------------------------------

++
Comment 33 Guillaume Desmottes 2013-09-24 08:54:16 UTC
Comment on attachment 86395 [details] [review]
16/16] tests: stop calling RequestChannel

Review of attachment 86395 [details] [review]:
-----------------------------------------------------------------

++
Comment 34 Simon McVittie 2013-09-24 10:49:05 UTC
(In reply to comment #26)
> ::: tests/twisted/constants.py
> @@ +188,5 @@
> >  ATTR_CONTACT_CAPABILITIES = CONN_IFACE_CONTACT_CAPS + '/capabilities'
> >  ATTR_PRESENCE = CONN_IFACE_SIMPLE_PRESENCE + '/presence'
> > +ATTR_SUBSCRIBE = CONN_IFACE_CONTACT_LIST + '/subscribe'
> > +ATTR_PUBLISH = CONN_IFACE_CONTACT_LIST + '/publish'
> > +ATTR_GROUPS = CONN_IFACE_CONTACT_GROUPS + '/groups'
> 
> Did you add those to Gabble?

Not yet, but I will.
Comment 35 Simon McVittie 2013-09-24 11:10:03 UTC
(In reply to comment #27)
> 10/16] haze_contact_list_set_contact_groups_async: fix sense  of test

Fixed in git for 0.7.2 (or 0.8.0)
Comment 36 Simon McVittie 2013-09-24 11:14:19 UTC
Everything else fixed in git for 0.9.0.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.