Commit Graph

15 Commits

Author SHA1 Message Date
jeffrey forman ab9ad3e25c statistics_port -> control_port 2019-03-17 20:45:15 -04:00
jeffrey forman f9176387ac update to django-2, python3, and based on an alpine container 2019-02-13 20:17:05 -05:00
Daniel Roschka 99f1284d43 Simplies the test code a bit. 2015-09-05 19:20:44 +02:00
Daniel Roschka 3ca4cac89a Fix the tests, after the recent changes. 2015-09-05 19:18:59 +02:00
Daniel Roschka e13b42cd13 Refactors the views used to add and delete records.
Notable changes are:
* Refactored views, utilizing more of Djangos features, resulting in simpler
  code.
* URLs are now the same when initially filling out a form and when editing a
  submitted form which contained errors.
* Instead of a result page showing the response from the DNS server (which is
  now logged using Djangos "logging" functionality) the user is now redirected
  back to the record listing of the current zone when the action was successful
  or stays on the form page when an error occured. Proper success/error
  messages are shown in both cases by utilizing Djangos "messages"
  functionality.
2015-09-05 19:03:21 +02:00
jeffrey forman 9e5991df2c Merge branch 'responsive-layout' of https://github.com/Dunedan/binder into Dunedan-responsive-layout
Conflicts:
	binder/templates/base.html
2015-07-28 06:16:56 -04:00
Daniel Roschka 52ebb1e1b1 Merge branch 'master' into add-global-authentication 2015-07-24 12:14:21 +02:00
Daniel Roschka 20d785840b Fixes some python style issues.
No changes in binders functionality are included in this commit, just improved
python style
2015-06-13 12:05:42 +02:00
Daniel Roschka a16abc4042 Fixes tests broken by previous commit. 2015-06-08 19:20:53 +02:00
Daniel Roschka 7882ee9121 Add global authentication
This commit adds global authentication to binder to ensure that only valid
users are able to use it. This should enable binder to be used in
environemts where it's webfrontend is reachable for unauthenticated users as
well.

For setups where such a global authentication isn't desired it can be disabled
by simply removing the LoginRequiredMiddleware from the list of active
middlewares.
2015-04-05 21:06:01 +02:00
jeffrey forman b62af7b64d fix UI tests that werent updated to match the new templates 2015-04-04 22:07:49 -04:00
jeffrey forman 12654bd3a5 Merge branch 'fix-failing-tests' of https://github.com/Dunedan/binder into Dunedan-404-for-not-existing-servers 2015-04-04 20:28:31 -04:00
Daniel Roschka 95b86434ff Fixes outstanding failing tests
Fixes three failing tests.
For test_ipinfo_ResolutionFail it fixes the following issues:
* failing when no network is available
* failing when Google changes the ip addresses of the service
* failing when the order of returned ip addresses is different
For test_DeleteRecordInitial_Empty and test_DeleteRecordInitial it fixes a not
existing BindServer object.
2015-03-29 19:03:53 +02:00
Daniel Roschka 6a769e4cbb Fixes the behavior for not existing BIND servers
When requesting one of binders BIND server specific URLs for a server not
present in binders database currently uncatched exceptions are thrown.

This commit fixes that for all URLs containing the server name, by instead of
throwing an uncatched exception, returning a proper HTTP 404 status code.
2015-03-29 14:04:43 +02:00
Jeffrey Forman da4bbed5d7 update tests for django >1.6, disable integration tests until I can figure out a good local solution 2014-12-24 17:14:33 -05:00