summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-06-15[bug] catch missing section header errorKali Kaneko
2015-06-15[feature] utility collect_pluginsKali Kaneko
to be used in post-sync hooks. Related: #6996 Releases: 0.4.1
2015-06-11[bug] remove extraneous data from events logsdrebs
The emission of an event was being logged twice, and the second time was logging the pickled content of the event. This pickled content contained line breaks and other things that caused strange output on the client log. This commit removes the second loggin of the event pickled content. Closes #7130.
2015-06-08[bug] Makes request method respect a hard limitVictor Shyba
Altough we specify maxPersistentPerHost, Twisted won't stop opening connections after that. This limit is used just to keep the size of persistent connections pool under control. Additional connections will be made as non persistent. So, if we ask 10000 requests, it will open 10000 connections immediately and leave 10 open after all finished. For checking this behavior, see getConnection from Twisted source: http://twistedmatrix.com/trac/browser/tags/releases/twisted-15.2.1/twisted/web/client.py#L1203 I tested this by using http_target from soledad without a local database to download all encrypted docs from one account with 1700 of them. The program just hangs and crashes with 1000+ connections and "Too many files open" warnings. With this fix, it was able to download normally, respecting the maxPersistentPerHost as a limiter. :)
2015-06-03[bug] allow ipc socket typesKali Kaneko
previous regex wasn't capturing addresses of type ipc://<path> Closes: #7089
2015-06-02[feat] Make it optional to have a dedicated poolVictor Shyba
As @meskio pointed out, some cases could need a dedicated pool with different parameters. This is a suggested implementation where the pool is reused by default, creating a dedicated one just if needed/asked. This way we ensure that resources are under control and special cases are still handled.
2015-06-02[bug] Use BrowserLikePolicyForHTTPS for checkingVictor Shyba
While testing the way that its implemented now, I found out that no check is being made on certificate attributes against the host. I found this simple way of creating a BrowserLikePolicyForHTTPS using a self signed cert and it worked on my test. I used test_https from Soledad for checking this (which we are fixing on another branch). Also, we don't want to depend on twisted for other things than leap.common.http.
2015-05-28[bug] use dict keys to iterateVictor Shyba
We ran into a RuntimeError yesterday on this line, the callback can modify this dict and make the iteration raise an error. Using keys method to iterate is safer. See http://stackoverflow.com/questions/11941817/python-runtimeerror-dictionary-changed-size-during-iteration-how-to-avoid-th/11941855#11941855
2015-05-27[feat] add initialization of events to BaseLeapTestRuben Pollan
This is needed to get the tests working on environments where zmq was not initalizated. The environment variable XDG_CONFIG_HOME is set to get the leap configuration in the temp folder.
2015-05-27[feat] refactor events to use ZMQdrebs
Before this commit, protobuf and protobuf.socketrpc were used to serialize and transmit messages between events clients. This change implements a simpler ZMQ client/server events mechanism that uses ZMQ sockets for transmitting messages from clients to server and to redistribute such messages to subscribed clients. Closes: #6359
2015-05-27[refactor] move http twisted code from soledadRuben Pollan
Implements an HTTP client the twisted way, with a focus on pinning the SSL certs. * Related: #6506
2015-05-21[bug] get certificate times as UTC, add testsIvan Alejandro
The certificate validity times were converted to local time and later on compared with UTC time, which caused the certificate not being updated at the right times. Add tests to be sure this is not happenning again. Add a joint pem file for the existing cert and key files to ease test. - Resolves: #6994
2015-01-21Consider different possibilities for tmpdir.Ivan Alejandro
In some systems the used tmp dir is like '/tmp/leap_tests-asdf' and in others is like '/tmp/username/leap_tests-asdf'. With this fix we protect the home dir and consider different possible temp directories.
2014-12-03Add support for deferreds to memoize_method decoratorRuben Pollan
2014-12-03Extract the environment set up and tear down for testsRuben Pollan
Using trial there is no setUpClass neither tearDownClass, the setting up of the environment needs to be in an external class to be able to call it from inhereted classes.
2014-09-16Add invalidation timeout to cacheRuben Pollan
2014-07-10Look for cacert.pem in the Resources dir in OSXTomás Touceda
2014-07-04Update documentation about events/protoRuben Pollan
2014-05-02Add soledad sync status signals (#5517).drebs
2014-03-18Add Soledad invalid auth token event (#5191).drebs
2014-01-17Support str type in email charset detection.Ivan Alejandro
2013-12-19add cache invalidationKali Kaneko
2013-12-18Fix memoize decorator: raise instead of storing NoneKali Kaneko
With this fix, we will re-raise an exception that happens while evaluating the callable, instead of storing None as value.
2013-12-17Add a memoize_method decoratorKali Kaneko
2013-10-31Move get_email_charset to this moduleTomás Touceda
2013-09-30add ca-bundle with ca-certKali Kaneko
2013-09-09Fix events exception raising when ensuring server. Closes #3515.drebs
2013-09-03Merge remote-tracking branch 'kali/bug/renew-testing-certificates' into developIvan Alejandro
2013-09-03fix testing certs with proper server use for localhostKali Kaneko
2013-09-03Merge remote-tracking branch 'kali/bug/renew-testing-certificates' into developIvan Alejandro
2013-09-03renew the certs used for testingKali Kaneko
2013-09-03change verbosity level in loggingKali Kaneko
2013-09-03cosmetic changes to importsKali Kaneko
2013-09-03Fix Exception useKali Kaneko
2013-08-29Update baseconfig tests to use schema correctly.Ivan Alejandro
2013-08-28Use dirspec instead of plain xdg. Closes #3574.Ivan Alejandro
2013-08-23Add versioneer to handle versioning here too.Kali Kaneko
2013-08-19Add IMAP_UNREAD_MAIL eventTomás Touceda
2013-08-16add new events for imap and keymanagerKali Kaneko
2013-08-15Add events for SMTP signaling.drebs
2013-08-15Force protobuf version to >=2.4.1.drebs
* Also, generate events_pb2.py file using 2.4.1.
2013-08-14Make ensure_server asyncTomás Touceda
2013-08-09Bump version to 0.3.00.3.0Tomás Touceda
2013-08-07Fix old parameter error.Ivan Alejandro
2013-08-07Handle schemas and api versions in base class.Ivan Alejandro
2013-08-06Check if schema exists before load a config.Ivan Alejandro
Related to #3310.
2013-07-30Fix path prefix for OSXTomás Touceda
2013-07-26Bump version to 0.2.70.2.7Tomás Touceda
2013-07-25Merge remote-tracking branch 'drebs/bug/3261-fix-events-doc-about-reqcbk' ↵Tomás Touceda
into develop
2013-07-25Fix events doc about reqcbk signature. Closes #3261drebs