summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2013-06-11Add handle-name to RoomList propertiesXavier Claessens1-1/+1
Fixes fdo#65614
2013-04-30Add tp-glib suppressions fileWill Thompson1-0/+390
Without this, IDLE_TEST_VALGRIND doesn't work.
2013-04-30Connection: cancel connect_async when Disconnect() is calledWill Thompson2-0/+32
2013-04-30Add (failing?) testsWill Thompson3-0/+58
2013-04-28Don't special-case tls handling in testsSjoerd Simons4-2/+38
Don't let the TLS tests accept errors that wouldn't be accepted when idle runs normally, instead implement minimal ServerTLSConnection in the test which need it and add a minimal test for rejecting certificates.
2013-04-24IdleServerConnection: check certificates properly, except in the testsSimon McVittie1-0/+1
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=63810 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-04-24messages/invalid-utf8.py: amend test-case to work under GLib 2.36Simon McVittie1-9/+20
Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-04-24Include config.h in each source fileSimon McVittie3-0/+6
Among other effects, this makes GLIB_VERSION_MIN_REQUIRED effective. Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-04-22with-session-bus.sh: update from telepathy-glibSimon McVittie1-3/+15
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=63119
2013-04-22Drop unused build dependency on OpenSSLWill Thompson1-4/+2
Since some time ago, Idle has used GIO's TLS stuff; we should have dropped this back then. Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2012-11-16tests: disable pings by defaultWill Thompson1-0/+1
We don't want to risk some test timing out because it doesn't answer PONGs, and having PINGs cluttering the debug log is not my cup of tea.
2012-11-16Parse PONG more lenientlyWill Thompson1-0/+6
2012-11-14muc: check that messages are marked as rescuedWill Thompson2-12/+41
2012-11-14muc-channel: implement Destroy(), make Close() respawnWill Thompson3-1/+61
This fixes the issue where empathy-chat crashing means you get kicked out of all your channels. It's technically backwards-incompatible but empathy-chat has been using RemoveMembers() to leave rooms for ages, and it's a pretty destructive and annoying bug, so let's just get on with it. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=24614
2012-11-14idletest: handle PART with no message argumentWill Thompson1-1/+7
2012-10-30Connection: disconnect if we get no PONG for our PINGWill Thompson1-3/+16
Previously we'd just send out a PING into the æther every n seconds, and pay no attention to whether we ever got an answer. So it was perfectly possible for the connection to just sit there until the TCP timeout kicks in, which I think is a matter of hours by default. With this patch, if we haven't heard a PONG 3 keepalive-intervals after sending a PING, Idle throws its toys out of the pram. This has been tested as follows: * Put my laptop on a wired and wireless network simultaneously. * Connect to an IRC server. (The wired network is used.) * Pull the network cable out. Idle is too stupid to realise the link it was using is gone, and because we're still ostensibly online, nothing tells it to disconnect. * Wait keepalive-interval * 4, and watch the connection get disconnected. It works both with a direct connection to Freenode, and with a connection over an SSH tunnel to irssi-proxy.
2012-10-30Make the PONGs sent back by the test more realisticWill Thompson1-2/+4
2012-10-30Add a stupid test for Idle sending PINGWill Thompson2-0/+21
2012-10-29Merge branch 'room-list'Will Thompson4-0/+150
2012-10-29Sanitize incoming messages to remove UTF-8 non-characters.Will Thompson2-0/+53
https://bugs.freedesktop.org/show_bug.cgi?id=30741
2012-07-18servicetest: squash dbus-python deprecation warningWill Thompson1-1/+3
2012-05-30Merge branch 'catch-up'Simon McVittie4-3/+11
Conflicts: configure.ac src/idle-muc-channel.c
2012-05-16room-config: flicker CanUpdateConfiguration but keep MutableProperties stableJonny Lamb1-7/+25
I had misunderstood these two properties before, yet again. This is better and easier. I added more tests. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-05-16muc-channel: validate Password properties to simplify {,un}setting branchJonny Lamb1-0/+23
This is much better. I should have done this before. I also added some tests to make sure bad args are rejected. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-05-16muc-channel: track op-ness in the channel to mark config properties {,im}mutableJonny Lamb1-2/+32
I must admit I misunderstood what was going on with this earlier when I removed it. I was just being an idiot. I've brought it back now and it's even tested! Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-05-15muc-channel: set configuration retrieved when appropriateJonny Lamb1-6/+13
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-05-15muc-channel: start setting RoomConfig properties for mode changesJonny Lamb1-0/+64
Ignore the indentation; it's all wrong. I hate idle. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-05-15tests: add RoomConfig1 testJonny Lamb2-0/+224
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-05-15muc-channel: add initial RoomConfig1 implementationJonny Lamb1-0/+1
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-05-15Implement Channel.I.RoomWill Thompson2-15/+49
This is really trivial, I'm happy to report.
2012-05-10Fix coding style nits in the testsSimon McVittie3-3/+7
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-05-10Bring in the compiler/linker warnings from telepathy-glibSimon McVittie1-0/+4
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-05-07Set G_MESSAGES_DEBUG during testingSimon McVittie1-0/+2
The same as Gabble commit cbfa9d06.
2012-04-08RoomList: use TpBaseChannelWill Thompson3-45/+55
This moves IdleRoomlistChannel over to TpBaseChannel and cleans up the tests a little at the same time.
2012-04-08Fix a bug and add a test for requesting multiple roomlist channelsJonathon Jongsma2-0/+62
I hadn't really excercised the code for returning an existing roomlist channel if we had already created one. So I added a test for it and in the process discovered a bug, which is also fixed by this patch. (The compiler found this bug when it was introduced while I was rebasing Jonathon's branch, so I fixed it there and then. -Will)
2012-04-08Initial support for listing IRC channelsJonathon Jongsma2-0/+78
Added IdleRoomlistManager and IdleRoomlistChannel classes. There is a basic test included as well. Things seem to work ok (e.g. I can display a list of channels in empathy), but it hasn't been extensively tested and I have made some possibly questionable design decisions (e.g. only creating a single RoomlistChannel rather than creating a new one every time one is requested). I don't fully understand the implication of that choice yet, so I need to do some more work to figure out whether that needs to be changed. There seems to be a crash when closing down the channel that also needs to be investigated.
2012-03-30Test server dropping connection after authentication.Will Thompson2-0/+24
This has always worked fine, but wasn't tested.
2012-03-30Connection: handle ServerConn errors while ConnectingWill Thompson2-0/+25
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=48084
2011-11-07Fix the test broken by the last commitDanielle Madeley1-1/+1
Oh yeah, the tests...
2011-11-02Support trailing parameter without a initial :Sjoerd Simons1-0/+11
BIP doesn't start the trailing parameter with a : when it's only a single word in various cases. For example when sending the topic. Adjust our parser to accept trailing parameters not starting with : if it's the final word in the string
2011-11-01Subject: implement ActorHandle property.Will Thompson1-0/+5
Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2011-10-12MUCChannel: Implement Channel.Interface.SubjectWill Thompson4-66/+109
This patch pulls the topic-tracking and -setting code out of the Telepathy.Properties implementation, uses it to implement the Subject interface, and stubs out the Telepathy.Properties implementation. Because Subject uses DBus.Properties.PropertiesChanged, which clashes with Telepathy.Properties.PropertiesChanged, we have to remove the GInterface for Telepathy.Properties from the object. The latter is not tested anywhere! So this gives us a commit that compiles, runs and passes all the tests, without having to cut out all the old code which we want to salvage for RoomConfig.
2011-10-04idletest: Use handleCommand instead of dataReceivedDebarshi Ray1-6/+5
Unlike dataReceived, handleCommand splits the data if it has multiple messages and parses each message.
2011-10-04idletest: The data for an IRC event can be [] tooDebarshi Ray1-1/+1
2011-09-12Connection: replace \r and \n with spacesWill Thompson1-2/+7
If a message gets as far as _send_with_priority and contains \r or \n, it's almost certainly not what the user anticipated. For instance, before this fix, calling RemoveMembers([self_handle], "bye\r\nJOIN #telepathy") would cause the user to leave the channel with the message "bye", and then accidentally join #telepathy. Rather than trying to strip out \r and \n everywhere, this patch just replaces them with spaces just before sending. https://bugs.freedesktop.org/show_bug.cgi?id=34840 Reviewed-by: Debarshi Ray <rishi@gnu.org>
2011-09-12message-order.py: tidy upWill Thompson1-4/+2
2011-09-12tests: strip \r\n from stream event dataWill Thompson4-6/+7
2011-09-09Add an env var to speed up flushing the queueWill Thompson1-1/+1
Idle interprets RFC 2813 very conservatively, and sends at most one message every two seconds, rather than sending an *average* of one message every two seconds. I don't feel like implementing the latter right now, but I'm bored of waiting forever for the test suite to pass. So here's a hack.
2011-09-09tests: print "Core dump exists" in red, like GabbleWill Thompson1-5/+12
2011-07-20Contacts: add stub support for ContactInfoWill Thompson1-0/+1