Commit graph

31 commits

Author SHA1 Message Date
38b120b03e Update dependencies, fix tests
- replace assertTrue(mock.called_with(...)) with mock.assert_called_with
2024-08-23 17:57:40 +02:00
376cfab88f Fix output of response_for_exception in tests
Django has a django.core.handlers.exception.response_for_exception that
handles SuspiciousOperationException, that is expected behaviour and
should not be logged in test output.
2023-05-02 17:57:13 +02:00
d88745f46b Fix tests 2023-04-29 13:10:25 +02:00
8e42cb9c18 Start switch to Bootstrap 5
- drop jQuery and fontawesome dependencies
- add bootstrap5 and bootstrap-icons
- update fonts mfizz
- update base templates and the first set of other templates
- replace blocktrans and trans with blocktranslate and translate to
  prepare for Django 4
- move hostingpakcage templates to hostingpackages/templates
- update translations
2023-04-16 22:11:32 +02:00
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
6cebd80c89 Started port to Django 2.1, Python 3, Docker
This commit is a rough port to Django 2.1, Python 3 and a Docker based local
development setup. Tests fail/error but migrations and the web frontend are
already runnable. Task queue functionality is untested and translations seem to
have trouble.
2018-11-19 23:28:40 +01:00
5dc3549896 Improve documentation
This commit adds a lot of documentation including block diagramms for
message flows.
2016-09-24 21:57:28 +02:00
37b18a17af Update German translation
This commit updates the German translation files and adds missing
translations.
2016-01-29 11:07:41 +01:00
0a0524f1f0 Add tests for userdbs.views.ChangeDatabaseUserPassword
This commit adds tests for the ChangeDatabaseUserPassword view.
2016-01-29 10:03:24 +00:00
1f700fc06a Add tests for userdbs.views.DeleteUserDatabase
This commit adds tests for the DeleteUserDatabase view and improves the
grammar of flash messages of the userdbs.views module.
2016-01-29 09:40:14 +00:00
e6c38b632b Add test for userdbs.views.AddUserDatabase
This commit adds tests for userdbs.views.AddUserDatabase, the view
itself has been modified so that it is only reachable when the hosting
package actually has database options available.
2016-01-28 16:17:50 +01:00
085b126416 Update to Django 1.9
- update all dependencies
- fix deprecation warnings and errors for Django 1.9 compatibility
2015-12-19 20:11:23 +01:00
c9a9fa11b2 Refactor userdbs app to use signals
This commit isolates the celery task invocations of the userdbs app into
signal handlers. All celery interaction is now asynchronously handled in
userdbs.signals.
2015-12-07 00:23:07 +00:00
1649e4592e Add tests for userdbs app
This commit adds a set of unit tests for the userdbs app. Some tests
will fail because a refactoring to signals comes with the next commit.
2015-12-07 00:22:13 +00:00
b11055807f Clean PEP8 violations 2015-11-22 14:03:47 +00:00
742f0d0e33 update translations, add new strings 2015-01-27 19:08:13 +01:00
065a97665b add german translation for new strings 2015-01-26 13:52:55 +01:00
64e3f97330 implement user database deletion
- modify userdbs.models.UserDatabase.delete to perform deletion of database
  user if it has no other databases assigned
- implement userdbs.views.DeleteUserDatabase
- add URL pattern 'delete_userdatabase' to userdbs.urls
- add template userdbs/userdatabase_confirm_delete.html
- add link to 'delete_userdatabase' on hosting package detail page
- add changelog entry
2015-01-26 13:42:09 +01:00
fd6449dff1 implement database user password change
- implement userdbs.forms.ChangeDatabaseUserPasswordForm
- implement userdbs.views.ChangeDatabaseUserPassword
- add URL pattern 'change_dbuser_password' to userdbs.urls
- add template userdbs/databaseuser_setpassword.html
- link from hostingpackage detail template to 'change_dbuser_password'
- add changelog entry
2015-01-26 12:39:42 +01:00
0e1a84826d implement setup of new user databases
- implement userdbs.forms.AddUserDatabaseForm
- implement userdbs.views.AddUserDatabase
- add new URL pattern 'add_userdatabase' in userdbs.urls
- add templates userdbs/base.html and userdbs/userdatabase_create.html
- add generated code documentation for new modules
2015-01-26 12:06:03 +01:00
2447f558e4 add combined method for creating databases with users
- implement userdbs.models.UserDatabaseManager.create_userdatabase_with_user to
  setup a new database with a new database user in one step
2015-01-26 12:05:07 +01:00
4c8b173e95 add userdb template tags
- add changelog entry
- add generated documentation for userdbs.templatetags.userdb
- add userdb template tags db_type_icon_class and db_type_name
- remove empty userdbs.views
2015-01-18 16:05:29 +01:00
8ab15e7680 remove empty tests module 2015-01-17 23:27:03 +01:00
9fa1944c31 add german translation
- add django.po for apps and templates
- add locale directory to LOCALE_PATHS setting
2015-01-17 16:06:25 +01:00
ba39e3f765 set database password at the appropriate place 2015-01-10 18:43:43 +01:00
780a670565 remove username argument from delete_pgsql_database call 2015-01-09 19:38:30 +01:00
6edbe17a3b make userdbs admin work properly
* add userdbs app docstring
* add userdbs.app.UserdbsAppConfig
* implement userdbs.admin.DatabaseUserCreationForm,
  userdbs.admin.UserDatabaseCreationForm, userdbs.admin.DatabaseUserAdmin,
  userdbs.admin.UserDatabaseAdmin
* add docstrings to userdbs.models
* rename userdbs.models.DatabaseUserManager._get_next_username to
  _get_next_dbuser_name
* fix format string issues in userdbs.models.DatabaseUserManager and
  userdbs.UserDatabaseManager._get_next_dbname
* delete related databases in userdbs.models.UserDatabase.delete
2015-01-04 22:35:55 +01:00
be4ea9cc77 add initial migration for userdbs 2015-01-04 20:24:56 +01:00
8697f84381 add admin and a bit of documentation 2015-01-04 20:23:49 +01:00
3eef84d373 add new incomplete userdbs app 2015-01-04 20:22:58 +01:00