summaryrefslogtreecommitdiff
path: root/src/leap/soledad/tests/test_leap_backend.py
AgeCommit message (Collapse)Author
2013-06-20Split client and server in two different packages and refactor.drebs
2013-05-30Fix pep8 style.drebs
2013-05-25Enforce dependency on simplejson.drebs
2013-05-25Add action validation in server.drebs
* Use routes for validating user actions when interacting with server. * Also add tests for action validation. * Add changes file. * Closes #2356.
2013-05-23Remove non-token auth schemes.drebs
* Closes #2371.
2013-05-15Fix pep8 style.drebs
2013-05-15Add MAC authentication to encrypted docs.drebs
* Fix review comments: * Use of literal string instead of self.STORAGE_SECRETS_KEY * Add mac_method param to mac_doc() * Verify mac_method in mac_doc() and raise in there if unknown method * Use different parts of storage_secret for generating doc passphrase and mac key. * Add changes file.
2013-05-15Change encrypt/decrypt doc functions name and signature.drebs
2013-05-14Refactor ssl monkey patching and fix https tests.drebs
2013-05-13Remove bootstrap param from Soledad.drebs
2013-05-04Encapsulate token-based auth in a class.drebs
2013-05-01Use common test method to assert documents with encrypted content.drebs
2013-05-01Add sync tests related to token auth.drebs
2013-05-01Include tests for HTTPDatabase and token auth.drebs
2013-05-01Add token tests for TestLeapClientBase.drebs
2013-05-01Add token tests in LeapTests.drebs
2013-05-01Include tests for SoledadApp and Token auth.drebs
Also, fix soledad instantiation to include a cert_file param.
2013-05-01Add missing tests from TestRemoteSyncTargets.drebs
2013-04-30Update tests with monkey patching to always use our SyncTarget.drebs
2013-04-25Fix symmetric encryption when syncing.drebs
Also does: * Remove all crypto methods from LeapDocument. * Encode 'encryption_scheme' inside the document JSON. * Add functions for encrypting and decrypting. * Fix LeapSyncTarget so its connection actually returns a LeapSyncTarget. * Fix symmetric encryption when syncing: - don't try to encrypt tombstone documents. * Fix symmetric decryption when syncing: - Only try do decrypt if the incoming document has an '_encryption_scheme' entry with value equal to EncryptionSchemes.PUBKEY. * Fix doc skipping for non-syncable docs. * Fix tests that compared raw content with encrypted content.
2013-04-23Add encryption_scheme property to LeapDocument.drebs
2013-04-23Separate crypto-related stuff from Soledad class.drebs
This creates a SoledadCrypto object that should encapsulate everything related to crypto in Soledad. Also, replace hmac for sha256 when creating hashes.
2013-03-07Move source files to proper subdirectory.drebs