From 75f55c05789beb4fbe2391d33349058bba4ea5c0 Mon Sep 17 00:00:00 2001 From: chenjiankun Date: Thu, 12 Jan 2017 07:50:30 +0000 Subject: Create API to get a list of all test cases JIRA: YARDSTICK-456 Currently we do not have a API to get a list of all test cases; Currently the test case info is from the comment; So I create a API to get a list of all test cases; And create a 'description' attribute to record info of a test case; And use the CLI call this API; Change-Id: Ife800600446683664097835c7b9f11899c85771d Signed-off-by: chenjiankun --- api/views.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'api/views.py') diff --git a/api/views.py b/api/views.py index 0c39bfad0..9fd236fad 100644 --- a/api/views.py +++ b/api/views.py @@ -30,6 +30,11 @@ class Asynctask(ApiResource): return self._dispatch_get() +class Testcases(ApiResource): + def get(self): + return self._dispatch_get() + + class ReleaseAction(ApiResource): @swag_from(os.getcwd() + '/swagger/docs/release_action.yaml') def post(self): -- cgit 1.2.3-korg