summaryrefslogtreecommitdiff
path: root/tests/twisted
AgeCommit message (Collapse)AuthorFilesLines
2013-10-29Use the proper 'Ice' Call capabilityGuillaume Desmottes5-5/+5
Also, use token constants when possible.
2013-09-09Add a regression test for #68829Simon McVittie2-0/+52
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68829 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-08-09tests/twisted: make the necessary directories to put *.conf inSimon McVittie1-1/+2
This fails during parallel distcheck. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2013-08-06Merge branch 'telepathy-gabble-0.16'Simon McVittie2-16/+40
Conflicts: NEWS
2013-08-06roster/groups: don't rely on an implementation detailSimon McVittie2-16/+40
Before telepathy-glib 0.20.3 and 0.21.1, we had this incorrect sequence (pseudocode) for each group: * NewChannels(the group) * GroupsChanged([the group], added: [...], removed: []) * NewChannels(the group) In 0.20.3 and 0.20.1, we removed the second emission of NewChannels. Unfortunately, that broke this test, which was specifically expecting GroupsChanged followed by NewChannels. Rather than reversing the assumption, I'm doing it properly, by expecting the events in no particular order. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=67828 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-08-06run-test.sh.in: make the indentation make senseSimon McVittie1-13/+13
The Python invocation is indented, because it's a command-line argument for the sh invocation. The case shouldn't be. Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65290
2013-06-11gabbletest: add hooks for hazetestWill Thompson1-9/+14
I need these so that hazetest can just override what it needs, rather than actually modifying the copy of gabbletest. https://bugs.freedesktop.org/show_bug.cgi?id=65658
2013-06-11Use run-test.sh to run uninstalled testsSimon McVittie1-15/+8
2013-06-11Adapt run-test.sh to be able to run the tests uninstalledSimon McVittie2-13/+40
When autoreconfiscated with Automake 1.13, the way in which we were (ab?)using Automake's test driver no longer works. We can't just switch back to the old serial test driver without a dependency on at least Automake 1.12, either. However, run-test.sh (which was already used for installed tests) is quite capable of running uninstalled tests, with a bit of adjustment: * if GABBLE_TEST_UNINSTALLED is set, expect GABBLE_ABS_TOP_SRCDIR, GABBLE_ABS_TOP_BUILDDIR and optionally GABBLE_TEST_SLEEP in the environment * look for installed or uninstalled files, as appropriate * use TEST_PYTHON (which might differ from PYTHON) * use python -u (unbuffered stdout) for better debugging Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65290 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2013-06-06Disable unreliable test-caseSimon McVittie1-0/+4
It has a race condition or something. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49595 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-06-05Disable unreliable test-caseSimon McVittie1-0/+4
It has a race condition or something. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49595 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-05-30Update Wocky for fd.o #65131, and test itSimon McVittie1-2/+7
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65131 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2013-05-30vcard/supported-fields: catch up with fd.o #64319Simon McVittie1-0/+1
Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2013-05-30Merge branch 'telepathy-gabble-0.16'Simon McVittie3-1/+38
Conflicts: NEWS configure.ac lib/ext/wocky
2013-05-29Add a regression test for fd.o #65036Simon McVittie2-0/+37
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65036 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2013-05-29tests: fix JabberAuthenticator when self.emit_events is FalseSimon McVittie1-1/+1
We don't currently use JabberAuthenticator in this mode, so nobody noticed that it didn't work. I'm about to add a test that does use it.
2013-04-04Merge branch 'telepathy-gabble-0.16'Simon McVittie1-0/+6
2013-04-04Merge with-session-bus.sh changes from telepathy-glibSimon McVittie1-0/+6
We also have local changes, which should go "upstream" to telepathy-glib at some point. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=63119
2013-02-22MUC: stop sending chat states after <error type=wait>Will Thompson1-5/+34
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=43166#c0
2013-02-22muc/chat-states: fix and uncomment commented chunkWill Thompson1-16/+16
This didn't work as-is because the <presence type='unavailable'> had no <x> child. Using make_muc_presence() does the job nicely.
2013-02-22muc/chat-states: tidy up checking message bodiesWill Thompson1-8/+4
2013-02-22muc: test resource-constraint is exposed reasonablyWill Thompson1-0/+10
https://bugs.freedesktop.org/show_bug.cgi?id=43166#c7
2013-02-22Test Prosody's MUC's rate limit is exposed correctly nowWill Thompson1-12/+59
There were a combination of problems before: * The server's error message was not exposed in the delivery report; * Wocky didn't recognise policy-violation; * There was a bug in Wocky's error parsing code which clobbered the message type. So many bugs for such a small stanza!
2013-02-15muc/send-error: refactorWill Thompson2-27/+50
There will be more cases shortly
2013-02-12tests: don't block on Disconnect() without sending </stream>Will Thompson3-9/+8
These three tests were making blocking calls to Disconnect() rather than using the disconnect_conn() helper. As a result, Gabble was waiting 5 seconds for the test server to send back </stream:stream> before timing out. Using disconnect_conn(), which sends the stream close back properly, shaves between 15 and 18 wasted seconds off the test suite.
2013-01-16Update Wocky snapshot for wocky.h with Jingle headersWill Thompson1-4/+0
2012-12-11Rename most of GabbleJingle* to WockyJingle*Will Thompson1-1/+1
This renames the classes I'm moving to Wocky, and updates all the remaining code to cope. A few things are missed out because it's only reasonable to change them when the code is in Wocky: • GABBLE_TYPE_STUN_SERVER_SOURCE (the GEnum for WockyStunServerSource) can't be renamed easily because it is generated by Gabble's enumtype thing. • GABBLE_DEBUG_MEDIA. Here's the program I used, for posterity. #!/usr/bin/perl -pi use strict; BEGIN { undef $/; } my @Classes = qw(Factory Session Transport_Iface Transport_IceUdp Transport_RawUdp Transport_Google Content Info Media_Rtp Relay); for my $Class (@Classes) { my $FullClass = "Jingle$Class"; $FullClass =~ s/_//g; my $under_class = "jingle_" . lc($Class); my $UNDER_CLASS = uc($under_class); s/Gabble$FullClass/Wocky$FullClass/g; s/gabble_$under_class/wocky_$under_class/g; s/GABBLE_$UNDER_CLASS/WOCKY_$UNDER_CLASS/g; s/GABBLE_TYPE_$UNDER_CLASS/WOCKY_TYPE_$UNDER_CLASS/g; s/GABBLE_IS_$UNDER_CLASS/WOCKY_IS_$UNDER_CLASS/g; } s/GabbleGoogleRelay/WockyGoogleRelay/g; s/gabble_google_relay/wocky_google_relay/g; s/GABBLE_N_JINGLE_RELAY_TYPES/WOCKY_N_JINGLE_RELAY_TYPES/g; s/gabble_stun_server/wocky_stun_server/g; s/GABBLE_STUN_SERVER/WOCKY_STUN_SERVER/g; # Can't rename GABBLE_TYPE_STUN_SERVER_SOURCE because it's generated. Blah. s/GabbleStunServer/WockyStunServer/g; my @Blah_Blah = qw(Candidate State Action Content_Senders Transport_Type Transport_Protocol Candidate_Type Reason Transport_State Dialect Content_State Media_Type Codec Media_Description Feedback_Message Rtp_Header_Extension Media_Profile); for my $Class (@Blah_Blah) { my $FullClass = "Jingle$Class"; $FullClass =~ s/_//g; my $under_class = "jingle_" . lc($Class); my $UNDER_CLASS = uc($under_class); s/\b$FullClass/Wocky$FullClass/g; s/\b_$FullClass/_Wocky$FullClass/g; s/\b$under_class/wocky_$under_class/g; s/\b$UNDER_CLASS/WOCKY_$UNDER_CLASS/g; } s/MAX_JINGLE_STATES/WOCKY_N_JINGLE_STATES/g; s/JINGLE_IS_GOOGLE_DIALECT/WOCKY_JINGLE_DIALECT_IS_GOOGLE/g;
2012-12-07tests: don't crash in verbose mode on unicode in stanzasWill Thompson1-1/+9
We have this hack that sets __repr__ on domish.Element to call its toXml() method, which ends up being used by the verbose logging code when it dumps all of an event's attributes. Unfortunately, this blows up if a stanza contains non-ASCII characters, because repr() tries to convert unicode to str using .encode('ascii'). This made running jingle/test-send-file in verbose mode fail, because the file being sent by the test has a non-ASCII filename. The fix is to make the __repr__ hack escape non-ASCII characters using the unicode-escape codec.
2012-12-06Test all this receipt stuff.Will Thompson4-0/+200
I did write this test as I went along, but I forgot to commit it. Whoops.
2012-12-06Don't crash on <success> after closing auth channel.Will Thompson1-1/+1
2012-12-06tests: add a couple more cases to sasl/abortWill Thompson1-0/+17
There's no reason these should be any different, but I thought it might be worth trying them anyway.
2012-12-06Don't crash on <challenge> after closing auth channelWill Thompson1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=52146
2012-12-06sasl-channel: don't crash on Abort() then <challenge>Will Thompson1-1/+1
2012-12-06Add commented-out regression tests for fd.o#52146Will Thompson2-0/+87
test_close_then_challenge() and test_close_then_success() each trigger similar bugs. test_abort_then_challenge() and test_abort_then_success() both trigger the same bugs by a different route, which I don't think my first attempt at fixing the original bug would have caught. test_close_then_failure() and test_abort_then_failure() pass, and are here for completeness.
2012-12-06sasl/abort: clean up common test codeWill Thompson1-29/+15
2012-12-06sasl/abort.py: clean up invoking test casesWill Thompson1-18/+12
2012-12-06gabbletest: exit if we can't connect to the busWill Thompson1-1/+5
Previously, if the bus wasn't there (perhaps I killed it when trying and failing to ^C the test suite?) the test would just sit there forever after the unhandled exception made its way up to the mainloop.
2012-12-06Test ClearAvatar()Will Thompson2-0/+28
I wasn't sure from reading the code that this actually worked any more, and it wasn't tested. I'm happy to say that it does work.
2012-12-06Regression test for malformed privacy list repliesWill Thompson1-5/+15
2012-12-06Tidy up privacy list test very slightlyWill Thompson1-6/+3
2012-12-06Regression test for 57521Will Thompson1-0/+31
2012-12-06Merge branch '57546-there-can-be-only-one-jingletest'Will Thompson10-339/+63
https://bugs.freedesktop.org/show_bug.cgi?id=57546
2012-12-06Merge branch '25961-stun-srv'Will Thompson12-177/+158
https://bugs.freedesktop.org/show_bug.cgi?id=25961 https://bugs.freedesktop.org/show_bug.cgi?id=25385
2012-12-06test-multift: clean up a bitWill Thompson1-11/+1
2012-12-06test-multift: don't rely on q.expect timing outWill Thompson1-22/+23
Previously, this test checked that events didn't happen by waiting for them to happen, asserting if they did, and catching the TimeoutError which occurred if they didn't. But it's more obvious what's happening to forbid the event, take all the actions, and then sync the stream to make sure it hasn't appeared. Plus, it shaves 6 seconds off the test.
2012-12-06Fix file transfer tests for these new interfacesWill Thompson3-9/+24
2012-11-26Remove the olde jingletestWill Thompson3-231/+0
2012-11-26jingle/google-relay: use jingletest2Will Thompson1-13/+5
2012-11-26jingle/test-wait-for-caps-incomplete: don't use jingletestWill Thompson1-5/+3
This test didn't actually use any of the jingle protocol stuff at all—it's just a caps test.
2012-11-26jingle/test-wait-for-caps-incomplete: unskip half the testWill Thompson1-3/+0
The connection doesn't seem to leak any more. I added this in 07822b272 because <https://bugs.freedesktop.org/show_bug.cgi?id=29790>. I haven't investigated fully, but the test passes, sooooo... :)