Commit Graph
42 Commits
Author SHA1 Message Date
Antoine Nguyen 00a112dbcb Merge branch 'master' into refacto/vuejs_interface 2020-10-21 16:43:38 +02:00
Antoine NguyenandGitHub a40d46db94 Feature/tfa (#2037)
* WIP: two-factor authentication.

* Added support for 2FA using TOTP devices.

see #1760 #1672 #1455

* Added documentation.

* Updated documentation.

* Added missing qrcode requirement.

* Fixed unit tests.
2020-10-21 10:42:56 +02:00
Antoine Nguyen 8898eda7c4 Merge branch 'master' into refacto/vuejs_interface 2020-10-07 10:14:27 +02:00
Antoine NguyenandGitHub 3df446f657 Moving back the stats module to the core. (#2011)
* Moving back the stats module to the core.

* Added system packages to build RRDtool.

* Fixed unit tests.

* Improved coverage.
2020-09-17 16:02:39 +02:00
Antoine Nguyen 57d68390c5 Added greenlet support for coverage. 2020-06-17 12:03:12 +02:00
Antoine Nguyen 12399a5fad Trying to fix coverage report. 2020-06-15 18:57:21 +02:00
Antoine Nguyen f3e1f405d5 Moved coverage option to config file. 2020-06-15 14:30:06 +02:00
Antoine Nguyen 4053204c38 WIP: new policy daemon. 2020-06-12 17:59:06 +02:00
ClemRiviere e2492a08b0 Code improvements 2020-04-15 15:05:57 +02:00
ClemRiviere 8df80cc5b2 Updating test_project settings 2020-04-15 13:32:50 +02:00
jeromelebleuandGitHub 916b4a2367 Update settings template and test_project's one (#1830) 2020-02-27 10:27:22 +01:00
Jérôme LebleuandAntoine Nguyen db12a4aeef test: skip ldapsync if it is not available 2020-01-07 09:34:39 +01:00
Antoine NguyenandGitHub ab592c3d02 LDAP synchronization process (#1732)
* Initial commit for LDAP sync process.

* Fixed unit tests.

* Added doc and run ldapsync tests on travis.

* Removed server address.

* Force bytes when calling ldap methods.

* Fixed tests compat with python2.

* Do not force bytes here.

* Force bytes.

* Force bytes for attribute names too.

* Disable bytes mode in PY2.

* Handle account removals.

* Fixed unit tests.

* Limit sync to simple users.

* Fixed unit test.

* Fixed unit test.
2019-05-07 10:48:00 +02:00
Antoine Nguyen 277602e3f0 New DNS checks.
see #1618
2018-11-19 18:54:12 +01:00
Antoine Nguyen 9bebc8b04e Few fixes. 2018-10-05 14:06:59 +02:00
Antoine Nguyen 09c2ce7972 Updated test config. 2018-10-05 14:06:59 +02:00
Antoine Nguyen 185dc090f5 Removed useless file. 2018-10-04 16:59:16 +02:00
Antoine Nguyen e83c566c1d Revert wrong changes. 2018-10-04 10:09:32 +02:00
Antoine Nguyen 9a0a5a96af Added docker-compose file for development. 2018-08-19 17:07:27 +02:00
Andrew Fyfe 87e8a32063 whitespace fixes 2018-02-03 00:59:06 +00:00
Andrew Fyfe 24a7ca6a9e sort imports using isort
pip install isort
isort -y
2018-02-03 00:43:59 +00:00
Andrew Fyfe 8a1d5736c9 fix quotes
This ensures all files use " for quotes with the exception of
migrations, as this are auto generated I've not modified them.

pip install unify
unify --in-place --recursive --quote \" .
2018-02-03 00:43:58 +00:00
Andrew Fyfe 042d0a8501 add IPv6 support to mx check
- add support for looking up IPv6 addresses (socket.getaddrinfo)
- add support for International Domain Names in case the DNS reponse contains one, to_unicode() decodes them to a utf8 string
- add logging for potential configuration errors:
    - DNS configuration errors (i.e. no MX records)
    - server name resolution errors (i.e. resolv.conf doesn't contain a working name server)
    - invalid values in MX records
- when looking up an ip address, don't stop on the first failure check all addresses
- update mock results for tests, return a real MX record for mock dns queries
2018-01-04 21:52:02 +00:00
Andrew Fyfe 92963a0f4c update test_project files
synced with a fresh deployment using django 1.11.8
2017-12-19 01:24:15 +00:00
Andrew Fyfe 892160d5aa updates for django 1.11 support
- MIDDLEWARE_CLASSES is replaced by MIDDLEWARE

- add MiddlewareMixin to modoboa middlewares

- on_delete will become a required parameter for ForeignKey()
  set it to the current default CASCADE

- on_delete will become a required parameter for OneToOneField()
  set it to the current default CASCADE

- reverse and reverse_lazy have moved to django.urls

- RadioChoiceInput widget has been removed, replace with HorizontalRadioSelect
2017-12-19 00:50:53 +00:00
Antoine NguyenandGitHub 98eea782a0 Generic transport editor. (#1309)
Generic transport editor.

see #1301

* Fixed unit test.

* Added unit tests.

* Fixed unit test.

* Added transport module to test list.

* Moved relay transport backend to appropriate app.

see #1301

* Added missing file.
2017-11-27 10:42:27 +01:00
Antoine Nguyen c236d60bd9 Replaced django-passwords by django's builtins.
see #1153
2017-06-22 15:53:58 +02:00
Arthur Vuillard 615f73f272 unicode_literals everywhere and modoboa-admin deploy fixes 2017-05-11 09:25:42 +02:00
Antoine Nguyen 78da3240fb Fixed test settings.
see #1078
2017-03-16 12:08:10 +01:00
Antoine Nguyen 183723c609 Fixed test urls.
see #1024
2017-02-10 14:45:43 +01:00
Antoine Nguyen ee71016b69 Fixed test settings.
see #1024
2017-02-10 14:39:57 +01:00
Antoine Nguyen adf4750c1f Fixed tests configuration.
see #989
2017-01-18 13:57:41 +01:00
Antoine Nguyen d1b59cc312 WIP
see #951
2016-10-28 15:48:08 +02:00
Christian Wiegand 0fd1fafef3 Changed string delimiters form ' to ". Moved the webmail locale datetime formatting settings to new settings.py in webmail module. 2016-10-06 15:53:44 +02:00
Christian Wiegand 169d07b8fa localization of email headers, added the datetime format settings in test_project settings.py with some docs 2016-10-06 14:49:16 +02:00
Gael Pasgrimaud c87240eefb allow to use tox to run tests/serve locally in an easy way 2016-09-13 11:47:21 +02:00
Antoine Nguyen 489327dda6 Fix test settings.
see #867
2016-04-29 14:09:34 +02:00
Gael Pasgrimaud 101a773bfd introduce test_settings 2016-03-10 12:46:44 +01:00
Gael Pasgrimaud 6b6e16d073 run tests with mysql 2016-03-07 14:54:52 +01:00
Antoine Nguyen c4ec4f447c Update test config. 2015-11-27 14:53:53 +01:00
Antoine Nguyen 39444fbf54 Update travis config. 2015-11-09 19:14:06 +01:00
Antoine Nguyen ef7e345977 codecov 2015-09-23 13:52:39 +02:00