Andreas Zweili
be6c5dab7f
add a decorator to check for the customer_view_permission
2019-11-30 14:14:01 +01:00
Andreas Zweili
005b521be7
add a computer object to the test
2019-11-30 13:30:59 +01:00
Andreas Zweili
6c4966b6d8
Merge branch 'master' into backup
2019-11-28 22:51:51 +01:00
Andreas Zweili
0ff88d3d00
add a viewport option to the base template header
2019-11-28 22:51:22 +01:00
Andreas Zweili
f9261c08c8
remove a debugging print statement
2019-11-28 22:51:04 +01:00
Andreas Zweili
88a20d8a05
fix the net_detail_view tests
...
I forgot to use the objects.create parameters function. This way the object
never got added to the database, therefore it never showed in the
content.response. And since I use the admin interface when testing manually,
which creates the objects slightly different and correctly the error never
showed up when doing it by hand.
2019-11-28 22:48:45 +01:00
Andreas Zweili
d93b25c256
add a link to the computer template which links to the customer
2019-09-24 20:31:01 +02:00
Andreas Zweili
a98dd4f2b0
add a backups table view
2019-09-24 20:30:43 +02:00
Andreas Zweili
ba20a056c3
split the view tests into multiple files
2019-09-09 10:59:28 +02:00
Andreas Zweili
53289a58f6
rewrite so that all the views get a pk object
2019-09-03 18:49:44 +02:00
Andreas Zweili
2d06992811
update the net_detail_view to display the NetDetailTable correctly
2019-09-01 12:18:46 +02:00
Andreas Zweili
d0e71ad7fb
add the DeviceInNet model to the NetDetailTable
2019-09-01 12:17:37 +02:00
Andreas Zweili
f09a1c9bd6
add a link to the customer view
2019-09-01 12:17:06 +02:00
Andreas Zweili
69d9a24ff7
add a description field
2019-09-01 12:10:51 +02:00
Andreas Zweili
28dcd6834f
add various verbose names to the DeviceInNet model
2019-09-01 12:10:33 +02:00
Andreas Zweili
69063bb0a2
add verbose name
2019-09-01 12:09:51 +02:00
Andreas Zweili
37f463361a
change the status code check to 404
...
This view now works correctly and returns a 404 instead of an empty table.
2019-09-01 12:08:23 +02:00
Andreas Zweili
8a21e52ab4
extend the test for the net details
2019-09-01 12:07:56 +02:00
Andreas Zweili
dc273c271e
reorder imports
2019-09-01 12:06:27 +02:00
Andreas Zweili
0ee532950b
refactor so that mixer does the work
2019-08-30 23:15:36 +02:00
Andreas Zweili
f55f8ebd84
use a variable for the customer fixture
2019-08-30 23:15:11 +02:00
Andreas Zweili
e314c7bf47
fix the tests so that they are working with postgres
2019-08-30 23:14:47 +02:00
Andreas Zweili
8269dd7656
remove unnecessary object creations
2019-08-30 22:38:31 +02:00
Andreas Zweili
acc1472bd9
add LoginRequiredMixin to view
2019-08-30 22:37:49 +02:00
Andreas Zweili
fde7d492d4
fix the all computers list
2019-08-30 21:04:23 +02:00
Andreas Zweili
e012e1d576
add a computer to test
2019-08-30 21:04:00 +02:00
Andreas Zweili
f4f8fb95fe
add login and logout button to base.html
2019-08-30 06:21:27 +02:00
Andreas Zweili
f86e1f0c6d
ad rediret URLs
2019-08-30 06:21:23 +02:00
Andreas Zweili
528cd30c33
improve the regiration template
2019-08-29 23:11:11 +02:00
Andreas Zweili
961160babc
rename the computer list to match the Django scheme
2019-08-28 23:09:34 +02:00
Andreas Zweili
605ad94acc
remove unused code
2019-08-28 23:09:18 +02:00
Andreas Zweili
410a271328
create the fixture customer with mixer
2019-08-28 23:09:06 +02:00
Andreas Zweili
0e0870f2a7
remove fixture from test
...
This test should just return 200 even if there aren't any customers.
2019-08-28 22:29:56 +02:00
Andreas Zweili
c0bdfed79c
move some settings to environment variables
2019-08-28 21:39:29 +02:00
Andreas Zweili
9d859f4ffc
add login functionality
2019-08-25 22:35:03 +02:00
Andreas Zweili
5cdbf760e0
improve all tests which check for 302
2019-08-15 18:40:29 +02:00
Andreas Zweili
3e840b0aff
fix the customer view permissions
2019-08-13 18:53:39 +02:00
Andreas Zweili
a43fc71521
fix the emacs config
2019-08-12 22:57:04 +02:00
Andreas Zweili
0409aef33c
finalize test_computer_list_view
2019-08-11 22:54:33 +02:00
Andreas Zweili
1a92ce4e9a
finalize test_computer_list_view_no_computers
2019-08-11 22:53:54 +02:00
Andreas Zweili
c87c762ab1
finalize test_backup_detail_view_not_found
2019-08-11 22:52:37 +02:00
Andreas Zweili
1dceb67d53
finalize test_backup_detail_view
2019-08-11 22:52:19 +02:00
Andreas Zweili
e6be2f3504
finalize test_net_detail_view_not_found
2019-08-11 22:49:29 +02:00
Andreas Zweili
9550e9b509
finalize test for test_net_detail_view
2019-08-11 21:44:13 +02:00
Andreas Zweili
bfb29e9de8
replace object creations with mixer
2019-08-11 21:36:29 +02:00
Andreas Zweili
210f583851
implement helper function
2019-08-11 21:35:49 +02:00
Andreas Zweili
efd33d49a6
finalize test for cpu relation
2019-08-11 20:57:37 +02:00
Andreas Zweili
e188b7ded4
finalize test for raid relation
2019-08-11 20:57:17 +02:00
Andreas Zweili
2aac3f53ed
add test for ram relation
2019-08-11 20:56:39 +02:00
Andreas Zweili
e1edc3d238
use mixer in test_computer_detail_view
2019-08-11 20:55:01 +02:00