leap_pycommon.git
3 years ago[tests] ignore .tox folder develop
Kali Kaneko [Mon, 11 Jul 2016 14:42:27 +0000 (16:42 +0200)]
[tests] ignore .tox folder

3 years ago[pkg] remove dependency on dirspec
drebs [Wed, 6 Jul 2016 06:46:33 +0000 (08:46 +0200)]
[pkg] remove dependency on dirspec

This commit removes the dep introduced in 5e12233 by just importing some tiny
bit of dirspec code.

The previous change was introduced because:

  * pyxdg did not account for Mac OS specifics, i.e. using ~/Library/
    directory structure instead of .config (see:
    https://leap.se/code/issues/3574).

  * dirspec does the correct thing for xdg on Mac OS.

  * u1db depends on dirspec anyway.

The problem is that dirspec is not maintained and published on pypi, what
forces us to download it from an URL and add exceptions to be able to pip
install it.

As we are removing dependence on u1db on other modules, we can also remove it
here. To workaround the Mac OS problem, we just add some code from dirspec to
ensure we get the correct directory on Mac OS.

3 years ago[test] toxify tests
drebs [Wed, 6 Jul 2016 06:43:49 +0000 (08:43 +0200)]
[test] toxify tests

3 years ago[test] add gitlab ci file
drebs [Wed, 6 Jul 2016 11:34:40 +0000 (13:34 +0200)]
[test] add gitlab ci file

3 years ago[pkg] setup: use new versioneer json format
Kali Kaneko [Wed, 18 May 2016 15:48:03 +0000 (11:48 -0400)]
[pkg] setup: use new versioneer json format

3 years ago[style] move import to top
Kali Kaneko [Mon, 16 May 2016 19:18:23 +0000 (15:18 -0400)]
[style] move import to top

3 years agoMerge tag '0.5.1' into develop
Kali Kaneko [Mon, 18 Apr 2016 14:57:50 +0000 (10:57 -0400)]
Merge tag '0.5.1' into develop

Tag leap.bitmask version 0.5.1

3 years ago[pkg] Update changelog 0.5.1
Kali Kaneko [Mon, 18 Apr 2016 14:50:13 +0000 (10:50 -0400)]
[pkg] Update changelog

3 years ago[pkg] update to versioneer 0.16
Kali Kaneko [Fri, 1 Apr 2016 21:33:26 +0000 (17:33 -0400)]
[pkg] update to versioneer 0.16

3 years ago[doc] update event annotation
Kali Kaneko [Thu, 24 Mar 2016 13:24:37 +0000 (09:24 -0400)]
[doc] update event annotation

3 years agoMerge remote-tracking branch 'leapcode/pr/139' into develop
Kali Kaneko [Thu, 24 Mar 2016 13:48:47 +0000 (09:48 -0400)]
Merge remote-tracking branch 'leapcode/pr/139' into develop

3 years ago[bug] close TxAuthenticator properly
Christoph Kluenter [Wed, 16 Mar 2016 16:03:52 +0000 (17:03 +0100)]
[bug] close TxAuthenticator properly

otherwise the context.term() does not return

3 years ago[feature] HookableService
Kali Kaneko [Wed, 2 Mar 2016 15:53:50 +0000 (11:53 -0400)]
[feature] HookableService

ad-hoc register/trigger mechanism used for service composition.
to be used in bitmask.core and bitmask.bonafide in the first place.

3 years agoMerge remote-tracking branch 'leapcode/pr/138' into develop
Kali Kaneko [Fri, 11 Mar 2016 19:32:40 +0000 (15:32 -0400)]
Merge remote-tracking branch 'leapcode/pr/138' into develop

3 years ago[setup] Added docs on how to run the tests
Bruno Wagner [Thu, 10 Mar 2016 19:04:57 +0000 (16:04 -0300)]
[setup] Added docs on how to run the tests

Also added dirspec directly to the setuptools for now,
because it needs the dependency along with the url, but pip
would break if it had both

3 years ago[setup] pycommon pip installs in edit mode
Bruno Wagner [Thu, 10 Mar 2016 18:42:54 +0000 (15:42 -0300)]
[setup] pycommon pip installs in edit mode

Leap pycommon will now be installed in editable mode
when you use pip install, so that you can run the tests
and develop using only pip

3 years ago[setup] Added dirspec url to requirements
Bruno Wagner [Thu, 10 Mar 2016 18:17:49 +0000 (15:17 -0300)]
[setup] Added dirspec url to requirements

I also added a conditional to the setup.py so
that python setup.py develop can be used even
with the dirspec url

3 years ago[style] pep8
Kali Kaneko [Wed, 9 Mar 2016 14:48:23 +0000 (10:48 -0400)]
[style] pep8

3 years ago[tests] adapt events tests to recent changes
Kali Kaneko [Mon, 29 Feb 2016 23:33:28 +0000 (19:33 -0400)]
[tests] adapt events tests to recent changes

3 years ago[feature] reactor-based authenticator
Kali Kaneko [Tue, 23 Feb 2016 23:28:05 +0000 (19:28 -0400)]
[feature] reactor-based authenticator

We don't really need a thread to make use of the ZAP authenticator.
Document bug fix after authenticator thread is gone

3 years ago[bug] avoid the events server to block twistd daemon
Kali Kaneko [Mon, 22 Feb 2016 23:26:45 +0000 (19:26 -0400)]
[bug] avoid the events server to block twistd daemon

1. refactor the zmq_connect/bind methods to use the txzmq addEndpoints
mechanism, which cleans up the code a bit. it uses the underlying
bindOrConnect method.

2. wrap the addEndpoints call in a helper function that ensures that
doRead is called afterward.

I'm not fully comfortable with us still using the AuthenticatorThread, I
believe we could go witha txzmq-based authenticator for curve.

3 years ago[feature] optional flag to disable curve authentication
Kali Kaneko [Mon, 22 Feb 2016 23:25:21 +0000 (19:25 -0400)]
[feature] optional flag to disable curve authentication

3 years ago[feat] Get events working on windows
meskio on windows [Thu, 11 Feb 2016 10:26:06 +0000 (11:26 +0100)]
[feat] Get events working on windows

Always use tcp channels and disable curve encryption on the zmq
connections.

- Closes: #7899, #7239
- Related: #7919

4 years ago[refactor] reorder and comment events
Kali Kaneko [Mon, 30 Nov 2015 20:17:44 +0000 (16:17 -0400)]
[refactor] reorder and comment events

Reorder blocks of events, and comment about which user-specific info
it's being emitted with them.

4 years ago[style] fix pep8
Ruben Pollan [Thu, 12 Nov 2015 18:34:38 +0000 (19:34 +0100)]
[style] fix pep8

4 years ago[pkg] migrate changelog to rst and fold in changes 0.5.0
Ivan Alejandro [Wed, 11 Nov 2015 19:17:06 +0000 (16:17 -0300)]
[pkg] migrate changelog to rst and fold in changes

Also, convert issues like #1234 to link pointing to issue tracker.

4 years ago[docs] add next-changelog to changes/
Kali Kaneko [Wed, 11 Nov 2015 04:24:29 +0000 (00:24 -0400)]
[docs] add next-changelog to changes/

4 years ago[feature] add variable to skip twisted version
Kali Kaneko [Wed, 11 Nov 2015 03:47:19 +0000 (23:47 -0400)]
[feature] add variable to skip twisted version

4 years ago[pkg] rename extras to 'http'
Kali Kaneko [Mon, 2 Nov 2015 16:01:59 +0000 (12:01 -0400)]
[pkg] rename extras to 'http'

and document the dependencies on the README.

4 years ago[pkg] fold in changes 0.4.4
Ivan Alejandro [Tue, 27 Oct 2015 21:09:05 +0000 (18:09 -0300)]
[pkg] fold in changes

4 years agoWorkaround for deadlock problem in zmq auth
Folker Bernitt [Wed, 21 Oct 2015 08:07:06 +0000 (10:07 +0200)]
Workaround for deadlock problem in zmq auth

- See https://leap.se/code/issues/7536
- Actual root cause not identified yet

4 years ago[bug] fix typo on dirname usage
Ivan Alejandro [Tue, 13 Oct 2015 16:09:45 +0000 (13:09 -0300)]
[bug] fix typo on dirname usage

4 years ago[bug] fix wrong ca_cert path inside bundle
Kali Kaneko [Fri, 9 Oct 2015 19:01:13 +0000 (15:01 -0400)]
[bug] fix wrong ca_cert path inside bundle

-Resolves: #7524

4 years ago[bug] consider STANDALONE for the paths
Ivan Alejandro [Tue, 6 Oct 2015 17:41:18 +0000 (14:41 -0300)]
[bug] consider STANDALONE for the paths

Since we need to write a file we have to consider whether we are
running in 'standalone' mode or not to use the right path prefix.

- Related: #7512

4 years ago[pkg] fold in changes 0.4.3
Ivan Alejandro [Tue, 22 Sep 2015 16:30:24 +0000 (13:30 -0300)]
[pkg] fold in changes

4 years ago[refactor] move checking flag to main module
Kali Kaneko [Wed, 16 Sep 2015 16:20:22 +0000 (12:20 -0400)]
[refactor] move checking flag to main module

4 years ago[tests] Make txclient honor flags.EVENTS_ENABLED
Folker Bernitt [Wed, 16 Sep 2015 09:21:01 +0000 (11:21 +0200)]
[tests] Make txclient honor flags.EVENTS_ENABLED

- Breaks tests in dependent repos like soledad otherwise,
  because server.key could not be found

4 years ago[feat] expose async events in api
Kali Kaneko [Tue, 15 Sep 2015 03:06:29 +0000 (23:06 -0400)]
[feat] expose async events in api

to make simpler the import of the tx client

- Related: #7274

4 years ago[docs] add downloads badge
Kali Kaneko [Wed, 9 Sep 2015 19:43:26 +0000 (15:43 -0400)]
[docs] add downloads badge

4 years ago[docs] fix broken pypi badge
Kali Kaneko [Wed, 9 Sep 2015 18:58:47 +0000 (14:58 -0400)]
[docs] fix broken pypi badge

4 years ago[style] pep8 fixes
Kali Kaneko [Fri, 28 Aug 2015 16:10:41 +0000 (12:10 -0400)]
[style] pep8 fixes

4 years ago[pkg] fold in changes 0.4.2
Ivan Alejandro [Wed, 26 Aug 2015 19:28:30 +0000 (16:28 -0300)]
[pkg] fold in changes

4 years ago[tests] add pep8/flake8 ignores
Kali Kaneko [Mon, 17 Aug 2015 23:24:41 +0000 (19:24 -0400)]
[tests] add pep8/flake8 ignores

4 years ago[style] pep8 fix
Kali Kaneko [Mon, 17 Aug 2015 23:15:05 +0000 (19:15 -0400)]
[style] pep8 fix

4 years ago[feature] allow passing callback to http client
drebs [Tue, 11 Aug 2015 14:44:42 +0000 (11:44 -0300)]
[feature] allow passing callback to http client

4 years ago[feat] WHEELHOUSE can be a url + --use-leap-wheels
Parménides GV [Tue, 4 Aug 2015 12:59:36 +0000 (14:59 +0200)]
[feat] WHEELHOUSE can be a url + --use-leap-wheels

--use-leap-wheels sets --trusted-host (remove it when we have a proper
  cert) and WHEELHOUSE to https://ftp.lizard.leap.se

Until we get ftp.lizard cname, use lizard as the wheels server.

4 years ago[bug] HTTP timeout was not being cleared on abort
Bruno Wagner [Tue, 4 Aug 2015 21:44:21 +0000 (18:44 -0300)]
[bug] HTTP timeout was not being cleared on abort

In case the http client loses connection, it has to clear
it's timeout or the reactor will be left in a dirty state
Fixing this solves a problem with some of the tests in Soledad
that were trying to run on a dirty reactor

4 years ago[tests] ignore trial temp folder
Kali Kaneko [Tue, 4 Aug 2015 03:24:49 +0000 (23:24 -0400)]
[tests] ignore trial temp folder

4 years ago[feat] use wheels to install dependencies
Parménides GV [Thu, 30 Jul 2015 16:29:59 +0000 (18:29 +0200)]
[feat] use wheels to install dependencies

generate_wheels uses $WHEELHOUSE to generate and store the wheels for
requirements.pip and requirements-testing.pip (if it exists).

pip_install_requirements.sh installs requirements.pip from them if
possible (if not, then it fetches them from pypi) or, if passed the
--testing flag, it installs requirements-testing.pip.

4 years ago[docs] remove ref to protobuf from README
Kali Kaneko [Wed, 29 Jul 2015 20:08:30 +0000 (16:08 -0400)]
[docs] remove ref to protobuf from README

we stopped using protobuf after the events submodule refactor

4 years ago[bug] register and unregister controlled by flag
Victor Shyba [Wed, 29 Jul 2015 16:34:08 +0000 (13:34 -0300)]
[bug] register and unregister controlled by flag

Since register and unregister cant be used without full zmq initialization,
it should make sense to also check flag for them.

4 years ago[refactor] Extract flags check to caller
Victor Shyba [Wed, 29 Jul 2015 16:30:41 +0000 (13:30 -0300)]
[refactor] Extract flags check to caller

Checking was done inside of emit method. Doing on emit function at
a module level makes it cleaner with less lines inside of check.

4 years ago[test] set flag before starting client
Victor Shyba [Tue, 28 Jul 2015 19:48:04 +0000 (16:48 -0300)]
[test] set flag before starting client

Test client will only start with flag set to True.
Change EventsGenericClientTestCase to set the flag on the
first line of setUp.

4 years ago[bug] Consider events flag when ensuring client
Victor Shyba [Tue, 28 Jul 2015 19:26:14 +0000 (16:26 -0300)]
[bug] Consider events flag when ensuring client

Change EventsClientThread behavior so it won't start anymore if
the events flag is set to False

4 years ago[style] more pep8 cleanup
Kali Kaneko [Tue, 28 Jul 2015 15:41:32 +0000 (11:41 -0400)]
[style] more pep8 cleanup

4 years ago[tests] add pep8 to requirements-testing
Kali Kaneko [Tue, 28 Jul 2015 13:55:33 +0000 (09:55 -0400)]
[tests] add pep8 to requirements-testing

4 years ago[pkg] add AUTHORS file + one-liner to generate it
Kali Kaneko [Tue, 28 Jul 2015 02:32:38 +0000 (22:32 -0400)]
[pkg] add AUTHORS file + one-liner to generate it

4 years ago[pkg] add script to install base requirements
Kali Kaneko [Tue, 28 Jul 2015 01:42:47 +0000 (21:42 -0400)]
[pkg] add script to install base requirements

- update pip
- install base reqs, with insecure flags for dirspec. fuck canonical.

4 years ago[tests] fix initialization of basetest case
Kali Kaneko [Thu, 23 Jul 2015 20:36:12 +0000 (16:36 -0400)]
[tests] fix initialization of basetest case

4 years ago[style] fixed pep8 warnings on http and test events
Bruno Wagner [Thu, 23 Jul 2015 03:09:03 +0000 (00:09 -0300)]
[style] fixed pep8 warnings on http and test events

4 years ago[tests] fixed events tests
Bruno Wagner [Thu, 23 Jul 2015 03:00:39 +0000 (00:00 -0300)]
[tests] fixed events tests

The events tests check for register and emit signals,
but because the flag set_events_enabled was False by
default in the tests, no signals were being emitted.

I added the flag to the setUp and tearDown of the tests,
they are still very slow but at least they are passing now

4 years ago[tests] implemented http feature according to test
Bruno Wagner [Thu, 23 Jul 2015 02:55:39 +0000 (23:55 -0300)]
[tests] implemented http feature according to test

Two test cases were broken and were implemented here:

The first was that HTTPClient should share the connection between
clients if a pool was not passed explicitly. If you initialize an
HTTPClient without a pool, it will reuse a pool created on the class.

The second was that you should be able to pass to the HTTPCLient a pool
on initialization. Added that possibility and fixed the tests accordingly

4 years ago[tests] set environment for certs test
Bruno Wagner [Wed, 22 Jul 2015 22:17:03 +0000 (19:17 -0300)]
[tests] set environment for certs test

4 years ago[tests] added setuptools_trial so the tests run using python setup.py test
Bruno Wagner [Wed, 22 Jul 2015 20:04:34 +0000 (17:04 -0300)]
[tests] added setuptools_trial so the tests run using python setup.py test

4 years ago[style] fixed extra requires typo
Bruno Wagner [Wed, 22 Jul 2015 19:51:51 +0000 (16:51 -0300)]
[style] fixed extra requires typo

4 years ago[style] Fixed pep8 warnings
Bruno Wagner [Wed, 22 Jul 2015 18:38:56 +0000 (15:38 -0300)]
[style] Fixed pep8 warnings

4 years ago[bug] fix events ioloop client tests
drebs [Thu, 23 Jul 2015 20:03:50 +0000 (17:03 -0300)]
[bug] fix events ioloop client tests

The events ioloop client is not completelly thread safe, so we have to use
reactor.callFromThread whenever we need it to be thread-safe. Examples of this
behaviour are the events ioloop client tests that depend on the firing of
deferreds, which are not thread safe. This commit fixes tese tests.

4 years ago[bug] add http request timeout
drebs [Wed, 8 Jul 2015 22:15:56 +0000 (19:15 -0300)]
[bug] add http request timeout

The connectTimeout parameter of twisted.web.client.Agent only acts on the
connection setup, and the Agent will wait forever for incoming data after the
connection has been established.

This commit adds a timeout for the connection, and will cancel the deferred if
the result has not been received after a certain number of seconds.

4 years ago[feat] add close method for http agent
drebs [Wed, 8 Jul 2015 22:14:00 +0000 (19:14 -0300)]
[feat] add close method for http agent

The ability to close cached connections is needed in order to have a clean
reactor when the program ends.

4 years ago[feature] add global flag for disabling the events framework
Kali Kaneko [Mon, 13 Jul 2015 15:48:47 +0000 (11:48 -0400)]
[feature] add global flag for disabling the events framework

this will be used to allow the unittests to disable the events
framework. this way, emit() will become a passthrough.

note that, until now, the basetest class is making use of the threaded
version of the client, which launches a zmq tornado-based ioloop. this
is wrong, and will have to be addressed in a future commit. we'll have
to make use of the global EVENTS_ENABLED flag in the txclient version
when those changes are made.

Related: #7259
Relases: 0.4.2

4 years ago[bug] do not add a port string to non-tcp addresses
Kali Kaneko [Mon, 20 Jul 2015 23:18:03 +0000 (19:18 -0400)]
[bug] do not add a port string to non-tcp addresses

this, together with the events server registration, was breaking the
events signalling on the client whenever it used ipc:// sockets.

4 years ago[refactor] remove use of reactor in threaded version of events client
Kali Kaneko [Mon, 20 Jul 2015 19:18:57 +0000 (15:18 -0400)]
[refactor] remove use of reactor in threaded version of events client

the idea is that we'll be able to use the threaded version of the
client, which makes use of the tornado ioloop, in a non-twisted module,
like the main graphical client probably will be in the near future.

4 years ago[pkg] fold in changes 0.4.1
Ivan Alejandro [Fri, 10 Jul 2015 17:17:02 +0000 (14:17 -0300)]
[pkg] fold in changes

4 years ago[bug] run callback from thread in events client
drebs [Fri, 26 Jun 2015 17:45:19 +0000 (14:45 -0300)]
[bug] run callback from thread in events client

4 years ago[bug] allow passing ':0' as port in events address
drebs [Fri, 26 Jun 2015 17:44:37 +0000 (14:44 -0300)]
[bug] allow passing ':0' as port in events address

4 years agoMerge branch 'feature/post-sync-hooks' into develop
Ruben Pollan [Mon, 15 Jun 2015 19:24:59 +0000 (21:24 +0200)]
Merge branch 'feature/post-sync-hooks' into develop

4 years ago[bug] catch missing section header error
Kali Kaneko [Wed, 10 Jun 2015 18:52:11 +0000 (14:52 -0400)]
[bug] catch missing section header error

4 years ago[feature] utility collect_plugins
Kali Kaneko [Fri, 5 Jun 2015 17:11:56 +0000 (13:11 -0400)]
[feature] utility collect_plugins

to be used in post-sync hooks.

Related: #6996
Releases: 0.4.1

4 years ago[bug] remove extraneous data from events logs
drebs [Thu, 11 Jun 2015 14:54:10 +0000 (11:54 -0300)]
[bug] remove extraneous data from events logs

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.

4 years ago[bug] Makes request method respect a hard limit
Victor Shyba [Mon, 8 Jun 2015 18:18:00 +0000 (15:18 -0300)]
[bug] Makes request method respect a hard limit

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. :)

4 years ago[bug] allow ipc socket types
Kali Kaneko [Tue, 2 Jun 2015 21:27:42 +0000 (17:27 -0400)]
[bug] allow ipc socket types

previous regex wasn't capturing addresses of type ipc://<path>

Closes: #7089

4 years agoMerge tag '0.4.0' into develop
Ivan Alejandro [Wed, 3 Jun 2015 17:42:52 +0000 (14:42 -0300)]
Merge tag '0.4.0' into develop

Tag leap.common version 0.4.0

4 years ago[pkg] add pyzmq and txzmq dep versions
drebs [Tue, 2 Jun 2015 18:05:19 +0000 (15:05 -0300)]
[pkg] add pyzmq and txzmq dep versions

4 years agoMerge branch 'shyba/feat/twisted_http_get' into develop
Ruben Pollan [Tue, 2 Jun 2015 22:29:13 +0000 (00:29 +0200)]
Merge branch 'shyba/feat/twisted_http_get' into develop

4 years ago[feat] Make it optional to have a dedicated pool
Victor Shyba [Wed, 27 May 2015 20:19:13 +0000 (17:19 -0300)]
[feat] Make it optional to have a dedicated pool

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.

4 years ago[bug] Use BrowserLikePolicyForHTTPS for checking
Victor Shyba [Wed, 27 May 2015 15:49:44 +0000 (12:49 -0300)]
[bug] Use BrowserLikePolicyForHTTPS for checking

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.

4 years ago[pkg] fold in changes 0.4.0
Ivan Alejandro [Mon, 1 Jun 2015 18:20:21 +0000 (15:20 -0300)]
[pkg] fold in changes

4 years ago[bug] use dict keys to iterate
Victor Shyba [Wed, 27 May 2015 21:51:44 +0000 (18:51 -0300)]
[bug] use dict keys to iterate

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

4 years ago[feat] add initialization of events to BaseLeapTest
Ruben Pollan [Mon, 18 May 2015 22:31:05 +0000 (00:31 +0200)]
[feat] add initialization of events to BaseLeapTest

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.

4 years ago[feat] refactor events to use ZMQ
drebs [Wed, 4 Feb 2015 17:04:10 +0000 (15:04 -0200)]
[feat] refactor events to use ZMQ

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

4 years ago[refactor] move http twisted code from soledad
Ruben Pollan [Tue, 26 May 2015 20:06:20 +0000 (22:06 +0200)]
[refactor] move http twisted code from soledad

Implements an HTTP client the twisted way, with a focus on pinning the
SSL certs.

* Related: #6506

4 years ago[bug] get certificate times as UTC, add tests
Ivan Alejandro [Wed, 20 May 2015 21:39:10 +0000 (18:39 -0300)]
[bug] get certificate times as UTC, add tests

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

4 years agoFold in changes. 0.3.10
Ivan Alejandro [Mon, 26 Jan 2015 16:40:47 +0000 (13:40 -0300)]
Fold in changes.

4 years agoConsider different possibilities for tmpdir.
Ivan Alejandro [Mon, 12 Jan 2015 20:13:05 +0000 (17:13 -0300)]
Consider different possibilities for tmpdir.

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.

5 years agoAdd support for deferreds to memoize_method decorator
Ruben Pollan [Wed, 3 Dec 2014 16:40:38 +0000 (10:40 -0600)]
Add support for deferreds to memoize_method decorator

5 years agoExtract the environment set up and tear down for tests
Ruben Pollan [Wed, 3 Dec 2014 15:42:45 +0000 (09:42 -0600)]
Extract the environment set up and tear down for tests

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.

5 years agoMerge remote-tracking branch 'meskio/feature/cache_invalidation' into develop
Ivan Alejandro [Mon, 6 Oct 2014 16:07:59 +0000 (13:07 -0300)]
Merge remote-tracking branch 'meskio/feature/cache_invalidation' into develop

5 years agoAdd invalidation timeout to cache
Ruben Pollan [Tue, 16 Sep 2014 15:51:09 +0000 (10:51 -0500)]
Add invalidation timeout to cache

5 years agoMerge branch 'release-0.3.9' 0.3.9
Tomás Touceda [Fri, 18 Jul 2014 13:58:41 +0000 (10:58 -0300)]
Merge branch 'release-0.3.9'

5 years agoFold in changes
Tomás Touceda [Fri, 18 Jul 2014 13:57:43 +0000 (10:57 -0300)]
Fold in changes