summaryrefslogtreecommitdiff
path: root/service/test/unit/config
AgeCommit message (Collapse)Author
2017-03-30[#1018] Upgrades twisted from 16.1.1 to 17.1.0Sriram Viswanathan
2017-01-21Remove old UploadKeyError testTulio Casagrande
I was surprised this test was not working correctly.
2017-01-21Re-raise the same exception to keep contextTulio Casagrande
2017-01-21Make registering of events for fresh accounts a bit more robust by replacing ↵Ola Bini
the old events if they were not cleaned up after previous errors
2017-01-20Rebase previous PR on current master - see PR #915 for detailsOla Bini
2017-01-20Merge pull request #916 from olabini/fix-broken-assert-welcome-emailTulio Casagrande
Fix broken test for default language for user
2017-01-19Add copyright statements to all Python files that doesn't have itOla Bini
2017-01-19Fix broken test for default language for userOla Bini
2017-01-17[#885] Adds test to ensure the right type for user_uuid and passphraseThais Siqueira
with @tayanefernandes
2017-01-13Mock register events to not complain about zmq certsTulio Casagrande
Related with: #815
2017-01-12Re-raise the exception after closing the sessionTayane Fernandes
We were trying to setup services even after closing the session. We fixed it and added unit test. Related with: #815
2017-01-03Fixed mockito conflict with zopeBruno Wagner
I bumped into this problem where trial would try to clean up after running the SiteTest and run into an error 'RememberedInvocation has no attribute "_implied"' That happened because mockito is strict with the set of functions it's mock accepts and _implied doesn't exist. It didn't really make sense in this test context so I've adapted the test to use MagicMock instead and now the test pass without problems.
2017-01-02[#815] regenerating new keys when the current one expiresNavaL
2016-11-24mock out event registration for failing test in SnapCIRoald de Vries
2016-11-24remove another unnecessary patchRoald de Vries
2016-11-24remove an unnecessary patchRoald de Vries
2016-11-23skip the test that is failing in snap only in snapRoald de Vries
2016-11-23skip the test that is failing in snap but not locallyRoald de Vries
To find out if there are more failing tests.
2016-11-23replace stdlib's unittest with trials's unittest for all unittestRoald de Vries
2016-11-04[#795] fixed missing yield on authenticate in leap initialize for activist modeNavaL
2016-11-03 [#792] refactor pixelated-register and removed leap.auth dependencyNavaL
2016-11-03 [#792] fix pixelated-registerNavaL
2016-10-28authentication now returns AuthenticationNavaL
leap session creation is only done post-interstitial and that logic is also extracted into its own class #795
2016-09-26rearranged leap session creation to not sync nor setup account/fetcher, when ↵NavaL
using the cache Issue #773
2016-09-08Fixed test to correctly mock the mail_fetcherBruno Wagner
2016-08-19Started deferring leap session creation #759Bruno Wagner
Started adapting get_leap_session to deferreds Soledad and keymanager setup calls will now happen in deferreds and leap session creation itself is a deferred with callbacks This is a start in breaking the big blocking calls we were doing on the main thread, this was done without changing code inside the leap libraries yet so things can be further optimized This breaks the ~4 seconds get_leap_session piece into smaller 1 seconds one, that can be further optimized and deferred to even smaller calls There are requests calls happening on the main thread that should get this number even further down Also moved some pieces from bitmask libraries to our bootstrap, because they are not bitmask libraries anymore and that was causing confusion
2016-08-19Normalizing single and multi user bootstrap #759Bruno Wagner
Consolidated authentication to always be done is a defer to thread and changed the authenticate_user method name to conform with what it actually does
2016-06-24Issue #694 add an admin restricted resource for user statsNavaL
2016-05-13Issue #691: Refactor to Twisted 16.1.1Felix Hammerl
2016-05-11Remove dispatcher references from serviceCaio Carrara
Since we're not using dispatcher anymore, it doesn't make sense to keep dispatcher references and program flows that depend on it. For example, it doesn't make sense keep the flag --organization-mode, so it was removed as well.
2016-02-24Recreate session on soledad problemsFolker Bernitt
- Issue #615 - invalid token raised by soledad after timeout, if we see this, recreate the session on next login
2016-02-20Add recommended security headers from #618Paulo Schneider
2016-02-05closing the services closes leap session, which stops background tasks, ↵NavaL
close soldedad and remove it from cache Issue #586
2016-01-28Add Strict-Transport-Security header to user agentFolker Bernitt
- Issue #584
2015-09-29Fixed length check for password to mirror the leap webappBruno Wagner
2015-09-28Leap web requires 8 length password, so we'll do it on UA tooBruno Wagner
2015-09-04#304 Include CSP header support to more browsersGiovane
2015-09-03#304 Adds PixelatedSite class to hold custom request configuration and ↵Giovane
remove foundation inline javascript.
2015-06-13[rename] tested app_factory code is now on application moduleVictor Shyba
2015-06-13[tests] Enabling 2 skipped testsVictor Shyba
Adapted to run on current application module
2015-06-05Added creation of input mail from python messageBruno Wagner
That way we don't need extra logic for the welcome mail, we just have to read the file and send the contents to the input mail parser and that's it. Also moved the logic of adding a welcome mail to the mailboxes because it has knowledge of mailbox methods anyways.
2015-06-05Moved register out of application like maintenanceBruno Wagner
2015-06-05Refactoring the config, logging_setup is now called loggerBruno Wagner
2015-06-04Config dispatcher and config_ua are now in credentialsBruno Wagner
2015-06-03Move reactor logic out of application initializationrafael lisboa
2015-06-03Creating a leap session is now part of leap initBruno Wagner
We've moved the init soledad method to the leap_initialization module and gave it a meaningful name, because it was initializing the whole leap session instead of only soledad, because of that we removed some of the uneeded config files and deduplicated some code on maintenance to use the same facilities. Some arguments had non-meaningful variable names and args was being passed everywhere (it was unclear who was using which variables in the args) We changed the initialization to pass those arguments explicitly, then we can factor them out sometime when it makes sense
2015-06-03Dispatcher tests were not reflecting the args parser changesBruno Wagner
2015-06-03Fixed tests after app changesBruno Wagner
2015-04-13Merge pull request #371 from enzoz/validates_username_before_create_accountBruno Wagner Gonçalves
Validates username before request user creation on leap server
2015-04-10Allows dot on username.Enzo Zuccolotto
-- Issue #147 @anikarni and @enzoz pairing