summaryrefslogtreecommitdiff
path: root/src/leap/common/tests
AgeCommit message (Collapse)Author
2015-07-28[style] more pep8 cleanupKali Kaneko
2015-07-23[tests] fixed events testsBruno Wagner
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
2015-07-23[tests] implemented http feature according to testBruno Wagner
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
2015-07-23[tests] set environment for certs testBruno Wagner
2015-07-23[style] Fixed pep8 warningsBruno Wagner
2015-07-23[bug] fix events ioloop client testsdrebs
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.
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-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-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
2013-12-19add cache invalidationKali Kaneko
2013-07-25Fix events doc about reqcbk signature. Closes #3261drebs
2013-07-24Add doc and tests about events sync/async behaviour.drebs
* Also fix docstrings identation so sphynx doesn't complain.
2013-07-24Trying to init events server raises when given port is not free.drebs
* Also fix and improve some tests.
2013-07-24Refactor events so components become clients.drebs
2013-07-08Add tests for leap_assert*Tomás Touceda
2013-06-21Merge remote-tracking branch ↵Tomas Touceda
'drebs/feature/2602-remove-soledad-strict-dependency-on-leap.common' into develop
2013-06-13Add possibility of unregistering in events mechanism.drebs
2013-06-05Move symmetric encryption code to leap.soledad.drebs
2013-05-29Remove keymanager from this repository.drebs
2013-05-28Fix wrong iv test to account for new form of iv.drebs
2013-05-28Use indexes to fetch keys.drebs
2013-05-21Remove openpgp symmetric encryption.drebs
2013-05-20Adapt get_key() and send_key() to the spec.drebs
* Use session_id instead of token for now. * Receive info needed to interact with webapp API as params and setters/getters. * Use the webapp API for sending the key to server. * Prevent from refreshing own key.
2013-05-21use temporary openpgpwrapper as a context managerKali Kaneko
in this way we implicitely catch any exception during the wrapped call, and ensure that the destructor is always called.
2013-05-18Adapt keymanager tests for latest Soledad api.drebs
2013-05-16Add crypto submodule that handles AES-256-CTR encryption.drebs
2013-05-16Fix pep8 style.drebs
2013-05-14Add dependency on soledad and install tests.drebs
2013-05-11Encrypt/decrypt can also sign/verify.drebs
Also Implement code review comments for openpgp sign. * Add assertions and exceptions to openpgp encrypt/decrypt/sign/verify methods. * Added comments where they will help. * Make code more clear by encapsulating more the access to GPG wrapper and removing concatenation of ascii armored keys. * Add verification of fingerprint of verifying key. * Shorten check for signing key id.
2013-05-09Add sign/verify to keymanager's openpgp.drebs
2013-05-02Add tests for key management remote methods.drebs
2013-05-02Various fixesTomas Touceda
2013-04-29Remove gpg reference on Soledad usage.drebs
2013-04-27Use 'requests' module in KeyManager.drebs
2013-04-27Add key refreshing for KeyManager.drebs
2013-04-23Refactor, fixes, add api, tests.drebs
* Change KeyTypeWrapper to EncryptionScheme * Change OpenPGPWrapper to OpenPGPScheme * Add missing and standardized crypto API. * Add delete_key() * Fix put_key raw so it puts either public or private keys. * Fix gpg's is_encrypted() * Fix openpgp's safe callbacks so they return correctly. * Remove binascii because it generates invalid doc ids. * Add tests.
2013-04-22Add send_keys() and refresh_keys() to Key Manager.drebs
2013-04-19Make keymanager OpenPGP wrapper store using Soledad.drebs
2013-04-15Add basic openpgp key handling to Key Managerdrebs
2013-04-01Add tests for events mechanism.drebs