Commit graph

384 commits

Author SHA1 Message Date
8616b2d6c9 Add tests for osusers.forms
This commit adds test classes for osusers.forms in
osusers.tests.test_forms.
2015-12-06 15:35:23 +01:00
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
fb1f31a9bc Fix flake8 warnings
This commit fixes all warnings created by flake8 by removing unused
imports and variable assignments. Some wrongly indented lines are now
indented correctly.
2015-12-05 13:47:41 +00:00
30600ce107 Add tests for managemails.views
This commit adds a test suite for the views defined in
managemails.views. One issue discovered when writing tests is fixed by
checking the request method in CreateMailbox.dispatch.
2015-11-28 19:01:52 +00:00
6533205479 Add TODO comments for mailbox task calls 2015-11-28 19:01:10 +00:00
f2c3f64a87 Use MD5PasswordHasher for tests
This commit changes the password hasher for test runs to the
MD5PasswordHasher to speed up password hashing during test runs.
2015-11-28 19:00:03 +00:00
1cfd4327da Add tests for managemails.models
This commit adds tests for managemails.models to improve the test
coverage of that model. There are some changes to the classes in
managemails.models too:

- add a method create_mailbox to MailboxManager
- properly handle uncommited mailaddresses in MailAddress.set_mailbox
  and MailAddress.set_forward_addresses
2015-11-28 14:07:34 +00:00
03a7dc0320 Add test for managemails.forms
This commit adds tests for managemails.forms. A refactoring TODO is
added to MailAddressFieldMixin and pragma: no cover has been added to
code paths not reachable if no new constants are added to the
MAILBOX_OR_FORWARDS constant array.
2015-11-22 18:41:45 +00:00
78f54d0c92 Add QA tool config to setup.cfg
This commit adds configuration for coverage, pep8 and flake8 to
setup.cfg. The .coveragerc is not needed anymore and is removed.
2015-11-22 18:40:40 +00:00
28fc535f9e Add tests for gvawebcore
This commit adds tests for gvawebcore.forms and gvawebcore.views.
2015-11-22 14:43:02 +00:00
b11055807f Clean PEP8 violations 2015-11-22 14:03:47 +00:00
be0531ec30 Add test for gnuviechadmin.celery
This commit adds a refactoring for gnuviechadmin.celery to make the
installed apps detection testable. The test is added in
gnuviechadmin.tests.test_celery. Debug code in gnuviechadmin.urls is no
excluded from coverage reporting.
2015-11-22 14:31:04 +01:00
7bcb0d3100 Add tests for gnuviechadmin.context_processors
This commit adds new tests for the gnuviechadmin.context_processors
module. The module gnuviechadmin.tests has been moved into a separate
directory for a more clear structure.
2015-11-22 13:13:42 +00:00
de0f3b8ca1 Add translations for domains.models
addresses #17
2015-11-08 12:14:53 +01:00
337947f50c Update documentation
This commit adds documentation how to setup PowerDNS to use the
gnuviechadmin DNS schema. The queries are provided in a PowerDNS
configuration file.

Addresses #17
2015-11-07 22:17:43 +01:00
c058cc7b1d Improve DNS table models
This commit adds Meta information and __str__ methods  to all DNS table
models. The new methods are now covered with new tests. The new
constants DNS_DOMAIN_METADATA_KINDS and DNS_TSIG_KEY_ALGORITHMS are
defined and used in the DNSDomainMetadata and DNSTSIGKey models. A
matching database schema migration is added.

Addresses #17
2015-11-07 16:10:38 +00:00
1df2534cf3 Add DNS models
This commit add model classes closely matching the tables defined in
PowerDNS' schema as described at
https://doc.powerdns.com/md/authoritative/backend-generic-mypgsql/.

The commit includes the model definitions a schema migration including
PostgreSQL specific CHECK constraints and the registration in the Django
admin interface.

addresses #17
2015-11-05 20:54:21 +00:00
8e954a1a8c Update to Django 1.8.6 2015-11-05 19:18:03 +01:00
64b4302b87 Set vim as default editor
Use the alternatives system to set vim as default editor.
2015-10-25 18:30:27 +01:00
fbfd3cf41b Add tests for domains.views
This commit adds a test class to test the CreateHostingDomain view in
domains.views.
2015-10-25 17:30:15 +00:00
f5759f3194 Add tests for domains app
Add missing tests for domains.forms and domains.models.
2015-10-15 19:50:18 +00:00
7d7a8941c3 enable line numbers in vim 2015-10-13 22:31:27 +02:00
2de53757df improve contact_form test coverage 2015-10-13 22:31:20 +02:00
e51d202abd start test implementation for contact_form 2015-10-12 22:07:25 +00:00
c5d9673ac3 remove unnecessary imports 2015-10-12 20:51:03 +02:00
084dd5ba8d add unit tests for dashboard app 2015-10-12 18:43:52 +00:00
660ffa9de9 bump version to new development version 2015-10-12 18:42:14 +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
bcfea10e6f add simplejson to make task serialization work 2015-10-11 23:17:21 +02:00
4f36c21d5b add host alias mq 2015-10-11 16:38:42 +02:00
04871bb488 setup vimrc file for vagrant user 2015-10-11 15:38:45 +02:00
8ebb5cad6a bump dependency versions, fix tests and deprecation warnings 2015-10-11 15:30:23 +02:00
68170f7576 enable rabbitmq management and add admin permissions
- allow database creation for gnuviechadmin user in local deployments to
  allow test runs
- set administrator tag for gnuviechadmin user in rabbitmq
- add all permissions on gnuviechadmin vhost to gnuviechadmin user
- enable rabbitmq management plugin
2015-10-11 15:28:23 +02:00
3270b43578 forward rabbitmq webadmin port from vagrant box 2015-10-11 15:27:46 +02:00
5fe414133e make settings configurable via pillar, default to local 2015-10-11 14:11:11 +02:00
5578647f33 fix locale compilation, use variables for paths
- install gettext
- define and use variables checkout, home and appdir
2015-10-11 14:01:12 +02:00
6a0f88d7d4 manage screenrc and set hostname in vagrant box 2015-10-11 12:02:22 +02:00
33338af352 finish vagrant configuration
- ignore collected assets
- setup virtualenv and environment variables
- import additional salt state modules
2015-10-04 23:02:04 +02:00
b07ab0a14b add PostgreSQL database and message queues to vagrant box 2015-10-04 20:18:44 +02:00
3c6b779c44 setup default nginx ssl/security configuration for vagrant 2015-10-04 19:32:42 +02:00
18ae1e15f4 setup vagrant box roles and nginx package 2015-10-04 19:00:46 +02:00
6f9b17dc49 setup salt provisioning for vagrant 2015-10-04 14:20:44 +02:00
11b1befa1b initial Vagrantfile 2015-10-04 12:08:15 +02:00
1aa51cf61e release 0.11.3
- bug fixes for ssh public key handling
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABCgAGBQJU6OPkAAoJEA15HcjXN8HZEPoH/02qF9W3E8Y55T07Re1sXwHv
 qjx5lFMduMBIC3IsVSudpimKP2ds3rbO/Q+l3kN2nTFR3uHdKXXM48FlpIqwINL2
 CJimvHh1PxkuqsFN6D2esGN079m/9VP0m3UMydX2QKbdkqQOBWO1CwOrUcL2pM5u
 iKxYeqD6NGTtrPFz5bRRlBGtDRRWAChvUfja1sIHcOEa4KYlcI3E6qaKJ5mNTOhk
 MfQfu7MoT2cUVhgBk2riGHnG4IQzFi1es/s1v2YWsg1ZfsBjWtYZthBw9KlOyS8u
 Yt+AQK8VmX/Usb6pUojHd/9l2o+/fJVVnZEI3e9HQaEhWlBD3Z1ncA8dwfkWlJg=
 =8lUx
 -----END PGP SIGNATURE-----

Merge tag '0.11.3'

release 0.11.3

- bug fixes for ssh public key handling

* tag '0.11.3':
  bump version number, add release version to changelog
2015-02-21 21:00:43 +01:00
c5962632d2 Merge branch 'release/0.11.3' into production
* release/0.11.3:
  bump version number, add release version to changelog
  fix broken ssh public key handling
  add appropriate filtering for SSH key list
2015-02-21 21:00:14 +01:00
4c81502b8e bump version number, add release version to changelog 2015-02-21 20:59:09 +01:00
25b5b82a06 fix broken ssh public key handling
- make sure that AddSshPublicKeyForm does not try to parse the key if it is
  None
- split the key text into a maximum of 3 parts to allow whitespace in comments
- update changelog
2015-02-21 20:57:18 +01:00
dd38edd498 add appropriate filtering for SSH key list
- fix osusers.views.ListSshPublicKeys
- add changelog entry
2015-02-21 20:30:15 +01:00
13160b522d release 0.11.2
- mailforward setup bugfix
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABCgAGBQJU1JWpAAoJEA15HcjXN8HZaOEIAIZCdTf6sbN91MZPIBRKPoau
 Jzki+SIJpFs9v5mJLJSWw6kf6cDe/XME399365Mfw+lTsu1eCcMbvoNo1F2I/XRE
 xe+KCVibVMH80qOZijrjJ7o8yG9vDC5UDU3Tzb/qS5GH7RNwFS76PVe/GDF0wgYh
 nZEU2IbJl1gHfVbNUmW5XU09pgT2lx24qK2MzDrjco5B2atHgDMjFIz6ycdnEm6f
 F+jQ+muX/803g3mLnSLD8Vid12J9+ugvgbw/km3bvGY4MS18VhwXP88ghmbM9iP4
 Om/defjWK0Mufmyb6Sehu/S4Xt6C+vI9hpm7CP4bBsZ/D9liSRpB3+xpTOUYswA=
 =RVpR
 -----END PGP SIGNATURE-----

Merge tag '0.11.2'

release 0.11.2

- mailforward setup bugfix

* tag '0.11.2':
  bump version number, add release to changelog
2015-02-06 11:21:34 +01:00
a298548244 Merge branch 'release/0.11.2' into production
* release/0.11.2:
  bump version number, add release to changelog
  fix mail forwarding setup bug
  improve documentation
2015-02-06 11:21:12 +01:00