Commit Graph
40 Commits
Author SHA1 Message Date
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 2101adff1b Improved coverage and added FR translation. 2018-11-20 10:37:07 +01:00
Andrew Fyfe 3bfd977e02 Merge branch 'master' into feature/codacy 2018-04-12 21:19:30 +01:00
Christophe CHAUVETandGitHub 3b4cf12e68 Fix tox serve command (#1463)
* Fix tox serve command
* Fix tests fail on travis
2018-04-12 19:26:35 +02:00
Andrew Fyfe fcb466883d replace landscape.io with codacy
landscape.io hasn't worked since late 2017.
2018-02-03 01:11:51 +00:00
Antoine NguyenandGitHub 363c91d9f3 Merge pull request #1363 from fyfe/prepare-for-release
prepare for release
2018-01-25 10:35:14 +01:00
Antoine Nguyen c6e25b0c77 travis: fixed deploy condition syntax. 2018-01-25 10:01:57 +01:00
Antoine Nguyen 14f5d9da34 Updated travis config to include a deploy step. 2018-01-25 09:40:50 +01:00
Andrew Fyfe 4f98ffbb4d don't silence pip
it can provide useful information when you break something
2018-01-24 22:39:50 +00:00
Andrew Fyfe 9923b9362f fix test database setup
Django automatically renames test databases to 'test_%s' % settings.DATABASES[*]["NAME"], so modoboa_test became test_modoboa_test. There's no point creating the database in `before script` as the test suite creates it.

https://docs.djangoproject.com/en/1.11/topics/testing/advanced/#django.db.connection.creation.create_test_db

- target oldest currently supported database servers, travis currently defaults to PostgreSQL 9.2 which isn't supported anymore.

- move database dependencies out of travis.yml into test_requirements.txt and pin to minimum versions recommended by django.
  See https://docs.djangoproject.com/en/1.11/ref/databases/

- use MySQL root user for tests, we already use the root user (postgres) for PostgreSQL.

- fix typo in modoboa/test_settings for DB variable, default should be POSTGRESQL not POSTGRES

- enable MySQL strict mode (on by default on MySQL >= 5.7)
  See https://docs.djangoproject.com/en/1.11/ref/databases/#mysql-sql-mode
2018-01-04 16:36:52 +00:00
Andrew Fyfe e6befb3de9 standardise travis.yml across modoboa extensions 2017-12-19 00:50:51 +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
Arthur Vuillard 3ffa3a5396 improvements in using six ; tests in modoboa.core in both python 2 and 3 2017-05-11 16:37:19 +02:00
Arthur Vuillard b5617479e3 remove useless module in test command for travis 2017-05-11 15:30:33 +02:00
Antoine Nguyen 6644ca3a55 Added python 3.4 to test matrix.
see #755
2017-05-10 19:09:02 +02:00
Antoine Nguyen f9ef3cb649 Updated travis config. 2017-03-16 16:11:58 +01:00
Christophe CHAUVETandAntoine Nguyen 12061c2b46 Improve travis (#1028)
* Improve travis speed to check database test before send command

* Fix bad test to detect the correct database driver

* Add cache for pip
2017-02-10 18:05:57 +01:00
Antoine Nguyen f794b9d9cb Try to fix unit tests.
see #989
2017-01-18 14:08:21 +01:00
Antoine Nguyen d1b59cc312 WIP
see #951
2016-10-28 15:48:08 +02:00
Antoine Nguyen e437ffc31e LDAP authentication unit testing.
see #870
2016-05-03 17:07:16 +02:00
Gael Pasgrimaud 6b6e16d073 run tests with mysql 2016-03-07 14:54:52 +01:00
Antoine Nguyen ba4225f600 Install test requirements on Travis.
see #831
2016-02-04 08:26:07 +01:00
Antoine Nguyen 39444fbf54 Update travis config. 2015-11-09 19:14:06 +01:00
Antoine Nguyen a5733520bf Try with a develop... 2015-09-23 15:40:49 +02:00
Antoine Nguyen 7f09c0540a Use new travis architecture. 2015-09-23 15:37:24 +02:00
Antoine Nguyen 4dcfa87b51 Restore config. 2015-09-23 15:32:15 +02:00
Antoine Nguyen 73cde96cff Try with a different config. 2015-09-23 15:27:51 +02:00
Antoine Nguyen 628cfccf47 Deactivate first test... 2015-09-23 14:13:27 +02:00
Antoine Nguyen 5671dcdf78 Update. 2015-09-23 14:08:41 +02:00
Antoine Nguyen ef7e345977 codecov 2015-09-23 13:52:39 +02:00
Antoine Nguyen 02ad4d92b0 Don't force Django version. 2015-08-26 10:40:47 +02:00
Antoine Nguyen 2d5f9eb462 Replace fixtures by migrations. 2015-01-29 12:17:02 +01:00
Antoine Nguyen de90b6b7d8 Fix tests runner with django 1.6 2014-11-18 21:09:51 +01:00
Antoine Nguyen f16368a0da Drop python 2.6 because unit tests refuse to start.
I need to find find the way to launch tests using python 2.6...
2013-11-15 18:15:12 +01:00
Antoine Nguyen 9ef83f9db9 Adding mysql-python as requirement. 2013-11-08 20:43:03 +01:00
Antoine Nguyen d295613ae6 Fix Django version. 2013-11-08 19:18:18 +01:00
Antoine Nguyen 2c2e4fc95b Adding debug. 2013-11-08 18:38:21 +01:00
Antoine Nguyen 7b636cb95b Try with only one silent test. 2013-11-08 17:02:46 +01:00
Antoine Nguyen bf3fe869f6 Fixing unit tests. 2013-11-08 16:29:15 +01:00
Antoine Nguyen 1fc330c28a Adding Travis support. 2013-11-08 13:50:45 +01:00