Lab as a Service 2.0
[laas.git] / src / workflow / urls.py
1 ##############################################################################
2 # Copyright (c) 2018 Parker Berberian, Sawyer Bergeron, and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10
11 from django.conf.urls import url, include
12 from django.conf import settings
13
14 from workflow.views import *
15 from workflow.models import *
16 from workflow.resource_bundle_workflow import *
17 from workflow.booking_workflow import *
18
19 app_name = 'workflow'
20 urlpatterns = [
21
22     url(r'^workflow/$', step_view, name='workflow'),
23     url(r'^workflow/finish/$', delete_session, name='delete_session'),
24     url(r'^manager/$', manager_view, name='manager'),
25     url(r'^$', viewport_view, name='viewport')
26 ]
27
28 if settings.TESTING:
29     urlpatterns.append(url(r'^workflow/step/define_hardware$', Define_Hardware("", Repository()).test_render))
30     urlpatterns.append(url(r'^workflow/step/define_net$', Define_Nets("", Repository()).test_render))
31     urlpatterns.append(url(r'^workflow/step/resource_meta$', Resource_Meta_Info("", Repository()).test_render))
32     urlpatterns.append(url(r'^workflow/step/booking_meta$', Booking_Meta("", Repository()).test_render))
33     urlpatterns.append(url(r'^workflow/step/software_select$', SWConfig_Select("", Repository()).test_render))
34     urlpatterns.append(url(r'^workflow/step/resource_select$', Resource_Select("", Repository()).test_render))