summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2013-09-26Text tests: use the Messages interfaceSimon McVittie4-82/+65
This makes them more like the ones in 'next', which use the newly unified Text interface (whose API is mostly based on Messages). Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69767 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-25gabbletest: don't use GetStatus()Simon McVittie1-1/+1
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69767 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> [cherry-picked from next to master -smcv]
2013-09-25Use the "undrafted" version of MailNotificationSimon McVittie1-2/+2
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69468 Reviewed-by: Guillume Desmottes <guillaume.desmottes@collabora.co.uk> [cherry-picked from next to master, no changes -smcv]
2013-09-24exec-with-log.sh: add HAZE_TEST_BACKTRACE hookSimon McVittie1-0/+2
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=31723 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24tests: stop calling RequestChannelSimon McVittie2-8/+14
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24Remove unused function close_all_groups()Simon McVittie4-14/+3
This was the last reference to Handle_Type_Contact_List, Handle_Type_Contact_Group or Chan.T.ContactList outside constants.py. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24roster/remove-from-rp-subscribe.py: convert to Conn.I.ContactListSimon McVittie1-44/+12
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24roster/subscribe.py: convert to ContactList, ContactGroupsSimon McVittie1-41/+33
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24roster/publish.py: convert to ContactListSimon McVittie1-82/+74
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24roster/groups.py: convert to ContactGroupsSimon McVittie1-98/+93
As a side-effect, this adds proper test coverage for SetGroupMembers and SetContactGroups. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24initial-roster test: convert to ContactList, ContactGroupsSimon McVittie2-81/+52
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24Use inspect_contacts_sync instead of InspectHandlesSimon McVittie3-11/+9
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24Fix more uses of RequestHandlesSimon McVittie1-2/+2
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24tests: use more constants, reduce hard-coding of o.fd.TSimon McVittie5-128/+75
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24Don't test NewChannelSimon McVittie10-229/+82
Also 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. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24Use get_contact_handle_sync, get_contact_handles_syncSimon McVittie10-28/+12
Telepathy 1.0 won't have RequestHandles. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24sync gabbletest.py from GabbleSimon McVittie1-1/+1
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24sync servicetest.py from GabbleSimon McVittie1-5/+24
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-24sync constants.py from GabbleSimon McVittie1-30/+24
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-23simple-caps: stop relying on GetContactCapabilitiesSimon McVittie1-5/+1
0.99.1 doesn't have it. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69619 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-23Tests: replace GetSelfHandle calls with property-gettingSimon McVittie8-8/+11
sed expression: s/\.GetSelfHandle()/.Properties.Get(cs.CONN, "SelfHandle")/g adjusted by hand to add "import constants as cs" where needed. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69619 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-18protocol: implement get_avatar_details()Guillaume Desmottes1-0/+21
2013-09-18protocol: claim that we implement AvatarsGuillaume Desmottes2-0/+8
2013-09-18protocol: fix 'ConnectionInterfaces'Guillaume Desmottes1-0/+8
Return the set of interfaces actually supported for this specific protocol rather than claiming to support everything. https://bugs.freedesktop.org/show_bug.cgi?id=69466
2013-09-17Merge branch 'telepathy-haze-0.8'Simon McVittie2-2/+12
Conflicts: NEWS
2013-09-17Test unknown presencesSimon McVittie2-2/+12
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69474 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2013-09-17Remove StreamedMedia supportSimon McVittie2-40/+0
In Pidgin, it's only implemented for XMPP (for which we have Gabble), MSNP (which will disappear soon), and mxit (which I doubt anyone's actually tested). Empathy can't do StreamedMedia any more, only Call, and Telepathy 1.0 will only have Call. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69318 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-17Clean up test filestelepathy-haze-0.7.1Simon McVittie2-0/+7
2013-09-17Distribute gabbletestSimon McVittie1-0/+1
2013-09-17Distribute with-session-bus.shSimon McVittie1-1/+3
2013-09-12Run regression tests under the run-test.sh "driver"Guillaume Desmottes2-33/+58
https://bugs.freedesktop.org/show_bug.cgi?id=69269
2013-09-12move tests tools to tests/twisted/toolsGuillaume Desmottes8-35/+138
Other CMs store these files there. https://bugs.freedesktop.org/show_bug.cgi?id=69269
2013-09-12Import run-test.sh.in from Gabble masterGuillaume Desmottes2-0/+70
https://bugs.freedesktop.org/show_bug.cgi?id=69269
2013-06-25Avoid recent libpurple doing "clever" proxy discovery, etc.Simon McVittie1-0/+9
The regression tests are not a full desktop session, and don't have GSettings or other GNOME features. They also don't have KDE features, which libpurple also checks. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65290 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2013-04-12Test closing the request_password channelWill Thompson2-0/+44
2013-04-12Add sasl/telepathy-password.py from GabbleWill Thompson3-0/+190
This exercises the happy path of Stefan's patches to support purple_account_request_password().
2013-04-11Refresh and uncopypasta gabbletestWill Thompson24-876/+1129
hazetest now overrides what it needs to, and reuses the rest of gabbletest verbatim in a separate module. I had to add a couple of hooks which I'll commit to Gabble.
2012-05-07Set G_MESSAGES_DEBUG during testingSimon McVittie1-0/+2
The same as Gabble commit cbfa9d06.
2012-05-02caps test: do a simple test for media caps changesJonny Lamb1-1/+32
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-05-02twisted tests: add a config module for knowing whether media is enabledJonny Lamb1-1/+14
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-05-01tests: add simple test to ensure ContactCapabilities are workingJonny Lamb2-0/+75
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-11-21connect/fail.py: try an even more ludicrous portWill Thompson1-1/+1
This test fails on the buildbot, and I don't know why.
2011-11-21Mangle test name into connection parameters.Will Thompson1-1/+2
In Gabble, we push the name of the test being run into the connection parameters by abusing the fact that Gabble accepts a resource as part of the 'account' parameter, but overrides it with the value of the 'resource' parameter. Haze doesn't have a resource parameter, so we can't use that trickā€¦ so, instead, let's shove it into the file transfer proxy list parameter.
2011-07-08Tests: Don't assert that 'password' is required.Will Thompson1-1/+1
This was broken by 27d51779b804726e0f415459f2f3e0b786cb0361
2010-12-01Use the TpBaseContactListSimon McVittie4-21/+33
This requires some changes in the tests: * the actor that's assumed for some group changes now differs * anyone who sends us a publication request appears in the 'stored' list
2010-12-01Add close_all_groups() and use it to get rid of any stray groupsSimon McVittie4-3/+25
The group tests are sensitive to leftover groups that might exist in global libpurple state.
2010-12-01Add a 'stored' list (which just behaves like 'subscribe') and test itSimon McVittie3-23/+51
2010-11-19Implement ConnectionError.Will Thompson1-2/+13
This lets us expose the technical details of connection errors, which would have helped a bit with this ICQ crap.
2010-11-19Update hazetest from gabbletest!Will Thompson2-149/+448
Woo. I had to fix a few issues in gabbletest to make this work, which I am submitting upstream.
2010-11-18Update constants, namespaces, and servicetest from Gabble.Will Thompson3-57/+230
I tried to update gabbletest too, but it's changed in ways that break haze. So I've left that for now.