summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2017-04-03[test] remove randomness testerRuben Pollan
There was a test in the Keymanager refresher that was testing the randomness of the refreshing intervals. It was producing a bunch of intervals and checking that all of them where different. This test (rarelly) fails some times, but this is not a sign of bad randomness. - Resolves: #8813
2017-03-31[bug] Log error in case JSON parsing fails for decrypted docSriram Viswanathan
In addition to the UnicodeError exception in _process_decrypted_doc function, we have added ValueError to the exception list so that we can catch any error in JSON parsing, specially a 'NODATA' error that we were getting with some of the emails. This is in reference to issues - https://github.com/pixelated/pixelated-user-agent/issues/908 & https://github.com/pixelated/pixelated-user-agent/issues/981 - to ignore documents that have this problem and not have Soledad try to sync them again and again. with @deniscostadsc
2017-03-31[bug] fix errBack in _decrypt_doc in incoming mail serviceSriram Viswanathan
with @deniscostadsc
2017-03-30[feature] Creates methods for update recovery code.Thais Siqueira
Related with: https://github.com/pixelated/pixelated-user-agent/issues/924 with @aarni Signed-off-by: Ruben Pollan <meskio@sindominio.net>
2017-02-24[feature] require authentication token for apiKali Kaneko (leap communications)
implements a global auth token for the app. this token is written to .config/leap/authtoken, and passed to the anchor part of the landing URI when opening the index resource by the browser. - Resolves: #8765
2017-02-23[feat] eliminate the active user from bonafideRuben Pollan
Active user is now only a concept of the cli. For it we add a ~/.config/leap/bitmaskctl.cfg file. - Resolves: #8769
2017-02-09[feat] add account based keymanagement APIRuben Pollan
- Resolves: #8755
2017-01-26Check validity of key signatureZara Gebru
Check if a new fetched key was signed by a old key with the same address. Please do not merge before: https://github.com/isislovecruft/python-gnupg/pull/150 - Resolves #8112
2016-12-29[bug] avoid unicode conversion bugKali Kaneko (leap communications)
encode to ascii any parameter passed as unicode.
2016-12-29[feature] better param error handling in rest apiKali Kaneko (leap communications)
2016-12-29[refactor] reorganize APIKali Kaneko (leap communications)
so that whitelisting doesn't have to peek into the data. added more documentation and some tests stubs too.
2016-12-29[tests] add some tests for the apiKali Kaneko (leap communications)
2016-12-29[feature] authentication classes and testsKali Kaneko (leap communications)
2016-12-26[test] fix sender and helo for sending e2e test mailvarac
2016-12-26[test] make e2e test more robust, document depsvarac
2016-12-26[test] clean up output of e2e testvarac
2016-12-26[test] first working e2e testvarac
2016-12-26[test] fix path of getmail scriptvarac
2016-12-26[test] look for mail we just sendvarac
2016-12-26[test] add script for checking the mailKali Kaneko (leap communications)
2016-12-26[test] send mail with custom header to tmp_uservarac
2016-12-26[feat] serial script to create and auth userKali Kaneko (leap communications)
2016-11-30[tests] add unit tests for the keymanager token fixKali Kaneko (leap communications)
my goal here is also to start *real* unit tests for the keymanager, that do not need an actual soledad implementation. this should make all the coming tests much faster. I would like to have a common soledad stub that follows the soledad api, but w/o actual disk persistance, and migrate all the bulk of the keymanager tests to these unit tests.
2016-11-22[tests] fix keymanager tests after refactor and mergeZara Gebru
- some pep8 problems - some confusion with old and new code after merging from old keymanager
2016-11-22[tests] fix some refresher tests after the refactorKali Kaneko (leap communications)
disabled some tests that were failing, for some reason the twisted logger doesn't want to be patched? besides, I don't think it's a good idea to rely on log information for tests. what is it really that we were trying to test there?
2016-11-22[feature] keymanager: background update keysZara Gebru
Port of the original commit: 8f1fe8dd4a54fd2bdda2fc78c339ce9b3d0fc331 by Zara Gebru that introduced updating keys in the background. This was made in the legacy leapcode/keymanager repo, but was lost in the merge to the unified bitmask-dev. Original commit message follows: -------------------------------- - refresh random key in random time - add get key by fingerprint - refactor nicknym methods to own file - tests - note this do not include a check for revoked key, since that need some changes in gnupg - Related: #6089
2016-11-11[bug] get user parameter in the key commandsKali Kaneko (leap communications)
This has been previously encapsulated in a dict, and the commands were not modified accordingly. I'm adding some very basic test for the KeymanagerService public api contract. - Resolves: #8577
2016-11-04[tests] do not mock failuresKali Kaneko (leap communications)
in the variant that was merged, we call a failure method to get the exception, so it's better to test a real failure initialized with an exception. besides, I'm starting to hate mocks.
2016-11-04[bug] add tests for outgoing serviceTulio Casagrande
This commit originall contained a fix for a wrong variable name that avoided the outgoing service to be launched. This had been fixed in a concurrent mr that got merged before this one. However, this MR contained a couple of tests for the OutgoingService, and I'm merging those tests now.
2016-11-03[tests] _insert_key_docs is a deferredVictor Shyba
Missing yield from _insert_key_docs, which returns a Deferred, was causing tests to fail.
2016-10-19[feat] leap.mail: expose content charset as a separated attributeNavaL
Before we used to have content_doc.content_type = 'text/plain; charset="utf-8"'. Currently, we have content_doc.content_type = 'text/plain'. This change will give us, on top of that: content_doc.charset = 'utf-8'. One can reconstruct the original one using .content_type and .charset.
2016-10-07[tests] remove assertion, bundles are not deleted on exitKali Kaneko (leap communications)
2016-09-06[tests] factor out the common pieces to keymanager.testingKali Kaneko (leap communications)
2016-09-06[test] add speed tests for gpg/wrapper init/enc/decdrebs
this is a port of commit 2d9bec78f in the legacy keymanager repo. Additionally, I'm here separating benchmarking tests from the main tox run. In my machine several of these benchmarking tests seem to be broken, due to issue https://github.com/isislovecruft/python-gnupg/issues/157
2016-09-01[tests] move tests to root folderKali Kaneko (leap communications)
2016-08-29[pkg] remove rest of keymanager repoKali Kaneko (leap communications)