diff options
author | Jing Lu <lvjing5@huawei.com> | 2017-02-14 06:04:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-02-14 06:04:53 +0000 |
commit | bb3d222fffdd525320d7ac1e28e170e17d26a0dc (patch) | |
tree | 91d66c1c8287d2ee0ef3cc02c327f7329c984009 /tests/unit/benchmark/scenarios | |
parent | fbdae0656a3b4784faaa530b641057c441af4342 (diff) | |
parent | 0464f576ffaa830a30f984df3e61bd29b15ddcaa (diff) |
Merge "vnf_generic: convert sshmanager to class"
Diffstat (limited to 'tests/unit/benchmark/scenarios')
-rw-r--r-- | tests/unit/benchmark/scenarios/networking/test_vnf_generic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/benchmark/scenarios/networking/test_vnf_generic.py b/tests/unit/benchmark/scenarios/networking/test_vnf_generic.py index f40b8234f..1b02b6eff 100644 --- a/tests/unit/benchmark/scenarios/networking/test_vnf_generic.py +++ b/tests/unit/benchmark/scenarios/networking/test_vnf_generic.py @@ -25,7 +25,7 @@ import unittest import mock from yardstick.benchmark.scenarios.networking.vnf_generic import \ - ssh_manager, NetworkServiceTestCase, IncorrectConfig, IncorrectSetup + SshManager, NetworkServiceTestCase, IncorrectConfig, IncorrectSetup from yardstick.network_services.collector.subscriber import Collector from yardstick.network_services.vnf_generic.vnf.base import \ GenericTrafficGen, GenericVNF @@ -318,7 +318,7 @@ class TestNetworkServiceTestCase(unittest.TestCase): mock.Mock(return_value=(0, SYS_CLASS_NET + IP_ADDR_SHOW, "")) ssh.return_value = ssh_mock for node, node_dict in self.context_cfg["nodes"].items(): - with ssh_manager(node_dict) as conn: + with SshManager(node_dict) as conn: self.assertIsNotNone(conn) def test___init__(self): |