39 Commits

Author SHA1 Message Date
Thomas Waldmann
fe7b1bc0cb 1.1.1.1 == one.one.one.one 2018-09-30 20:53:26 +02:00
Thomas Waldmann
b2e2ddf949 fix reverse dns lookup tests
not sure why, but the old ones were failing half of the time.
let's try the latest shit from cloudflare. :)
2018-04-25 18:45:04 +02:00
Fabian Weisshaar
cbf7027287 already something for Django 2.0 2018-01-30 12:37:12 +01:00
elnappo
a0c0ba467c fixed missing url parm for related_host_overview 2015-01-02 14:25:06 +01:00
elnappo
2963e60aa2 add more test for main views (mostly 404) 2015-01-02 14:18:49 +01:00
elnappo
a5f0a00e79 add some tests 2015-01-02 13:19:51 +01:00
Thomas Waldmann
c1f2f91dc6 add user interface for related hosts 2014-09-25 20:15:18 +02:00
Thomas Waldmann
a4616e2637 add tests for add domain / add host views 2014-08-31 01:33:00 +02:00
Thomas Waldmann
37f26d6031 unify hosts and domains overview views into one 2014-08-31 01:23:38 +02:00
Thomas Waldmann
cf2c46e612 use FQDN typed params in api, remove unused parse_name (which was problematic anyway) 2014-08-30 18:27:21 +02:00
Thomas Waldmann
f13d985f4a add FQDN type to use instead of str to keep host and domain separate 2014-08-30 16:08:10 +02:00
Thomas Waldmann
ee60c89d2d remove view for legalese
we don't want to be responsible for its contents (do it yourself and, if in doubt, ask your lawyer).

depending on applicable law, you might be required to have multiple directly reachable views,
thus this one view was not flexible enough anyway,
2014-01-21 19:24:34 +01:00
Thomas Waldmann
852e541778 make the tests use a test zone
for the dnstools tests, tests were already changed to use a random test host in the test zone,
so parallel tests runs should not use the same hostnames.

test_api tests still use same host names, though
2013-12-25 03:38:08 +01:00
Thomas Waldmann
ba977193ce Merge branch 'master' into py3-port
Conflicts:
	nsupdate/main/_tests/test_main.py
2013-12-24 21:31:40 +01:00
Thomas Waldmann
b718b93453 test more main views, exclude csrf failure view from coverage 2013-12-18 03:50:41 +01:00
Thomas Waldmann
14b9407ab5 remove unused imports 2013-12-15 18:27:59 +01:00
Thomas Waldmann
711aba237f python 3.3 port
not much tested yet, be careful
2013-12-14 00:35:29 +01:00
Thomas Waldmann
0146404569 add simple test for update view (js updater) 2013-12-07 12:59:22 +01:00
Thomas Waldmann
0e8f318628 add reverse dns lookup code 2013-11-27 07:14:39 +01:00
Thomas Waldmann
1a02925bfa minor changes: fix typo, move comment to right place 2013-11-21 04:10:04 +01:00
Thomas Waldmann
2b5fdacadc status view is expensive (DB accesses to build statistics), make it logged-in only 2013-11-21 04:07:27 +01:00
Thomas Waldmann
ae9c2f29d0 more tests, better coverage 2013-11-21 04:02:16 +01:00
Thomas Waldmann
24b687960e deal with "nameserver not available" and "peer bad signature" in same way as with dns update errors, 2013-11-10 07:04:46 +01:00
Thomas Waldmann
57641f3b9a allow single-host update secrets, make dnstools tests work for everybody
the nsupdate.info zone is configured to allow updating test.nsupdate.info with a non-secret key used for the tests.
we also have a test that tries to update another host with that key and checks that this fails.

change the tests so they only use test.nsupdate.info (if possible).

single-host update secrets need a Domain record for the fqdn of this single host, the fqdn is tried first, before it tries the origin zone.
2013-11-10 05:52:41 +01:00
Thomas Waldmann
4fadb5de82 dnstools tests: always use the same TEST_HOST 2013-11-09 23:19:05 +01:00
Thomas Waldmann
724f35225e move test settings to test_settings.py, add FIXME for resolver search list
make SECRET_KEY obviously non-secret and non-random + document it should be secret/random
2013-10-27 07:20:43 +01:00
Thomas Waldmann
49693121ea use zones/nameserver IPs/update keys from DB, logging (thanks to asmaps)
remove unneeded stuff from settings
(we still need some in conftest.py for the tests, though)
init DB for tests via conftest.py
more update algorithm choices
give origin zone (if we already know it) to dnstools functions
new views: DomainOverview, DeleteDomain
unify deletion templates using delete_object.html
add django-extensions
2013-10-18 15:30:17 -07:00
Thomas Waldmann
89f743c1b0 removed test skips, all works now 2013-10-17 15:58:25 -07:00
Bastian Blank
d2eab62ac4 Move all stuff into own top-level package 2013-10-17 23:59:07 +02:00
Thomas Waldmann
1924888b37 reorder imports: stdlib, other libs, django, nsupdate stuff (views, etc.) 2013-10-03 19:26:39 +02:00
Thomas Waldmann
074233430c dnstools: implement additional functions: add and delete, with tests. 2013-09-29 17:21:22 +02:00
Thomas Waldmann
a769b4d8ed cleanup settings access 2013-09-28 22:04:52 +02:00
Thomas Waldmann
2fdbc151c2 remove test example, see test_dnstools for an example 2013-09-28 17:29:02 +02:00
Thomas Waldmann
be3a124fbc implement intelligent updater (only sends ns update if IP really changed) 2013-09-28 17:05:27 +02:00
Thomas Waldmann
a865bb9f32 tests: use relative imports, make tests a package 2013-09-28 15:56:35 +02:00
Thomas Waldmann
3af80a631d docstrings: some cleanup 2013-09-28 15:36:27 +02:00
Thomas Waldmann
f4172a306a dns: implement updating the master server 2013-09-28 15:29:16 +02:00
Thomas Waldmann
d71122aa1c dns: implement querying directly the master server 2013-09-28 13:47:49 +02:00
Thomas Waldmann
fc9bff7bc5 create _tests subdir, py.test based example test module 2013-09-28 11:27:22 +02:00