Thomas Waldmann
14b9407ab5
remove unused imports
2013-12-15 18:27:59 +01:00
Thomas Waldmann
aa610e9c3a
implement "update other services", with tests, no ui yet
...
(can be used when adding the records via django admin)
2013-11-26 08:10:05 +01:00
Thomas Waldmann
ce83e293bb
support notfqdn api result code
...
we do not really need it as far as the service is concerned (we would give some other valid failure result code),
but it might help to user to more quickly find the mistake in his client configuration.
2013-11-24 06:42:55 +01:00
Thomas Waldmann
ae9c2f29d0
more tests, better coverage
2013-11-21 04:02:16 +01:00
Thomas Waldmann
5fb721d112
more api tests, add another user and another host so we can test separation
2013-11-16 07:51:04 +01:00
Thomas Waldmann
08d8ce472b
added test for nic_update_session
2013-11-16 07:23:44 +01:00
Thomas Waldmann
925ad20405
update api: there is no "noauth" return value, it must be "badauth"
2013-11-16 06:09:56 +01:00
Thomas Waldmann
d6b5041573
a real nic update api test, using basic auth
...
generate_secret was modified to support giving a secret (not generating a random one), so it matches the test database
add a User and a Host to the test db
2013-11-16 01:25:05 +01:00
Thomas Waldmann
4c46c30d25
more api tests (mostly triggering execution of some code)
...
it's hard to test anything without a user / http auth / login / session.
2013-11-15 13:00:57 +01:00
Thomas Waldmann
1f28cb3ed0
name api views, use reverse() in unit tests
2013-11-15 12:14:36 +01:00
Thomas Waldmann
89f743c1b0
removed test skips, all works now
2013-10-17 15:58:25 -07:00
Thomas Waldmann
9428ed7943
adding nic api tests
2013-10-03 21:58:33 +02:00