aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/urls.py
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-06-05 11:37:06 -0400
committerParker Berberian <pberberian@iol.unh.edu>2019-06-05 11:37:06 -0400
commitd33f2e3439825bb90e3b902018a3030f9f12f307 (patch)
tree899d2662177bae0680abdddd7a11e206a4e0cdcf /src/api/urls.py
parent6b8115d7ac8412c9d0ba6899062969b636ed9149 (diff)
Adds Tests
Adds more complete tests and fixes some bugs found in those tests Change-Id: Icc0433215df511bc0b2bfa264bacf8796d6de86f Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'src/api/urls.py')
-rw-r--r--src/api/urls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/urls.py b/src/api/urls.py
index d1f772a..7a48425 100644
--- a/src/api/urls.py
+++ b/src/api/urls.py
@@ -57,8 +57,8 @@ urlpatterns = [
path('labs/<slug:lab_name>/inventory', lab_inventory),
path('labs/<slug:lab_name>/hosts/<slug:host_id>', lab_host),
path('labs/<slug:lab_name>/hosts/<slug:host_id>/bmc', update_host_bmc),
- path('labs/<slug:lab_name>/booking/<slug:booking_id>/pdf', get_pdf, name="get-pdf"),
- path('labs/<slug:lab_name>/booking/<slug:booking_id>/idf', get_idf, name="get-idf"),
+ path('labs/<slug:lab_name>/booking/<int:booking_id>/pdf', get_pdf, name="get-pdf"),
+ path('labs/<slug:lab_name>/booking/<int:booking_id>/idf', get_idf, name="get-idf"),
path('labs/<slug:lab_name>/jobs/<int:job_id>', specific_job),
path('labs/<slug:lab_name>/jobs/<int:job_id>/<slug:task_id>', specific_task),
path('labs/<slug:lab_name>/jobs/new', new_jobs),