From 290819311d37937e24907d956f1b5de45b06870c Mon Sep 17 00:00:00 2001 From: JingLu5 Date: Mon, 18 Jul 2016 13:09:57 +0800 Subject: Modify ComputeCapacity scenario host key name Adjust target node key name. Signed-off-by: JingLu5 Change-Id: I5daee8c2579aa1f14aac076c49803eb8b5029a97 --- samples/computecapacity.yaml | 2 +- tests/unit/benchmark/scenarios/compute/test_computecapacity.py | 2 +- yardstick/benchmark/scenarios/compute/computecapacity.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/computecapacity.yaml b/samples/computecapacity.yaml index 0c6d46bf1..006b3ef3d 100644 --- a/samples/computecapacity.yaml +++ b/samples/computecapacity.yaml @@ -12,7 +12,7 @@ scenarios: options: nodes: - host1: node5.LF + host: node5.LF runner: type: Iteration diff --git a/tests/unit/benchmark/scenarios/compute/test_computecapacity.py b/tests/unit/benchmark/scenarios/compute/test_computecapacity.py index 5745b7ec9..660bb3391 100644 --- a/tests/unit/benchmark/scenarios/compute/test_computecapacity.py +++ b/tests/unit/benchmark/scenarios/compute/test_computecapacity.py @@ -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", diff --git a/yardstick/benchmark/scenarios/compute/computecapacity.py b/yardstick/benchmark/scenarios/compute/computecapacity.py index 366b470e8..0d7d76143 100644 --- a/yardstick/benchmark/scenarios/compute/computecapacity.py +++ b/yardstick/benchmark/scenarios/compute/computecapacity.py @@ -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') -- cgit 1.2.3-korg