Commit graph

22 commits

Author SHA1 Message Date
4af1a39ca4 Upgrade to Django 3.2
- update dependencies
- fix deprecation warnings
- fix tests
- skip some tests that need more work
- reformat changed code with isort and black
2023-02-18 22:46:48 +01:00
3d18392b67 Fix tests for Python 3
- drop Python 2 __future__ imports
- fix tests to handle new Django and Python 3 module names
- reformat changed files with black
2019-01-30 21:27:25 +01:00
e7006ac4a6 Fix encoding name
This commit fixes the encoding specification of
osusers.tests.test_models.
2016-01-29 10:04:59 +00:00
e9fc8b7f89 Push coverage for osusers to 100% 2016-01-28 13:44:29 +00:00
28ff099df9 Improve osusers.models coverage
This commit adds tests for more corner cases of
SshPublicKeyManager.parse_keytext to raise the test coverage to 100%.
The method now handles invalid keys more thoroughly.
2015-12-06 17:47:27 +01: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
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
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