Commit Graph

227 Commits

Author SHA1 Message Date
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 e732cf3613 add TEST_RUNNER specification to be django >1.6 friendly 2014-12-21 19:24:35 -05:00
Jeffrey Forman 06c1b268b4 make template_dirs in settings a tuple to play nice with django 1.7 2014-10-06 21:58:09 -04:00
Jeffrey Forman f9f9309fe9 beautifulsoup is not a required module for binder itself, remove from models 2014-10-06 13:02:30 -04:00
Jeffrey Forman e48f4ad5b0 make server zone list table sortable by column 2014-01-05 17:53:13 -05:00
Jeffrey Forman d8900c4075 convert to using pybindxml for scraping zone/server information from bind in server zone list 2014-01-05 17:50:13 -05:00
Jeffrey Forman c2daf46358 update url template references to be django 1.5 friendly 2013-12-01 18:05:01 -05:00
Jeffrey Forman 5ec7fc02c9 Add sorttable.js to static, ability to sort zone list table 2013-03-21 21:18:03 -04: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 b803923331 print error if encountered in deleting records form 2012-12-16 11:21:44 -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 a7bc198c4d Convert template URL href references to use 'url' template syntax for reverse URLs 2012-12-15 20:25:06 -05:00
Jeffrey Forman 16a629f81a use a split method on the string, instead of a regex, to make getting the host and domain easier when deleting a record 2012-12-15 20:21:47 -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 3a9e9fe614 dont show the 'add reverse record' checkbox if on form for adding reverse record 2012-12-12 21:12:58 -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 3b0b29664e clean up the keys, down to one key for testing 2012-12-07 07:44:29 -05:00
Jeffrey Forman 453cb4410b add test_Integration_ZoneList_ConnectionRefused 2012-12-06 21:46:10 -05:00
Jeffrey Forman 52a80a90f2 Add testdata to repo, named.conf and forward/reverse zones.
Clean up the main readme.md
2012-12-06 20:13:07 -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 bd65e1b239 Add error reason to form validation for unicode->string list formfield 2012-12-04 06:18:40 -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 aa76d59a13 add choice selection to record type when adding record. works for A/AAAA records. 2012-12-02 09:13:22 -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 42db5cedee create local_settings, pass TTL_CHOICES around to be able to pick TTL when creating record. 2012-12-02 08:49:49 -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
Jeffrey Forman d5b2197571 Merge keyutils into a method inside the Key class. Delete keyutils.py 2012-11-30 22:40:58 -05:00
Jeffrey Forman 063d64d6c6 create feeder function to send dns updates. forward/reverse/cname call send_dns_update.
Collapse keyutils into helper. Create single create_keyring function that decides what to create.
2012-11-30 07:25:23 -05:00
Jeffrey Forman 46a91e2fdf Add error handling in delete_record function around unrecognized/malformed keys. 2012-11-29 21:52:27 -05:00
Jeffrey Forman d4d4afdaa1 Add ip info on server list page.
Also clean up imports, standardize on order
2012-11-28 22:09:25 -05:00
Jeffrey Forman 9dcb07e996 Display IP address along side server name in server list 2012-11-26 22:05:44 -05:00
Jeffrey Forman ba78f39670 collapse add forward and add reverse helper functions into update_record.
clean up some handling of cname creation.
2012-11-25 22:35:11 -05:00
Jeffrey Forman e1c0e9d256 remove unused import 2012-11-25 18:09:56 -05:00
Jeffrey Forman b28bfbacd5 remove errant print statements from views 2012-11-25 18:06:11 -05:00
Jeffrey Forman 0736eb3eb5 error handling around viewing unresponsive dns servers in zones. add try/except when adding cname 2012-11-25 18:02:33 -05:00
Jeffrey Forman 0c35125777 clean up some unused imports, also handle exceptions for adding cname 2012-11-25 18:02:01 -05:00
Jeffrey Forman 0c36d0f4a8 template update,List dns server when listing a particular zone 2012-11-25 18:01:13 -05:00
Jeffrey Forman 5f2414266a Handle exception when attempting a zone list (xfr) fails. 2012-11-25 18:00:48 -05:00
Jeffrey Forman b80719c7ea add zone class and view name to server zone list view 2012-11-25 14:59:05 -05:00
Jeffrey Forman 518f250036 make base template a bit more bootstrap friendly, stick in a container div 2012-11-25 14:17:42 -05:00
Jeffrey Forman 6b66c156b9 Some template cleanup, making tag hierarchy more correct. 2012-11-25 13:45:01 -05:00
Jeffrey Forman fdae61760c First found of 7 unit tests. Rudimentary page getting, form posting.
Need to figure out how to write good integration tests to hit the whole workflow.
2012-11-25 12:56:08 -05:00
Jeffrey Forman 412b75b8cb Make some of the html tag inheritance with tr, div, script and body more correct. 2012-11-25 09:26:19 -05:00
Jeffrey Forman a7b531cf9b add names to all url's 2012-11-24 22:57:08 -05:00
Jeffrey Forman c492fb508c clean up delete_record view using formdeletecord 2012-11-23 22:42:37 -05:00
Jeffrey Forman c42009f714 move delete_record to a more import friendly structure. clean up code 2012-11-23 22:28:33 -05:00
Jeffrey Forman 37d6c91a95 clean up commit comments, add newline 2012-11-23 22:27:50 -05:00
Jeffrey Forman 9c5143cbd7 clean up delete template, change rr_array -> rr_list. list multiple records for deletion a bit cleaner 2012-11-23 22:22:59 -05:00
Jeffrey Forman 8858d831b1 add a delete form model. add custom field for converting unicode to string list 2012-11-23 22:21:41 -05:00
Jeffrey Forman a5af78d18d clean up some string casting for adding cname and forward/reverse records. 2012-11-21 22:08:37 -05:00
Jeffrey Forman 751dae3356 clean up some String casting in making a cname that isnt needed 2012-11-21 20:39:08 -05:00
Jeffrey Forman fc971391b9 more cleanup, adding docstrings, bit more exception handling. 2012-11-18 21:10:09 -05:00
Jeffrey Forman 94fa3cbb43 slowly moving to using custom exceptions, removing unnecessary code 2012-11-17 23:02:57 -05:00
Jeffrey Forman 650245582a correct templates to use key.id in modelchoicefields 2012-11-17 23:02:20 -05:00
Jeffrey Forman 3451cae823 fix how keyrings are created, now use two parameters. 2012-11-17 23:01:37 -05:00
Jeffrey Forman b1907b140a Simplify the forms modules for handling keys 2012-11-17 23:00:50 -05:00
Jeffrey Forman 823da81ed4 Add exceptions for records and zone modifications 2012-11-17 20:40:15 -05:00
Jeffrey Forman ba4ea4176d Initial add of binder exceptions file. Add TransferException 2012-11-17 13:28:21 -05:00
Jeffrey Forman ee63a3608c Remove unused imports, change arguments to be more flexible. 2012-11-17 13:25:41 -05:00
Jeffrey Forman ec1c07c191 Add use of custom exceptions in zone transfers 2012-11-17 13:06:24 -05:00
Jeffrey Forman 5154dd4298 Move keuy model up to top, add foreignkey to bindserver model to eventually use for transfer keys 2012-11-08 23:00:31 -05:00
Jeffrey Forman 55a99dd7f2 clean up admin panel, include columns for fields in models 2012-11-08 23:00:06 -05:00
Jeffrey Forman ae0830436a remove sites installed app that isnt used 2012-11-08 22:59:40 -05:00
Jeffrey Forman 1d584a0d8a make the error on retrieving a zone message more correct 2012-11-08 22:07:38 -05:00
Jeffrey Forman 9f2bbdee0f combine all the result templates into one response_result.htm
standardize on the dictionary returned back from helpers, and to the template
2012-10-28 20:32:37 -04:00
Jeffrey Forman eb717e001a Bring things up to 1.4 standards. A LOT of file moves, simplifying of paths. Removed bcommon directory under binder 2012-10-28 14:49:15 -04:00
Jeffrey Forman 87d0b08b50 clean up listing server zones, remove error_context code 2012-10-28 08:45:08 -04:00
Jeffrey Forman a3e0dcc8cc Cleanup on the template that lists a zone's records 2012-10-27 18:41:48 -04:00
Jeffrey Forman 60c6a9ee83 Make the admin UI work again now that I'm running django 1.4 2012-10-27 18:41:25 -04:00
Jeffrey Forman 4565e93d93 a fairly big rewrite of add/delete record that actually works! 2012-10-27 18:03:45 -04:00
Jeffrey Forman 00b22acba7 Add most of the framework for adding a cname record. templates, views, helper code.
Still need to cleanup helpers, figure out why delete is failing
2012-10-26 17:09:05 -04:00
Jeffrey Forman 5bc7f923ad Clean up and make work adding and deleting records. Handles reverse and multiple records also 2012-10-22 20:39:07 -04:00
Jeffrey Forman 5c453e9a8d deleting records works again. without tsig key. 2012-10-18 06:34:22 -04:00
Jeffrey Forman d2a6b38a2b template cleanup on adding records. use of tsig key is now optional 2012-10-13 17:00:22 -04:00
Jeffrey Forman 1e2260bbec improve method for listing server zones. parse xml rather than depend on a regex 2012-10-13 08:00:38 -04:00
Jeffrey Forman 80de5b2744 Begin some bootstrap/UI upgrades. Move layout to two column div 2012-10-12 08:25:39 -04:00
Jeffrey Forman dc186c91c9 Add boostrap 2.1.1 to files/static, create boostrap symlink 2012-10-12 08:25:10 -04:00
Jeffrey Forman a6ee4e65f6 Pull in a new version of bootstrap.css 2012-01-29 18:12:26 -05:00
Jeffrey Forman 57e95004c6 Enable html5 doctype declaration 2012-01-29 17:29:06 -05:00
Jeffrey Forman 21b28be873 Add ability to create CNAME records with data_suffix on add record function
Tested: adding/deleting cnames and A records.
2012-01-29 10:47:13 -05:00
Jeffrey Forman a03f49c158 Code cleanup, standardize on dns_server and zone_name
Added bootstrap CSS framework
Added error handling around deleting with a bad key.
2011-11-26 13:03:00 -05:00
Jeffrey Forman 380657d5f5 Better handle when we try to list a zone that does not exist. 2011-11-25 17:43:26 -05:00
Jeffrey Forman 81f8865dcd Add error handling when a DNS server is requested that does not exist in the BindServer table. 2011-11-25 12:57:39 -05:00
Jeffrey Forman e18d0e0d4b Clean up error display in template, and handle a DNS server which is uncontactable. 2011-11-25 12:07:22 -05:00
Jeffrey Forman 32aadb1ee2 End-to-end deletion working for single and multiple records. 2011-11-25 07:58:43 -05:00
Jeffrey Forman 00f8036991 End-to-end working version of adding forward/reverse A record from forward zone form. 2011-11-24 11:57:13 -05:00
Jeffrey Forman 77da4b8f82 Return a dict with the response from adding an RR recorc 2011-10-13 08:38:40 -04:00
Jeffrey Forman 987e1a4d35 Query the bind server object for its list of zones 2011-10-01 16:58:10 -04:00
Jeffrey Forman 546ae82e22 Remove list_server_zones method. Now an object attribute 2011-10-01 16:56:35 -04:00
Jeffrey Forman a512d82ffd Move list server zones into an attribute of the server model 2011-10-01 16:50:55 -04:00
Jeffrey Forman 1588d58d5f Remove 'Add record' link. This is now contained in the zone view 2011-05-08 14:31:18 -04:00
Jeffrey Forman 6dd125eb67 WIP: Initial instrumentation of delete record functionality.
I have the confirmation page written. Need to work on parsing array to delete when confirmation received.
2011-04-24 22:11:43 -04:00
Jeffrey Forman 23321a8a4c Bump the default TTL from 10 seconds to one day 2011-04-24 21:11:27 -04:00
Jeffrey Forman 5523e79ded Preliminary error handling around key errors when adding a record 2011-04-24 21:10:25 -04:00
Jeffrey Forman a981711c22 When input is prefect, adding a record works and shows output from dns update. 2011-04-24 20:52:56 -04:00
Jeffrey Forman dc25ce9b5c Ability to specify the type of TSIG key (passed along in ns update). Still not handling errors if update fails. 2011-04-24 15:28:46 -04:00
Jeffrey Forman 4213e662be Add RequestContext for CSRF protection to bcommon views 2011-04-23 22:46:12 -04:00
Jeffrey Forman 6a1275185d WIP: Initial form written to add record. Displays, but does not work yet. 2011-04-23 16:23:25 -04:00
Jeffrey Forman 27a121ca0a work on issue 1, handle errors when querying server for list of zones
handles errors such as connection refused, no host found, etc.
2011-04-23 11:19:01 -04:00
Jeffrey Forman a69baae308 Part of previous commit for template to have form to delete records 2011-04-22 22:29:45 -04:00
Jeffrey Forman 41509f6898 WIP: preliminary framework for deleting records from zone RR list 2011-04-22 22:29:35 -04:00
Jeffrey Forman f95ac516e1 Remove the Zone class. It's not needed since we get the zones at run time 2011-04-22 22:28:15 -04:00
Jeffrey Forman b8785d3924 Improve error handling around querying a zone that does not exist
part of ticket #4
2011-04-17 22:33:37 -04:00
Jeffrey Forman 64f32082f8 clean up the views structure. add an area for navigation 2011-04-17 22:33:14 -04:00
Jeffrey Forman 5c7d18deb7 Handle errors when trying to retrieve zone list from NS server
Conflicts:

	binder/templates/base.htm
2011-04-17 10:10:23 -04:00
Jeffrey Forman b2b849d1f0 Remove unneeded white space in base template 2011-04-17 10:08:02 -04:00
Jeffrey Forman 540cf96f77 Add some error handling around querying a zone that does not exist 2011-04-17 10:03:46 -04:00
Jeffrey Forman 885b1068fe Handle errors when trying to retrieve zone list from NS server 2011-04-17 07:35:02 -04:00
Jeffrey Forman c6e1e5d592 Add root url '/' page with link to server list 2011-04-16 07:41:40 -04:00
Jeffrey Forman 3ed63a3c55 Add initial static directory with rudimentary CSS for tables 2011-04-14 22:08:22 -04:00
Jeffrey Forman 26187f738b Zone list is now tablized. Need to hack up some CSS To make it pretty. 2011-04-14 20:43:04 -04:00
Jeffrey Forman 7135a48d64 Rudimentary first listing of zones from an NS works. 2011-04-14 15:29:58 -04:00
Jeffrey Forman 645cd43855 update view to support a linkable list of zones 2011-04-14 14:59:45 -04:00
Jeffrey Forman 84953e3b16 zone lists are now clickable 2011-04-14 14:48:34 -04:00
Jeffrey Forman ad689c48d4 This make the zone list url append_slash happy 2011-04-14 14:30:06 -04:00
Jeffrey Forman 8f21491f3a Handles listing dns servers and zones within 2011-04-13 22:27:40 -04:00
Jeffrey Forman 03ce6bb7db /info now works listing the dns servers configured, each linked as well 2011-04-13 20:49:20 -04:00
Jeffrey Forman c10569504b bcommon models are all set. servers, keys, zones 2011-04-13 19:24:25 -04:00
Jeffrey Forman 7314c6daf8 Make the admin UI more useful showing fields in key and zone 2011-04-13 19:17:48 -04:00
Jeffrey Forman 246373a274 Delete zonemanager app 2011-04-13 08:07:30 -04:00
Jeffrey Forman fbd8552853 rename bindercommon to bcommon 2011-04-11 15:37:50 -04:00
Jeffrey Forman 823a175ea8 Add bindercommon app. Admin UI configured with model spec for servers,keys,zones 2011-04-10 22:23:17 -04:00
Jeffrey Forman 2269155864 Enable admin ui 2011-04-10 15:02:33 -04:00