09f72fc091
add osusers.tests.test_admin.UserAdminTest
2014-06-01 22:37:43 +02:00
3db6b99a00
add osuser.tests.test_admin.UserCreationFormTest
2014-06-01 22:20:28 +02:00
5cc86b4790
change osusers.admin.UserCreationForm.save_m2m
...
- replace pass with a doc string to explain why this method does nothing
2014-06-01 22:18:16 +02:00
773dbea0fe
implement osusers.tests.test_admin.TaskResultInlineTest
2014-06-01 22:01:04 +02:00
a95c5044bd
remove unused gnuviechadmin.celery.debug_task
2014-06-01 21:29:39 +02:00
a663093433
make sure to not execute LDAP task
2014-06-01 21:28:24 +02:00
e56fdf5e80
Merge branch 'feature/managemails_tests'
2014-06-01 18:33:59 +02:00
d47f964cbc
update changelog
2014-06-01 18:32:59 +02:00
15ba5bd653
remove empty managemails.views
2014-06-01 18:32:47 +02:00
32de6257d3
add test for managemails.models.Mailbox.__str__
2014-06-01 18:29:41 +02:00
3407a5ed24
add tests for managemails.admin
2014-06-01 18:25:30 +02:00
b4a5e6c86b
Merge branch 'feature/domains_tests'
2014-06-01 16:47:47 +02:00
6197728330
update changelog
2014-06-01 16:47:37 +02:00
33e7fb29af
remove empty domains.views
2014-06-01 16:45:37 +02:00
6a931ad21c
add test for domains admin
2014-06-01 16:44:42 +02:00
842e207acc
complete coverage for osusers.models
...
- add tests for AdditionalGroups methods save, delete and __str__
- add TaskResultTest.test_update_taskstatus_finished
2014-06-01 16:30:14 +02:00
c270a6087e
add osusers.tests.test_models.ShadowTest
2014-06-01 16:09:30 +02:00
20f5686d85
add ShadowManagerTest
2014-06-01 15:42:32 +02:00
b37e44ccfd
add tests for osusers.models.User
...
- fix task name in Group.delete
- remove duplicate task from User.delete
- adapt osusers.tests.test_models.GroupTest.test_delete
- add tests to UserTest
- test_save
- test_delete_only_user
- test_delete_additional_groups
2014-06-01 15:26:01 +02:00
ceeffb6d1c
refactor UserManager.create_user
...
- remove duplicate create_ldap_group task
- create Shadow in User.set_password if necessary
- add test UserManagerTest.test_create_user_tasks for group task
2014-06-01 15:03:15 +02:00
83562ba2bf
implement test for User.set_password, add Shadow.set_password
2014-06-01 14:51:33 +02:00
df9800b827
add tests for osusers.models.UserManager
2014-06-01 14:43:42 +02:00
d82146987e
update changelog, document test process
...
- fix headline in index.rst
- add release 0.1 in changelog and add two more features
- add tests.rst documenting how to run the test suite and how to check test
coverage
2014-06-01 12:07:18 +02:00
c45e93be03
add tests for Group and GroupManager
2014-06-01 11:56:42 +02:00
7d9224db63
implement tests for TaskResult
...
- implement TaskResultTest and TaskResultManagerTest
2014-06-01 11:25:30 +02:00
79ced4a7e7
add mock to local and test requirements
2014-06-01 11:25:10 +02:00
8cec71fe1f
add test for osusers.models.Shadow.__str__
2014-06-01 01:45:50 +02:00
b9dd34d527
add initial osusers unit tests
2014-06-01 01:36:50 +02:00
e8285518a3
fix small group handling bugs
...
- use create_grouptaskresult instead of create for creating
GroupTaskResult
- use group.gid instead of non-existing group.id
2014-06-01 00:33:42 +02:00
d1abe10349
add release plugin and changelog
2014-06-01 00:17:57 +02:00
59783e986d
implement classes for tracking task status
2014-05-30 21:46:10 +02:00
865f54ab67
use primitive fields instead of models for tasks
...
- modify osusers.tasks and osusers.models to avoid serialization of full
models for celery tasks and use the required fields only
2014-05-30 18:39:51 +02:00
0c5706d886
use YAML for celery serialization
...
- add CELERY_ACCEPT_CONTENT, CELERY_TASK_SERIALIZER and
CELERY_RESULT_SERIALIZER in gnuviechadmin.settings.base
- add pyaml to requirements/base.txt
2014-05-30 18:36:26 +02:00
6a40a5eded
pass groupname only to delete_ldap_group_if_empty
2014-05-30 17:18:42 +02:00
561b2d64db
finish feature osusertoldap
2014-05-30 17:14:09 +02:00
6eb74f5b79
add more ldap tasks
...
- add custom celery router osusers.tasks.LdapRouter
- add tasks add_ldap_user_to_group, delete_ldap_group_if_empty,
delete_ldap_user and remove_ldap_user_from_group
- implement osusers.models.Group.save and osusers.models.Group.delete
- implement save, delete and set_password methods in osusers.models.User
- implement save and delete methods in osusers.models.AdditionalGroup
2014-05-30 17:10:22 +02:00
1e717556ba
refine ldap create commands
...
- define gnuviechadmin.settins.base.CELERY_ROUTES to properly route ldap tasks
- return dummy values from osusers.tasks
- add billiard, kombu and pytz to requirements/base.txt
2014-05-30 12:17:04 +02:00
caab322beb
implement user creation in osusers.admin
...
- add osusers.admin.UserCreationForm
- add dummy osusers.tasks implementation with create_ldap_group and
create_ldap_user
- fix UserManager.get_next_username
- add proper transaction handling in UserManager.create_user
- add calls to create_ldap_user and create_ldap_group to
UserManager.create_user
2014-05-25 23:35:14 +02:00
86b8f03704
add celery configuration to settings
2014-05-25 23:35:06 +02:00
97634bb36a
add celery app to project
2014-05-25 23:34:27 +02:00
81f1faee6c
add celery dependency
2014-05-25 23:33:37 +02:00
23de57e138
move MailDomain admin to domains.admin
2014-05-25 15:21:04 +02:00
ecaff6a4af
move existing MailDomains to domains table
2014-05-25 15:17:08 +02:00
5db6223bc0
introduce new app domains
...
- generate domains app
- duplicate managemails.models.MailDomain as domains.models.MailDomain
- add domains app to gnuviechadmin.settings.base.LOCAL_APPS
- repair managemails.tests.test_models
- fix handling of empty results in osusers.models.GroupManager.get_next_gid and
osusers.models.UserManager.get_next_uid
2014-05-25 14:53:58 +02:00
e132c9a56c
add user creation manager code
...
- add OSUSER_* settings
- add UserManager, GroupManager and ShadowManager for user creation
2014-05-25 00:55:02 +02:00
a85ad4e420
improve osusers model classes
...
- add __str__ methods
- add verbose names and help texts
2014-05-24 23:40:54 +02:00
9d447cac0b
improve osusers admin interface
...
- set user uid to readonly
- set shadow password readonly
- set can_delete on shadow to False
2014-05-24 23:15:14 +02:00
da8ba6ed1d
change Mailbox admin to work with osuser field
2014-05-24 22:56:33 +02:00
f085dab017
let mailboxes reference os users
...
- refer to osuser instead of own home, uid and gid entries in mailboxes
- add data and schema migrations
2014-05-24 22:50:43 +02:00
3de357d394
add migration for timestamp fields
2014-05-24 22:02:14 +02:00