1 ##############################################################################
2 # Copyright (c) 2018 Huawei Technologies Co.,Ltd and others.
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 ##############################################################################
13 from yardstick.tests.unit.apiserver import APITestCase
14 from api.utils.thread import TaskThread
17 class TestsuiteTestCase(APITestCase):
19 def test_run_test_suite(self):
21 unittest.skip('host config error')
24 TaskThread.start = mock.MagicMock()
26 url = 'yardstick/testsuites/action'
28 'action': 'run_test_suite',
31 'testsuite': 'opnfv_smoke'
34 resp = self._post(url, data)
35 self.assertEqual(resp.get('status'), 1)