1 ##############################################################################
2 # Copyright (c) 2017 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 ##############################################################################
9 from __future__ import absolute_import
14 from tests.unit.apiserver import APITestCase
17 class EnvTestCase(APITestCase):
19 def test_create_grafana(self):
20 url = 'yardstick/env/action'
21 data = {'action': 'createGrafanaContainer'}
22 resp = self._post(url, data)
26 task_id = resp['result']['task_id']
27 url = '/yardstick/asynctask?task_id={}'.format(task_id)
32 self.assertTrue(u'status' in resp)
39 if __name__ == '__main__':