Open storperf testcase to huawei-pod2
[yardstick.git] / api / resources / testcases.py
1 # ############################################################################
2 # Copyright (c) 2017 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 yardstick.benchmark.core.testcase import Testcase
10 from yardstick.benchmark.core import Param
11 from api.utils import common as common_utils
12
13
14 def default(args):
15     return listAllTestcases(args)
16
17
18 def listAllTestcases(args):
19     param = Param(args)
20     testcase_list = Testcase().list_all(param)
21     return common_utils.result_handler(1, testcase_list)