Merge "Change prepareYardstickEnv to prepare_env and add log info"
[yardstick.git] / tests / unit / apiserver / resources / test_env_action.py
index e8f99b7..d61092d 100644 (file)
@@ -1,3 +1,11 @@
+##############################################################################
+# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
 from __future__ import absolute_import
 
 import time
@@ -10,7 +18,7 @@ class EnvTestCase(APITestCase):
 
     def test_create_grafana(self):
         url = 'yardstick/env/action'
-        data = dict(action='createGrafanaContainer')
+        data = {'action': 'create_grafana'}
         resp = self._post(url, data)
 
         time.sleep(1)