Commit graph

28 commits

Author SHA1 Message Date
4f39c0d2c4 Add tests for osusers.admin
This commit raises the test coverage for osusers.admin to 100% by adding
tests for UserAdmin, GroupAdmin, SshPublicKeyCreationForm and
SshPublicKeyAdmin. The commit adds a refactoring TODO to
SshPublicKeyAdmin.perform_delete_selected because the asynchronous
background task should be launched from a signal handler.
2015-12-05 22:23:25 +00:00
b11055807f Clean PEP8 violations 2015-11-22 14:03:47 +00:00
d5bba7a22d asynchronous refactoring
- don't execute celery tasks directly
- introduce optional parameters to fileserver tasks to allow chaining
- handle user/group/key create and delete tasks in new osusers.signals
  class
- adapt unit tests
- change TaskResults model to store the task signatures
- generalize the local settings' logging configuration
2015-10-12 00:23:31 +02:00
79b460c4a6 repair osusers.tests.test_admin
- fix test code
- fix error in set_ldap_user_password stub
2015-02-01 00:08:04 +01:00
7dd4c78345 trigger tasks on SshPublicKey save and delete
- implement save and delete methods in osusers.models.SshPublicKey that trigger
  set_file_ssh_authorized_keys
- add new test methods to osusers.tests.test_models.SshPublicKeyTest
2015-02-01 00:08:04 +01:00
20359681db implement SshPublicKey model, manager and tests
- implement osusers.models.SshPublicKey and osusers.models.SshPublicKeyManager
- fix broken osusers.models.tests.test_models
- add new test classes SshPublicKeyManagerTest and SshPublicKeyTest
- add migration for SshPublicKey model
2015-02-01 00:07:56 +01:00
d4f68a155c fix some test issues 2015-01-22 00:19:16 +01:00
2204f7df43 add osusers.tests.test_tasks.LdapRouterTest 2014-06-01 23:22:13 +02:00
fa5f296c0f add test for UserCreationForm.save_m2m 2014-06-01 23:10:26 +02:00
0a48619f3c implement osusers.tests.test_admin.DeleteTaskResultAdminTest 2014-06-01 23:05:58 +02:00
6b36cc95ff really test that update_taskstatus is called 2014-06-01 23:05:28 +02:00
266794d447 add osusers.tests.test_admin.GroupAdminTest 2014-06-01 22:53:38 +02:00
338b575983 add type check 2014-06-01 22:53:29 +02:00
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
773dbea0fe implement osusers.tests.test_admin.TaskResultInlineTest 2014-06-01 22:01:04 +02:00
a663093433 make sure to not execute LDAP task 2014-06-01 21:28:24 +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
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
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