Merge "bugfix: tc063 fails to get the correct result in ubuntu node"
[yardstick.git] / api / urls.py
1 ##############################################################################
2 # Copyright (c) 2016 Huawei Technologies Co.,Ltd 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 from __future__ import absolute_import
10
11 from api import Url
12
13
14 urlpatterns = [
15     Url('/yardstick/asynctask', 'v1_async_task'),
16     Url('/yardstick/testcases', 'v1_test_case'),
17     Url('/yardstick/testcases/release/action', 'v1_release_case'),
18     Url('/yardstick/testcases/samples/action', 'v1_sample_case'),
19     Url('/yardstick/testcases/<case_name>/docs', 'v1_case_docs'),
20     Url('/yardstick/testsuites/action', 'v1_test_suite'),
21     Url('/yardstick/results', 'v1_result'),
22     Url('/yardstick/env/action', 'v1_env'),
23
24     # api v2
25     Url('/api/v2/yardstick/environments', 'v2_environments'),
26     Url('/api/v2/yardstick/environments/action', 'v2_environments'),
27     Url('/api/v2/yardstick/environments/<environment_id>', 'v2_environment'),
28
29     Url('/api/v2/yardstick/openrcs', 'v2_openrcs'),
30     Url('/api/v2/yardstick/openrcs/action', 'v2_openrcs'),
31     Url('/api/v2/yardstick/openrcs/<openrc_id>', 'v2_openrc'),
32
33     Url('/api/v2/yardstick/pods', 'v2_pods'),
34     Url('/api/v2/yardstick/pods/action', 'v2_pods'),
35     Url('/api/v2/yardstick/pods/<pod_id>', 'v2_pod'),
36
37     Url('/api/v2/yardstick/images', 'v2_images'),
38     Url('/api/v2/yardstick/images/action', 'v2_images'),
39     Url('/api/v2/yardstick/images/<image_id>', 'v2_image'),
40
41     Url('/api/v2/yardstick/containers', 'v2_containers'),
42     Url('/api/v2/yardstick/containers/action', 'v2_containers'),
43     Url('/api/v2/yardstick/containers/<container_id>', 'v2_container'),
44
45     Url('/api/v2/yardstick/projects', 'v2_projects'),
46     Url('/api/v2/yardstick/projects/action', 'v2_projects'),
47     Url('/api/v2/yardstick/projects/<project_id>', 'v2_project'),
48
49     Url('/api/v2/yardstick/tasks', 'v2_tasks'),
50     Url('/api/v2/yardstick/tasks/action', 'v2_tasks'),
51     Url('/api/v2/yardstick/tasks/<task_id>', 'v2_task'),
52     Url('/api/v2/yardstick/tasks/<task_id>/log', 'v2_task_log'),
53
54     Url('/api/v2/yardstick/testcases', 'v2_testcases'),
55     Url('/api/v2/yardstick/testcases/action', 'v2_testcases'),
56     Url('/api/v2/yardstick/testcases/<case_name>', 'v2_testcase'),
57
58     Url('/api/v2/yardstick/testsuites', 'v2_testsuites'),
59     Url('/api/v2/yardstick/testsuites/action', 'v2_testsuites'),
60     Url('/api/v2/yardstick/testsuites/<suite_name>', 'v2_testsuite')
61 ]