Commit Graph

307 Commits

Author SHA1 Message Date
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
Andreas Zweili 2864649766 finalize test_customer_computer_table_no_computer 2019-08-11 20:54:39 +02:00
Andreas Zweili 1a71d65c12 finalize test_customer_computer_table 2019-08-11 20:54:18 +02:00
Andreas Zweili 37e9f58be4 finalize test_customer_detail_view_no_permissions 2019-08-11 20:42:13 +02:00
Andreas Zweili c3be6198ed finalize test_customer_list_view 2019-08-11 20:41:43 +02:00
Andreas Zweili 64cf7e91f5 add mixer to the tests 2019-08-11 20:41:17 +02:00
Andreas Zweili 14ff7913de enable database access for the whole test_view.py file 2019-08-11 20:40:33 +02:00
Andreas Zweili 1349e606d1 add mixer to the requirements 2019-08-11 20:39:07 +02:00
Andreas Zweili 6aac688e8f remove the unnecessary raid type 2019-08-11 20:38:53 +02:00
Andreas Zweili 714449d038 move the coverage config 2019-08-11 20:38:37 +02:00
Andreas Zweili a38f17141a update the docker settings 2019-08-11 18:37:56 +02:00
Andreas Zweili 521aaef946 run django with gunicorn 2019-08-11 18:37:37 +02:00
Andreas Zweili 32df8c464e update the readme 2019-08-11 18:35:41 +02:00
Andreas Zweili 9778d60f51 Revert "remove the production settings"
This reverts commit d8b09fd735.
2019-08-11 18:14:18 +02:00
Andreas Zweili b9efd4ed60 move some settings to environment variables 2019-08-10 16:50:35 +02:00
Andreas Zweili d8b09fd735 remove the production settings
they are the same as the docker settings
2019-08-10 15:28:52 +02:00
Andreas Zweili fa4682f674 remove the Vagrantfile since it's not used anymore 2019-08-10 15:27:51 +02:00
Andreas Zweili 27906f6923 remove the pytest config 2019-08-10 15:27:35 +02:00
Andreas Zweili 5ab33e6168 add task to create a local developemenet environment 2019-08-10 15:14:36 +02:00
Andreas Zweili 2da0dfabb0 remove unused makefile part 2019-08-10 15:13:46 +02:00
Andreas Zweili 033c3fe8df make sure that the tests generate a coverage report 2019-08-10 15:09:05 +02:00
Andreas Zweili bce41c1c47 extend the clean up task 2019-08-10 15:08:52 +02:00
Andreas Zweili 3cf672edea remove the local server from the Makefile
For improved consistency it's better if I only develop in Docker with Postgres
instead of the local server with sqlite
2019-08-10 15:05:35 +02:00
Andreas Zweili 43c334745d move the pytest requirements to the base file 2019-08-10 15:05:03 +02:00
Andreas Zweili 532fad6bd3 remove the production requirements
For the moment these aren't needed
2019-08-10 15:03:34 +02:00
Andreas Zweili 8f852733ef add a temp file to mark the first run 2019-08-10 15:03:03 +02:00
Andreas Zweili e5396aea5f add config for coverage 2019-08-10 13:56:19 +02:00
Andreas Zweili 7969663374 add pytest-cov to the docker requirements 2019-08-10 13:55:34 +02:00
Andreas Zweili c1631fe76e use a in memory database for local testing 2019-08-10 13:55:15 +02:00
Andreas Zweili 3833e02e60 add environment variable to emacs config 2019-08-10 13:54:55 +02:00
Andreas Zweili 7d1d606f6e ignore htmlcov folder 2019-08-10 13:48:29 +02:00
Andreas Zweili 3daf05a5c3 add check for status codes
When there is a 404 then there wouldn't be a "Novartis" string present so the
test would still pass.
2019-08-07 22:48:38 +02:00
Andreas Zweili 00725cec8a finalise test_customer_list_view_no_customer 2019-08-07 22:41:06 +02:00
Andreas Zweili 976321a39e PEP8 2019-08-07 22:38:30 +02:00
Andreas Zweili 1b8a8fc00f make sure only users with permissions can view customers 2019-08-07 22:37:59 +02:00