Bug 70078

Summary: Gabble: pre next clean up
Product: Telepathy Reporter: Guillaume Desmottes <guillaume.desmottes>
Component: gabbleAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: enhancement    
Priority: medium Keywords: patch
Version: unspecified   
Hardware: Other   
OS: All   
URL: http://cgit.collabora.com/git/user/cassidy/telepathy-gabble/log/?h=pre-next
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 70077    
Attachments: stop using RequestHandles() for contacts
remove roster/ensure.py
stop using RequestHandles() to create room channel
join_muc_and_check: stop returning the muc handle
tube tests: make sure to catch the right MUC presence stanza
join_muc: stop returning the muc handle
remove rostertest.py
remove request-group-{after,before}-roster.py
test-roster-subscribe: stop testing old API
stop using NewChannel signal in tests
s/NUM_TP/TP_NUM
Stop using TpTubeType enum

Description Guillaume Desmottes 2013-10-03 14:12:53 UTC
.
Comment 1 Guillaume Desmottes 2013-10-03 14:15:06 UTC
Created attachment 87034 [details] [review]
stop using RequestHandles() for contacts
Comment 2 Guillaume Desmottes 2013-10-03 14:15:17 UTC
Created attachment 87035 [details] [review]
remove roster/ensure.py
Comment 3 Guillaume Desmottes 2013-10-03 14:15:36 UTC
Created attachment 87036 [details] [review]
stop using RequestHandles() to create room channel
Comment 4 Guillaume Desmottes 2013-10-03 14:15:49 UTC
Created attachment 87037 [details] [review]
join_muc_and_check: stop returning the muc handle
Comment 5 Guillaume Desmottes 2013-10-03 14:16:03 UTC
Created attachment 87038 [details] [review]
tube tests: make sure to catch the right MUC presence stanza
Comment 6 Guillaume Desmottes 2013-10-03 14:16:19 UTC
Created attachment 87039 [details] [review]
join_muc: stop returning the muc handle
Comment 7 Guillaume Desmottes 2013-10-03 14:16:31 UTC
Created attachment 87040 [details] [review]
remove rostertest.py
Comment 8 Guillaume Desmottes 2013-10-03 14:16:42 UTC
Created attachment 87041 [details] [review]
remove request-group-{after,before}-roster.py
Comment 9 Guillaume Desmottes 2013-10-03 14:18:10 UTC
With those patches, tests stop using RequestHandles().

They can already be reviewed/merged (master and/or next); I'll continue doing more cleaning.
Comment 10 Simon McVittie 2013-10-03 15:41:07 UTC
looking
Comment 11 Simon McVittie 2013-10-03 15:45:49 UTC
all good so far
Comment 12 Guillaume Desmottes 2013-10-04 09:40:33 UTC
Everything ok for master?
Comment 13 Simon McVittie 2013-10-04 10:39:11 UTC
(In reply to comment #12)
> Everything ok for master?

Everything I've seen here is fine for master, yes.
Comment 14 Guillaume Desmottes 2013-10-04 10:59:38 UTC
Everything merged to master. I'll keep this bug open.
Comment 15 Guillaume Desmottes 2013-10-04 12:37:22 UTC
Created attachment 87107 [details] [review]
test-roster-subscribe: stop testing old API
Comment 16 Guillaume Desmottes 2013-10-04 12:37:37 UTC
Created attachment 87108 [details] [review]
stop using NewChannel signal in tests
Comment 17 Guillaume Desmottes 2013-10-04 13:28:42 UTC
Created attachment 87111 [details] [review]
s/NUM_TP/TP_NUM
Comment 18 Guillaume Desmottes 2013-10-04 13:28:55 UTC
Created attachment 87112 [details] [review]
Stop using TpTubeType enum
Comment 19 Simon McVittie 2013-10-04 14:35:42 UTC
Comment on attachment 87107 [details] [review]
test-roster-subscribe: stop testing old API

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

Possibly wrong, but not a regression:

::: tests/twisted/roster/test-roster-subscribe.py
@@ +19,3 @@
>  
>  def test_modern_reject(q, bus, conn, stream):
> +    test(q, bus, conn, stream, 'reject')

It looks as though this should maybe have said (... stream, True, False, 'reject')? Does it still pass if you change it to  (... stream, False, 'reject')?
Comment 20 Guillaume Desmottes 2013-10-04 14:51:31 UTC
(In reply to comment #19)
> Comment on attachment 87107 [details] [review] [review]
> test-roster-subscribe: stop testing old API
> 
> Review of attachment 87107 [details] [review] [review]:
> -----------------------------------------------------------------
> 
> Possibly wrong, but not a regression:
> 
> ::: tests/twisted/roster/test-roster-subscribe.py
> @@ +19,3 @@
> >  
> >  def test_modern_reject(q, bus, conn, stream):
> > +    test(q, bus, conn, stream, 'reject')
> 
> It looks as though this should maybe have said (... stream, True, False,
> 'reject')? Does it still pass if you change it to  (... stream, False,
> 'reject')?

It does.
But changing:

def test_modern_revoke(q, bus, conn, stream):
-    test(q, bus, conn, stream, 'revoke')
+    test(q, bus, conn, stream, False, 'revoke')

doesn't pass.
Comment 21 Simon McVittie 2013-10-04 15:17:34 UTC
(In reply to comment #20)
> It does.

Please do, then.

> But changing:
> 
> def test_modern_revoke(q, bus, conn, stream):
> -    test(q, bus, conn, stream, 'revoke')
> +    test(q, bus, conn, stream, False, 'revoke')
> 
> doesn't pass.

Clone a bug, move on?
Comment 22 Guillaume Desmottes 2013-10-04 15:38:02 UTC
(In reply to comment #21)
> (In reply to comment #20)
> > It does.
> 
> Please do, then.
> 
> > But changing:
> > 
> > def test_modern_revoke(q, bus, conn, stream):
> > -    test(q, bus, conn, stream, 'revoke')
> > +    test(q, bus, conn, stream, False, 'revoke')
> > 
> > doesn't pass.
> 
> Clone a bug, move on?

Opened bug #70139

Patches merged to master.
Comment 23 Guillaume Desmottes 2013-10-10 21:15:42 UTC
More patches preparing the 'next' branch but we can already merged to master:
http://cgit.collabora.com/git/user/cassidy/telepathy-gabble/log/?h=pre-next
Comment 24 Guillaume Desmottes 2013-10-11 21:58:53 UTC
Merged to master.

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.