Commit Graph

35 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
Jeffrey Forman 1af8f1e31b encrypt TSIG keys using Fernet cryptography library 2017-05-02 20:21:11 -04:00
Jeffrey Forman ef70379a2a add setupmethod to create key and bindserver objects. add key_name required expected failure
break up each test into its own function to make debugging the test failures easier.
2017-04-17 20:35:22 -04:00
Jeffrey Forman 4df47c24fa comment out a few tests while i rethink form entry 2016-12-05 22:02:47 -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
* 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"
2015-09-05 19:03:21 +02:00
jeffrey forman 9e5991df2c Merge branch 'responsive-layout' of into Dunedan-responsive-layout
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 515876a2a5 Merge branch 'master' into add-global-authentication 2015-06-08 19:24:36 +02:00
Daniel Roschka a16abc4042 Fixes tests broken by previous commit. 2015-06-08 19:20:53 +02:00
Daniel Roschka ff2f5abcb1 Remove tests for checking DNS resolution
The tests checking the DNS resolution aren't reliable as they rely on specific
behavior of the DNS resolution on the local system. As they are reliable it
makes no sense to keep them as they are currently.
2015-05-30 16:42:59 +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

For setups where such a global authentication isn't desired it can be disabled
by simply removing the LoginRequiredMiddleware from the list of active
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 880eee067d localhost wont always have an IPv6 address assigned to it 2015-04-04 20:33:53 -04:00
jeffrey forman 12654bd3a5 Merge branch 'fix-failing-tests' of into Dunedan-404-for-not-existing-servers 2015-04-04 20:28:31 -04:00
Daniel Roschka a6747b4f25 Removed the checking for the exception message when trying to produce an
IntegrityError, because that message differs based on the environment.
2015-03-29 19:47:58 +02: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 f0f897fad6 fix models test reason for test where no statistics port is specified 2014-12-24 17:15:06 -05: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
Jeffrey Forman 9e95181936 Add ability to directly create reverse PTR records. Not the best, but it works. 2012-12-25 19:57:00 -05:00
Jeffrey Forman 26acc4f51c Convert unit tests to use reverse() instead of specifying URL's hard coded 2012-12-15 21:59:51 -05:00
Jeffrey Forman acd9ec596c Add unit tests for add cname form and add record form testing 2012-12-13 01:40:12 -05:00
Jeffrey Forman 308be6a025 Add integration test for denied zone transfer 2012-12-09 21:22:47 -05:00
Jeffrey Forman 0b048f46f8 Saving the model is important if you want to change statistics_ports midway through. 2012-12-07 07:46:18 -05:00
Jeffrey Forman 453cb4410b add test_Integration_ZoneList_ConnectionRefused 2012-12-06 21:46:10 -05:00
Jeffrey Forman 7fc67cb542 Add integration tests for adding and deleting records. and add cname test
Also added fixtures for binder_test
2012-12-04 22:45:01 -05:00
Jeffrey Forman 8937154b1d Fix broken invalid formadd test now that record type is from record_type_choices 2012-12-02 14:50:48 -05:00
Jeffrey Forman e477a23ba4 fix invalid_formaddrecord test because field is now a choice not an integer 2012-12-02 08:58:04 -05:00
Jeffrey Forman a3f0a643a1 Commit first round of unit tests (14), all pass! 2012-12-01 19:10:44 -05:00
Jeffrey Forman bb40ef2d6a add validating tests around models with incorrect/missing data 2012-12-01 16:20:50 -05:00
Jeffrey Forman 02caf7c983 Split up tests into own directory and separate files 2012-12-01 14:41:40 -05:00