Commit Graph

267 Commits

Author SHA1 Message Date
Ian Gulliver
8b6f5c916d First Hogfather test. 2015-10-17 16:04:37 +02:00
Ian Gulliver
69aa0e711a Start of hogfather code. 2015-10-17 15:55:43 +02:00
Ian Gulliver
cec8a6c9d3 Fix the remaining lint errors. 2015-10-16 16:23:29 +02:00
Ian Gulliver
f77007e047 Fix some lint errors from previous commit. 2015-10-15 21:55:55 +02:00
Ian Gulliver
a59f7f97f3 Add support for "local" subjects, which don't get pushed to the serve and get destroyed on unsubscribe. 2015-10-15 19:05:39 +02:00
Ian Gulliver
9b5a55b737 Add two event listener tests, mostly as examples. 2015-10-14 17:04:01 +02:00
Ian Gulliver
be831f40d3 Fix the thread locking model to be harder to screw up. 2015-07-06 04:12:33 +00:00
Ian Gulliver
d52d5df148 Add a sanity assertion. 2015-07-06 01:43:56 +00:00
Ian Gulliver
34154d3939 Remove duplicate line. 2015-07-06 01:21:04 +00:00
Ian Gulliver
ecdfce7970 Hide some additional includes. 2015-07-06 01:20:16 +00:00
Ian Gulliver
0e5723b9d0 Checkpoint: add helgrind target, switch to timespec_get(), add cosmo_random() 2015-07-06 01:11:40 +00:00
Ian Gulliver
9e8891884b Add cosmo_get_profile(), test_subscribe_acl 2015-07-05 02:59:07 +00:00
Ian Gulliver
afc201f69c Actually verify message ordering in test_message_ordering 2015-07-04 21:32:08 +00:00
Ian Gulliver
fdc74ed53c Add test_message_ordering. Make all functions static so we know if any aren't in use. 2015-07-03 22:17:06 +00:00
Ian Gulliver
bd103b15bf Fix result of send_message() when chaos monkey intervenes post-request. 2015-07-03 22:16:42 +00:00
Ian Gulliver
a416119ea3 Add subscribe_barrier test 2015-07-02 19:51:06 +00:00
Ian Gulliver
6585fb3445 Add another promise test. 2015-07-02 04:37:23 +00:00
Ian Gulliver
ac4437b7b2 Restructure promise API, use it in cosmo, add test. 2015-07-01 04:48:25 +00:00
Ian Gulliver
13fe1a07ce Actually start calling promises. 2015-06-28 12:22:23 -07:00
Ian Gulliver
f2a3b3c677 TODO about locking issues 2015-06-28 11:56:41 -07:00
Ian Gulliver
d1a4510d2b Refactoring for sanity, avoid some unnecessary copies. 2015-06-28 11:55:09 -07:00
Ian Gulliver
a3b6977088 More promise plumbing. 2015-06-28 11:43:17 -07:00
Ian Gulliver
4b79ef06de Plumbing for promise integration. 2015-06-28 11:18:05 -07:00
Ian Gulliver
b29690734a Move command queue to our own linked list, so we can attach promises.
Fix OS X build.
2015-06-28 09:54:03 -07:00
Ian Gulliver
f3e38ec8a6 Add double subscribe test. 2015-06-24 04:26:51 +00:00
Ian Gulliver
e5e81673ff Add getmessages test. 2015-06-24 04:20:43 +00:00
Ian Gulliver
92d40db1cd Add a TODO 2015-06-24 04:05:46 +00:00
Ian Gulliver
1482d81883 Strengthen some SSL options, pave the way for future options and public key pinning. 2015-06-24 04:01:32 +00:00
Ian Gulliver
e04f06e2e5 Autogenerate client IDs to make instantiation easier. Set us up for client ID rotation later. 2015-06-24 03:01:24 +00:00
Ian Gulliver
db9b63cec8 Switch to uuid names for Event keys, because appengine reuses model ids. 2015-06-22 20:56:27 -07:00
Ian Gulliver
f3bde736f7 Log timestamp of torture run start. 2015-06-23 03:45:00 +00:00
Ian Gulliver
e29838a58e Fix reconnect test failure. 2015-06-20 17:42:54 +00:00
Ian Gulliver
494a1060f9 Debug log callbacks fired. 2015-06-20 15:37:21 +00:00
Ian Gulliver
a994c7e7ec Clean up debug logging story. 2015-06-20 15:32:57 +00:00
Ian Gulliver
7ab52899de Test-only fix, torture improvements. 2015-06-20 06:22:38 +00:00
Ian Gulliver
e382392170 Torture test script. 2015-06-20 05:48:45 +00:00
Ian Gulliver
0603c2c601 Merge branch 'master' of github.com:flamingcowtv/cosmopolite 2015-06-20 05:45:39 +00:00
Ian Gulliver
33ce1fe805 More resilient method for determining when we've reconnected. 2015-06-20 05:45:26 +00:00
Ian Gulliver
a8d0661626 Forgot the cron handler. 2015-06-19 22:43:41 -07:00
Ian Gulliver
33f368910f Better method for tracking reconnect of polling clients. 2015-06-19 22:43:20 -07:00
Ian Gulliver
9a726558ca Add complex object test. 2015-06-20 02:56:03 +00:00
Ian Gulliver
aa5751c89d Bulk subscribe support (mainly just to mirror JS) 2015-06-20 01:16:50 +00:00
Ian Gulliver
65c118ce6c Debugging support. 2015-06-19 22:57:11 +00:00
Ian Gulliver
f434b5ff7b Rename and reorder tests to match test.js 2015-06-19 22:35:16 +00:00
Ian Gulliver
457cc92e1e Add login callback. 2015-06-19 22:27:28 +00:00
Ian Gulliver
a850c79817 Hide cosmo struct definition from the public API. 2015-06-19 22:18:24 +00:00
Ian Gulliver
d89d1cc2f6 disconnect callback 2015-06-18 05:43:05 +00:00
Ian Gulliver
d0d0ed1e21 Add a connect callback. 2015-06-18 04:27:17 +00:00
Ian Gulliver
c72f2ff30e Add resubscription after reconnect, with a test. 2015-06-18 04:11:13 +00:00
Ian Gulliver
f89e936f55 Don't delete all events, just the ones that are acked. 2015-06-15 21:31:21 -07:00