Modify ComputeCapacity scenario host key name 23/17023/1
authorJingLu5 <lvjing5@huawei.com>
Mon, 18 Jul 2016 05:09:57 +0000 (13:09 +0800)
committerJingLu5 <lvjing5@huawei.com>
Mon, 18 Jul 2016 05:13:13 +0000 (13:13 +0800)
Adjust target node key name.

Signed-off-by: JingLu5 <lvjing5@huawei.com>
Change-Id: I5daee8c2579aa1f14aac076c49803eb8b5029a97

samples/computecapacity.yaml
tests/unit/benchmark/scenarios/compute/test_computecapacity.py
yardstick/benchmark/scenarios/compute/computecapacity.py

index 0c6d46b..006b3ef 100644 (file)
@@ -12,7 +12,7 @@ scenarios:
   options:
 
   nodes:
-    host1: node5.LF
+    host: node5.LF
 
   runner:
     type: Iteration
index 5745b7e..660bb33 100644 (file)
@@ -29,7 +29,7 @@ class ComputeCapacityTestCase(unittest.TestCase):
     def setUp(self):
         self.ctx = {
             'nodes': {
-                'host1': {
+                'host': {
                     'ip': '172.16.0.137',
                     'user': 'cirros',
                     'key_filename': "mykey.key",
index 366b470..0d7d761 100644 (file)
@@ -38,7 +38,7 @@ class ComputeCapacity(base.Scenario):
             ComputeCapacity.TARGET_SCRIPT)
 
         nodes = self.context_cfg['nodes']
-        node = nodes.get('host1', None)
+        node = nodes.get('host', None)
         host_user = node.get('user', 'ubuntu')
         host_ip = node.get('ip', None)
         host_pwd = node.get('password', 'root')